version 1.42, 2002/04/01 20:28:02
|
version 1.43, 2002/06/05 13:46:27
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.41 2002/01/04 20:17:39 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.42 2002/04/01 20:28:02 julius Exp $ */ |
/* |
/* |
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
Line 75 ldap_sasl_bind(
|
Line 75 ldap_sasl_bind(
|
rc = ldap_int_client_controls( ld, cctrls ); |
rc = ldap_int_client_controls( ld, cctrls ); |
if( rc != LDAP_SUCCESS ) return rc; |
if( rc != LDAP_SUCCESS ) return rc; |
|
|
if( msgidp == NULL ) { |
|
ld->ld_errno = LDAP_PARAM_ERROR; |
|
return ld->ld_errno; |
|
} |
|
|
|
if( mechanism == LDAP_SASL_SIMPLE ) { |
if( mechanism == LDAP_SASL_SIMPLE ) { |
if( dn == NULL && cred != NULL ) { |
if( dn == NULL && cred != NULL ) { |
/* use default binddn */ |
/* use default binddn */ |
Line 269 ldap_parse_sasl_bind_result(
|
Line 264 ldap_parse_sasl_bind_result(
|
assert( LDAP_VALID( ld ) ); |
assert( LDAP_VALID( ld ) ); |
assert( res != NULL ); |
assert( res != NULL ); |
|
|
if ( ld == NULL || res == NULL ) { |
|
return LDAP_PARAM_ERROR; |
|
} |
|
|
|
if( servercredp != NULL ) { |
if( servercredp != NULL ) { |
if( ld->ld_version < LDAP_VERSION2 ) { |
if( ld->ld_version < LDAP_VERSION2 ) { |
return LDAP_NOT_SUPPORTED; |
return LDAP_NOT_SUPPORTED; |