[389-devel] Please review: Bug 555189 - ldclt: -e randombinddnfromfile fails with LDAP_UNWILLING_TO_PERFORM (53)

Noriko Hosoi nhosoi at redhat.com
Thu Jan 14 00:38:38 UTC 2010


https://bugzilla.redhat.com/show_bug.cgi?id=555189

Fix proposal
https://bugzilla.redhat.com/attachment.cgi?id=383582&action=diff

Description of problem:
ldclt code is not passing the password correctly to ldap_sasl_bind_s.

The server receives NULL credential.  Due to the default configuration:
  nsslapd-allow-unauthenticated-binds: off
the unauthenticated bind fails.

Fix description
When "-e randombinddnfromfile=file" is given, bind dn and password pair
is retrieved from the file and is supposed to pass to ldap_sasl_bind_s.
Although the password was read from the file, but it was not set to the
berval "cred" which was passed to ldap_sasl_bind_s.  Therefore, the
bind operation tried to bind with bind dn and NULL password, which now
fails since it's considered as an unauthenticated bind.

Also, a usage typo is being fixed.




More information about the 389-devel mailing list