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

Re: ldapmodify problems




Appreciated. I tried to google for this information but could not find it.

Jon Roberts wrote:
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


--
Jason Gerfen
Systems Administration/Web application development
jason.gerfen@scl.utah.edu

Marriott Library
Lab Systems PC
295 South 1500 East
Salt Lake City, Utah 84112-0806
Ext 5-9810

"Tomorrow isn't promised so we live for today"