Hello,
I try to bind to LDAP server using GSSAPI. I try to use ldap_gssapi_bind_s method (gssapi.c):
int ldap_gssapi_bind_s( LDAP *ld, LDAP_CONST char *dn, LDAP_CONST char *creds ) { if ( dn != NULL ) { return LDAP_NOT_SUPPORTED; }
if ( creds != NULL ) { return LDAP_NOT_SUPPORTED; }
return ldap_int_gss_spnego_bind_s(ld); }
According this it is executed only if 'dn' and 'creds' is NULL. My question is how can I set the user name and password which I want to authenticate on LDAP server?
Regards, Arpad
--On Wednesday, January 27, 2021 4:16 PM +0100 Árpád Nagy arpadnagy.bp@gmail.com wrote:
According this it is executed only if 'dn' and 'creds' is NULL. My question is how can I set the user name and password which I want to authenticate on LDAP server?
Using GSSAPI implies that the connecting client already has access to a kerberos5 ticket, which is used for the authentication step and thus there is no username or password to be supplied.
If you must supply a username/password, then you're using the wrong function.
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-technical@openldap.org