ldapsearch with debugging enabled and see what it's doing :-
[root@localhost tools]# ./ldapsearch -Y GSSAPI -d 1
ldap_sasl_interactive_bind_s: user selected: GSSAPI
ldap_new_connection 1 1 0
ldap_connect_to_host: TCP 127.0.0.1:389
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_connect_timeout: fd: 3 tm: -1 async: 0
ldap_sasl_interactive_bind_s: Unknown authentication method (-6)
additional info: SASL(-4): no mechanism available: No worthy mechs found
It seems that LDAP server has not
So how can we add GSSAPI support in LDAP server for making it work??
----- Original Message ----
From: Buchan Milne <firstname.lastname@example.org>
Cc: sanjay gupta <email@example.com>
Sent: Monday, January 7, 2008 1:29:22 PM
Subject: Re: LDAP Client & Server with Kerberos
On Friday 04 January 2008 16:46:40 sanjay gupta wrote:
> I have done default compilation for openldap-2.3.38 now trying to run
> client (ldapsearch) with Kerberos so that ldap client can use session
> ticket to perform the LDAP lookup on LDAP server.Please let me know
> required to make ldap client work with kerberos.
> I did not see any option to compile & build openldap lib with
> support & when I do ldapsearch with -K option it shows error
> not compiled with Kerberos support".
(specifically no -x flag, as you want SASL).
should be sufficient, assuming all your configuration is correct, you
ticket, and the LDAP server has a keytab for ldap/$hostname, where you
connecting to '$hostname' (in your ldap.conf, or via -h $hostname).
Of course, some logging output from your LDAP server, and the KDCs the
server and LDAP clients are configured to use would help.
> Please suggest me the right way to do ldapsearch with kerberos
> what client & server command line option required to run it with
Without -x, ldapsearch will use SASL. Additionally, ldapsearch will try
the most appropriate thing, with a ticket, if your LDAP server has
available (and avertised as one of the supportedSASLMechanisms)