diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-02 19:28:17 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-02 19:28:17 +0100 |
commit | 1e053df95c478dd5ca5fceab822700af49cc6510 (patch) | |
tree | 23c2034ee2d5f9ed196f78f2df9428dcc73d8733 /source4/ldap_server | |
parent | 3fda6c5c2a4199217a0ee4078125fe3178639009 (diff) | |
download | samba-1e053df95c478dd5ca5fceab822700af49cc6510.tar.gz samba-1e053df95c478dd5ca5fceab822700af49cc6510.tar.bz2 samba-1e053df95c478dd5ca5fceab822700af49cc6510.zip |
Remove use of global_loadparm for disabled gensec backends.
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_backend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ldap_server/ldap_backend.c b/source4/ldap_server/ldap_backend.c index 32fc00832e..d0417107f1 100644 --- a/source4/ldap_server/ldap_backend.c +++ b/source4/ldap_server/ldap_backend.c @@ -74,6 +74,9 @@ NTSTATUS ldapsrv_backend_Init(struct ldapsrv_connection *conn) = gensec_use_kerberos_mechs(conn, backends, conn->server_credentials); int i, j = 0; for (i = 0; ops && ops[i]; i++) { + if (!gensec_security_ops_enabled(ops[i], conn->lp_ctx)) + continue; + if (ops[i]->sasl_name && ops[i]->server_start) { char *sasl_name = talloc_strdup(conn, ops[i]->sasl_name); |