On Tuesday, 10 July 2007, Chase Putans wrote: > 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. At which point you should have run database recovery. > I ran a slapindex after shutting down > 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. Upgrade to 2.3.x to avoid this happening in future (or call slapd_db_recover -h /var/lib/ldap in some script that runs at startup, or in the start() function in the init script). > [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: > > uid=<username>,ou=People,dc=3sixtygroup,dc=com > changetype: delete > > Any help would be much appreciated. Thanks. slapcat, slapadd. But, then you may as well upgrade to 2.3, and get new features too (such as smbk5pwd overlay which may help you with password synchronisation etc.). Regards, Buchan -- Buchan Milne ISP Systems Specialist - Monitoring/Authentication Team Leader B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592) http://en.wikipedia.org/wiki/List_of_Internet_slang_phrases
Attachment:
pgpeU52A4PlXn.pgp
Description: PGP signature