[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapmodify problems



When seeking help on OSS, you should include the versions of the software you are using and the error output at a minimum.

Jason Gerfen wrote:
I am having a problem with the following command:
ldapmodify -n -v -h DOMAIN -D "CN=DOMAINADMIN" -w DOMAINADMINPASS -f .UID2SID/modify-06.19.2008-mclame.ldif


I am not sure why this is but if anyone could give me some pointers on the ldapmodify command I would appreciate it.

Look at the LDIF modification examples in RFC 2849.

The contents of the modify-06.19.2008-mclame.ldif
>
dn: CN=mclame mclame,CN=Users,DC=domain,DC=com
changetype: modify
modify: dn cn msSFUName unixHomeDirectory msSFUHomeDirectory uidNumber gidNumber loginShell

There is no basis in LDIF for this last line that I know of.

dn: CN=mclame,CN=Users,DC=domain,DC=com

This is not how you change the dn of an entry. Read about "changetype: modrdn".


cn: mclame
cn: mclame

What is the point of having duplicate values here?

msSFUName: mclame
unixHomeDirectory: /home/mclame
msSFUHomeDirectory: /home/mclame
 .....

Again, you probably need to spend some quality time with RFC 2849 and any other resources you have on LDIF.

Jon Roberts
www.mentata.com