Hi Dan,
The problem:
Each time I add users, e-smith should generate a new "everyone" list. This fails around record 850 of 1560 users at this point. There are corrupt records in the LDAP files and the first is encountered at around 850, I suspect.
What I've looked at:
I used the scripts a number of times to add lists of users to our mail system. Once or twice there were errors in the lists of users to add (eg spaces or commas or perhaps a ^M here or there?). The result is an LDAP file with corruption. I have 3 records of the 1561 that fail on read. I managed to send them all to an LDIF and I can recognize the 3 bad records from their odd entries (one of the files appears to have a cn=""). I have tried a variety of LDAP tools and clients to delete these 3 records by identifying them by various attributes but all attempts fail. ldapdelete connects with sufficient privileges but the delete fails with the following:
Command:
ldapdelete -x -v "givenName=LastName,dc=us21,dc=com,dc=ar"
-D "cn=admin,dc=us21,dc=com,dc=ar" -w "abcdefg"
ldapdelete -x -v "cn=25585612,dc=us21,dc=com,dc=ar"
-D "cn=admin,dc=us21,dc=com,dc=ar" -w "abcdefg"
ldapdelete -x -v "cn=caeirocaserasm,dc=us21,dc=com,dc=ar"
-D "cn=admin,dc=us21,dc=com,dc=ar" -w "abcdefg"
Response:
ldap_initialize( )
deleting entry "givenName=LastName,dc=us21,dc=com,dc=ar"
Delete Result: No such object (32)
Matched DN: dc=us21,dc=com,dc=ar
ldap_initialize( )
deleting entry "cn=25585612,dc=us21,dc=com,dc=ar"
Delete Result: No such object (32)
Matched DN: dc=us21,dc=com,dc=ar
ldap_initialize( )
deleting entry "cn=caeirocaserasm,dc=us21,dc=com,dc=ar"
Delete Result: No such object (32)
Matched DN: dc=us21,dc=com,dc=ar
The entries are verbatim. For the attempts, authentication using "admin" and "abcdefg" was setup in a dummied slapd.conf and ldap was restarted.
Any idea what I can do about it? Pointers to better tools?
By the way, thanks for your assistance in the past through your how-tos and posts in these BBs.
regards,
Dan