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

Can't delete user using DN (Error 32) or add user using DN (Error 68)

I am not sure this is actually a bug, but I figure I will submit this
anyways.  We had a power outage some time ago, and the bdb files got
corrupted.  I ran a slapindex after shutting down and it seems one entry
is now missing.  I have tried re-adding it, but when I do that, I get an
error that this entry already exists.  When I try and delete with that
particular DN, it says that it does not exist.  This is openldap
2.2.29-1 installed via Yum on FC4.

[root@PDC]# ldapadd -D "<ROOT DN>" -x -W -f entrymods
Enter LDAP Password: 
adding new entry "uid=<username>,ou=People,dc=3sixtygroup,dc=com"
ldap_add: Already exists (68)

[root@PDC]# ldapdelete -D "<ROOT DN>" -x -W -f entrymods2
Enter LDAP Password: 
Delete Result: No such object (32)
Matched DN: ou=People,dc=3sixtygroup,dc=com

Contents of entrymods is as follows:

dn: uid=<username>,ou=People,dc=3sixtygroup,dc=com
uid: <username>
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSamAccount
cn: <username>
sn: <username>
givenName: <username>
uidNumber: <uidnumber>
gidNumber: <gidnumber>
homeDirectory: /home/<username>
loginShell: /bin/bash
gecos: System User
sambaLogonTime: 0
sambaLogoffTime: 2147483647
displayName: <username>
sambaSID: <>
sambaPrimaryGroupSID: <>
sambaLogonScript: scripts\logon.bat
sambaHomePath: \\PDC\<username>
sambaHomeDrive: H:
sambaAcctFlags: [U]

Contents of entrymods2:

changetype: delete

Any help would be much appreciated.  Thanks.

Chase Putans
Systems Administrator / Programmer / Web Developer / Support
The 3Sixty Group
Ph:   800-440-3967
Fax:  800-453-9683