mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Move Cyrus SASL initializing forward
This commit is contained in:
parent
2b78f44203
commit
d3cb8a357f
1 changed files with 8 additions and 6 deletions
|
|
@ -321,6 +321,14 @@ ldap_int_open_connection(
|
|||
INT_MAX, (void *)"ldap_" );
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CYRUS_SASL
|
||||
/* establish Cyrus SASL context prior to starting TLS so
|
||||
that SASL EXTERNAL might be used */
|
||||
if( sasl_host != NULL ) {
|
||||
ldap_int_sasl_open( ld, conn, sasl_host, sasl_ssf );
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TLS
|
||||
if (ld->ld_options.ldo_tls_mode == LDAP_OPT_X_TLS_HARD ||
|
||||
strcmp( srv->lud_scheme, "ldaps" ) == 0 )
|
||||
|
|
@ -337,12 +345,6 @@ ldap_int_open_connection(
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CYRUS_SASL
|
||||
if( sasl_host != NULL ) {
|
||||
ldap_int_sasl_open( ld, conn, sasl_host, sasl_ssf );
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
|
||||
if ( conn->lconn_krbinstance == NULL ) {
|
||||
char *c;
|
||||
|
|
|
|||
Loading…
Reference in a new issue