Quantcast
Viewing all articles
Browse latest Browse all 31638

LDIFDE errors "last token starts with 'C'", "change-modify entry missing '-'"

Greetings,

I execute this:

C:\Users\Administrator\Downloads\ldif_files>ldifde -i -k -f test.ldf -v -j "C:\Users\Administrator\Downloads\ldif_files"
Connecting to "dc1.company.local"
Logging in as current user using SSPI
Importing directory from file "test.ldf"
Loading entries

There is a syntax error in the input file
Failed on line 6.  The last token starts with 'C'.
The change-modify entry is missing the terminator '-'.
0 entries modified successfully.
An error has occurred in the program

C:\Users\Administrator\Downloads\ldif_files>

test.ldf is this:

dn: CN=PrinterAdmins,OU=GL,OU=Groups,OU=CMPNY,DC=company,DC=local
changetype: modify
add: member
objectClass: top
objectClass: group
member: CN=John Doe,OU=Track-It!,OU=Admins,OU=CMPNY,DC=company,DC=local

I have painstakingly troubleshooted this for a couple or few hours now without success. I have tried...

  • Adding a single link '-' at the end
  • Adding a line '-' followed by a blank line (two lines total) at the end
  • several other things; have spent lots of time Googling for solutions and trying everything without having success

The OUs, security group, and user exists. For the life of me, I can't figure it out. I have successfully imported an OU structure from 'oldcompany.com' domain, used Notepad++ to remove a particular space/enter character and also to replace 'dc=oldcompany,dc=com' with 'dc=company,dc=local', imported the users, imported the security groups -- everything successfully.. all that is left is to import the part of memberships to every group (tying users to their groups).

Please help. :(



Viewing all articles
Browse latest Browse all 31638

Trending Articles