mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
Don't init SASL library until we actually want a SASL session
This commit is contained in:
parent
51358be911
commit
dc19332bb9
@ -499,6 +499,11 @@ ldap_int_sasl_open(
|
||||
return ld->ld_errno;
|
||||
}
|
||||
|
||||
if ( ldap_int_sasl_init() ) {
|
||||
ld->ld_errno = LDAP_LOCAL_ERROR;
|
||||
return ld->ld_errno;
|
||||
}
|
||||
|
||||
#if SASL_VERSION_MAJOR >= 2
|
||||
rc = sasl_client_new( "ldap", host, NULL, NULL,
|
||||
NULL, 0, &ctx );
|
||||
|
@ -611,6 +611,4 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
|
||||
}
|
||||
|
||||
openldap_ldap_init_w_env(gopts, NULL);
|
||||
|
||||
ldap_int_sasl_init();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user