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

Q: Can't delete entry ?



When experementing with openldap2.1.8 I create entry
but can't delete it

ldapmodify -f rem_ent.ldif -x -D "cn=Manager,dc=druzhba,dc=com"
deleting entry "uid=uid,ou=Users,dc=druzhba,dc=com "
ldapmodify: delete failed: uid=uid,ou=Users,dc=druzhba,dc=com
ldap_delete: Internal (implementation specific) error (80)
        additional info: DN index delete failed


rem_ent.ldif contens is:

dn: uid=uid,ou=Users,dc=druzhba,dc=com
changetype: delete



My ldapcat is:

dn: dc=druzhba,dc=com
objectClass: dcObject
objectClass: organization
o:: TU4gRHJ1emhiYSA=
dc: druzhba
structuralObjectClass: organization
entryUUID: a10d0502-8b7a-1026-97de-f9d839cbf03a
creatorsName: cn=Manager,dc=druzhba,dc=com
createTimestamp: 20021113173939Z
entryCSN: 2002111317:39:39Z#0x0001#0#0000
modifiersName: cn=Manager,dc=druzhba,dc=com
modifyTimestamp: 20021113173939Z

dn: cn=Manager,dc=druzhba,dc=com
objectClass: organizationalRole
cn: Manager
structuralObjectClass: organizationalRole
entryUUID: a10f1fb8-8b7a-1026-97df-f9d839cbf03a
creatorsName: cn=Manager,dc=druzhba,dc=com
createTimestamp: 20021113173939Z
entryCSN: 2002111317:39:39Z#0x0002#0#0000
modifiersName: cn=Manager,dc=druzhba,dc=com
modifyTimestamp: 20021113173939Z

dn: uid=uid,ou=Users,dc=druzhba,dc=com
displayName:: 0JDQvdC00YDRltC5INCT0LDQu9C10YbRjNC60LjQuQ==
mail: andriy@druzhba.lviv.ua
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: pilotPerson
objectClass: OpenLDAPperson
uid: andriy
cn:: 0JDQvdC00YDRltC5INCT0LDQu9C10YbRjNC60LjQuQ==
sn::
0JPQsNC70LXRhtGM0LrQuNC5INCQ0L3QtNGA0ZbQuSDQl9C10L3QvtCy0ZbQudC+0LLQuNGH
structuralObjectClass: OpenLDAPperson
entryUUID: 5b98774a-8bf2-1026-9dd8-d77f4c9f55ba
creatorsName: cn=Manager,dc=druzhba,dc=com
createTimestamp: 20021114075642Z
entryCSN: 2002111407:56:42Z#0x0001#0#0000
modifiersName: cn=Manager,dc=druzhba,dc=com
modifyTimestamp: 20021114075642Z

dn: ou=Users,dc=druzhba,dc=com
ou: Users
objectClass: top
objectClass: organizationalUnit
structuralObjectClass: organizationalUnit
entryUUID: 7c7a837a-8f64-1026-9bd7-b3faaff5b4f6
creatorsName: cn=Manager,dc=druzhba,dc=com
createTimestamp: 20021118171113Z
entryCSN: 2002111817:11:13Z#0x0001#0#0000
modifiersName: cn=Manager,dc=druzhba,dc=com
modifyTimestamp: 20021118171113Z

dn: uid=andriy,ou=Users,dc=druzhba,dc=com
uid:: YW5kcml5IA==
cn:: QW5kcml5IFouIEdhbGV0c2tpIA==
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: uidObject
loginShell: /bin/tcsh
uidNumber: 1001
gidNumber: 0
homeDirectory: /home/andriy
gecos: Andriy Z. Galetski,,,,
userPassword:: dG9wc2VjcmV0
structuralObjectClass: account
entryUUID: 7c7d59f6-8f64-1026-9bd8-b3faaff5b4f6
creatorsName: cn=Manager,dc=druzhba,dc=com
createTimestamp: 20021118171113Z
entryCSN: 2002111817:11:13Z#0x0002#0#0000
modifiersName: cn=Manager,dc=druzhba,dc=com
modifyTimestamp: 20021118171113Z


And one more Q:
How I can add "mail:" attribute to dn: uid=andriy,ou=Users,dc=druzhba,dc=com
When try I receive Object class violations error.


Thanks for Help.
Andriy