Penza Kenneth at MITA wrote:
Michael,
Please excuse broken threading, your reply email got rejected cause sender IP was not in SPF record of the domain, though now its ok.
Thanks for your feedback. I tried to use ldapwhoami, however it returned the same error "ldap_sasl_interactive_bind_s: Local error (-2)".
Output with debug enabled:
[root@oldp4-dk-vm ~]# ldapwhoami -H ldapi:/// -Y EXTERNAL -d 3 ldap_url_parse_ext(ldapi:///) ldap_create ldap_url_parse_ext(ldapi:///??base) ldap_sasl_interactive_bind: user selected: EXTERNAL ldap_int_sasl_bind: EXTERNAL ldap_new_connection 1 1 0 ldap_int_open_connection ldap_connect_to_path ldap_new_socket: 3 ldap_connect_to_path: Trying /usr/local/openldap/var/run/ldapi
It seems you're using a local OpenLDAP build.
So I'd try first: /usr/local/openldap/bin/ldapwhoami -H ldapi:/// -Y EXTERNAL -d 3
Ciao, Michael.