mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Don't init SASL library until we actually want a SASL session
This commit is contained in:
parent
51358be911
commit
dc19332bb9
2 changed files with 5 additions and 2 deletions
|
|
@ -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…
Reference in a new issue