I've made a few changes, mostly to the do_bind() interact area. I'm still a little unclear of what's going on there with ldap_res. For example, ldap_sasl_interactive_bind() is called with ldap_res as a parameter but it's passed by value so the caller can't see any changes to it. Further down the call to ldap_result() is where it imight get a value. So the question is, is ldap_res used in the call to ldap_sasl_interactive_bind() on subsequent iterations? I did some more white space changes, added some initializations, and added a CHANGELOG entry. Can you have a look and let me know if the changes I've made are ok with you and that I haven't made any mistakes. --- Thomas Reim (4): autofs-5.1.8 - restore gcc flags after autoconf Kerberos 5 check autofs-5.1.8 - prepare for OpenLDAP SASL binding autofs-5.1.8 - let OpenLDAP handle SASL binding autofs-5.1.8 - configure: LDAP function checks ignore implicit declarations CHANGELOG | 4 ++ aclocal.m4 | 52 +++++++++++++++ configure | 55 +++++++++++++++- configure.in | 5 +- include/config.h.in | 3 + include/lookup_ldap.h | 6 ++ modules/cyrus-sasl.c | 150 +++++++++++++++++++++++++++++++++++++++++- modules/lookup_ldap.c | 137 +++++++++++++++++++++++++++++++++++++- 8 files changed, 408 insertions(+), 4 deletions(-) -- Ian