Red Hat Bugzilla – Bug 145270
ldapadd show random characters in error message
Last modified: 2007-11-30 17:10:58 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Description of problem:
From the commandline I do an ldapadd of an ldif file and all the
relevant information is added to my LDAP directory.
If I run the exact same command for a second (or third) time then I
get error messages that the extries already exist (this error message
There is however a problem with the message itself:
adding new entry "cn=N. Basjes, ou=Familie, ou=Users, o=Basjes, c=NL"
ldap_add: Already exists (68)
additional info: `
The string behind the "additional info:" seemds to be completely
random. My instinct tells me this is most likely somekind of buffer
overflow or missing \0 terminator.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a valid ldif file with one or more records. You will have a
better chance of seeing the corrupted strings if you have something
like 10 or 20 records in the test.ldif
2. Do: ldapadd -c -D"cn=XXX" -h XXX -wXXX -x < test.ldif
In this command replace the XXX with the parameters valid for your
The records are added to the ldap without errors.
3. Run the same command the second time and you will most likely have
corrupted strings on the screen.
Actual Results: Corrupted text on the screen.
Expected Results: Either no message or a valid message.
Possibly related to Bug 144992
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.
The bug was fixed somewhere between FC3 and FC6 - openldap-2.3.27-4.fc6 does not
produce such buggy error output.