I am attempting to use the ldapmodify tool to import modifications to ldap attributes using ldif file.

If I comment all but one attribute at a time and run ldapmodify I am able to modify/replace the schema attribute values, but if I attempt to import one ldif specifying more then one attribute value to be replaced/modified I receive errors shown below.

Here is the command and error I am receiving:
%> ldapmodify -v -x -D "CN=Administrator,CN=Users,DC=domain,DC=com" -w "password" -h server.domain.com -p 389 -f modify-user.ldif

ldap_initialize( ldap://server.domain.com:389 )
replace cn:
  tester
replace replace:
  msSFUName
  unixHomeDirectory
  msSFUHomeDirectory
  uidNumber
  gidNumber
  loginShell
replace msSFUName:
  tester
replace unixHomeDirectory:
  /home/Authenticated Users/tester
replace msSFUHomeDirectory:
  /home/Authenticated Users/tester
replace uidNumber:
  100999
replace gidNumber:
  513
replace loginShell:
  /bin/false
modifying entry "cn=tester tester,CN=Users,DC=server,DC=domain,DC=com"
modify complete
ldapmodify: No such attribute (16)
additional info: 00000057: LdapErr: DSID-0C090A85, comment: Error in attribute conversion operation, data 0, vece

Here is the contents of the ldif.
dn: cn=tester tester,CN=Users,DC=server,DC=domain,DC=com
changetype: modify
replace: cn
cn: tester
replace: msSFUName
msSFUName: tester
replace: unixHomeDirectory
unixHomeDirectory: /home/Authenticated Users/tester
replace: msSFUHomeDirectory
msSFUHomeDirectory: /home/Authenticated Users/tester
replace: uidNumber
uidNumber: 100999
replace: gidNumber
gidNumber: 513
replace: loginShell
loginShell: /bin/false

Everything from ldapsearch returns the following so I know the object exists as well as the attributes I am attempting to modify:
# tester tester, Users, server.domain.com
dn: CN=tester tester,CN=Users,DC=server,DC=domain,DC=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: tester tester
sn: tester
givenName: tester
distinguishedName: CN=tester tester,CN=Users,DC=server,DC=domain,DC=com
instanceType: 4
whenCreated: 20091020193553.0Z
whenChanged: 20091020193553.0Z
displayName: tester tester
uSNCreated: 18075791
uSNChanged: 18075797
name: tester tester
objectGUID:: iLK029ooIkmOfhMl7E+5Cg==
userAccountControl: 66048
badPwdCount: 0
codePage: 0
countryCode: 0
badPasswordTime: 0
lastLogoff: 0
lastLogon: 0
pwdLastSet: 129005409537187500
primaryGroupID: 513
objectSid:: AQUAAAAAAAUVAAAAL7j9qjJ2TgWHykd951MCAA==
accountExpires: 9223372036854775807
logonCount: 0
sAMAccountName: tester
sAMAccountType: 805306368
userPrincipalName: [email protected]
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=server,DC=domain,DC=com

I am completely stumped on this. Any help is appreciated.

--
Jason Gerfen
Systems Administration/Web application development
[email protected]

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


Reply via email to