version 1.4, 1999/12/12 04:02:03
|
version 1.5, 1999/12/17 02:27:17
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.3 1999/12/12 02:16:46 kdz Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.4 1999/12/12 04:02:03 kdz Exp $ */ |
/* |
/* |
* Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. |
* Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
Line 70 ldap_sasl_bind(
|
Line 70 ldap_sasl_bind(
|
return ld->ld_errno; |
return ld->ld_errno; |
} |
} |
|
|
if( mechanism != LDAP_SASL_SIMPLE |
if( mechanism == LDAP_SASL_SIMPLE ) { |
&& ld->ld_version < LDAP_VERSION3) |
if( dn == NULL && cred != NULL ) { |
{ |
/* use default binddn */ |
|
dn = ld->ld_defbinddn; |
|
} |
|
|
|
} else if( ld->ld_version < LDAP_VERSION3 ) { |
ld->ld_errno = LDAP_NOT_SUPPORTED; |
ld->ld_errno = LDAP_NOT_SUPPORTED; |
return ld->ld_errno; |
return ld->ld_errno; |
} |
} |
|
|
if ( dn == NULL ) |
if ( dn == NULL ) { |
dn = ""; |
dn = ""; |
|
} |
|
|
/* create a message to send */ |
/* create a message to send */ |
if ( (ber = ldap_alloc_ber_with_options( ld )) == NULL ) { |
if ( (ber = ldap_alloc_ber_with_options( ld )) == NULL ) { |