Not sure if this is the right mailing list.
I'm developing an LDAP client that uses GSSAPI as the transport mechanism. I would like to set the credentials to use for binding my user, and it seems that it is possible to set them using the LDAP_OPT_X_SASL_GSS_CREDS option.
So I create the ldap context using ldap_initialize and then try to set the credentials using the option above, before calling the ldap_sasl_interactive_bind_s function for binding my user.
But the options setting operation fails. Looking at the code, I see that, to set the option, it is necessary that the pointers in the chain below are not null:
But they are null after initializing the ldap context. So, which function calls do I have to execute for being able to set credentials before calling the bind function?
Any alternative way?