[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
switch from ldap_sasl_interactive_bind_s to ldap_sasl_bind fails
- To: "OpenLDAP Software List" <OpenLDAP-software@OpenLDAP.org>
- Subject: switch from ldap_sasl_interactive_bind_s to ldap_sasl_bind fails
- From: "Jeremiah Martell" <inlovewithgod@gmail.com>
- Date: Thu, 1 Jun 2006 15:54:29 -0400
- Content-disposition: inline
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=uqibkuRifuJBHKDebbZgDE9+W2Z0sQjI5CNPzKMGaLAEN+DGygw4F/0fwUCZLR1hIEaYQraiPjulgAJmcdgw8jz8+txDrAbs0uDBJySe2A/7/2MD33rS9FtkIl5UUwJ7Jq79DL/Hhu+AlKwW2WQZvp3ZEkBBFlPUT6ICokC9/PI=
I had code that used ldap_sasl_interactive_bind_s that I just switched
to ldap_sasl_bind.
I switched because I wanted async binding with sasl (GSSAPI), and
ldap_sasl_bind seemed a lot simpler to use.
Now, though, whenever I use my new ldap_sasl_bind code I always get
back 49 (invalid credentials). Any idea what I could be doing wrong?
int msgid = 0;
struct berval cred;
cred.bv_len = 8;
cred.bv_val = "PASSWORD";
if ( ldap_sasl_bind( myldap, NULL, "GSSAPI", &cred, NULL, NULL, &msgid
) != 0 ) return -1;
if ( msgid == -1 ) return -1;
while ( 1 )
{
// do ldap_result and ldap_first_message and ldap_parse_result stuff
// i eventually get 49, invalid credentials. which ldap logging
shows is the case
// log shows: "AcceptSecurityContext error", which ethereal verifies
}
Thanks,
- Jeremiah
inlovewithGod@gmail.com