diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-28 12:19:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:34 -0500 |
commit | 654a21178fa7e908e3a2be42d5522ea1b1b23250 (patch) | |
tree | dd08f7db5a8cefd0bf234c036ed82ccb80fb6284 /source4/dsdb/samdb | |
parent | 44e601b5ad635ba29088fd4c747627dee8d62112 (diff) | |
download | samba-654a21178fa7e908e3a2be42d5522ea1b1b23250.tar.gz samba-654a21178fa7e908e3a2be42d5522ea1b1b23250.tar.bz2 samba-654a21178fa7e908e3a2be42d5522ea1b1b23250.zip |
r13207: Use the new API for using/not using kerbeors in hdb-ldb.c
Update the rootdse module to use the new schema.
Andrew Bartlett
(This used to be commit b0b150d08ac39ed486071487826da2e306db6a0b)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/rootdse.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index 0bf63f30ae..fc1bfa824e 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -83,7 +83,11 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_request *re server_creds = talloc_get_type(ldb_get_opaque(module->ldb, "server_credentials"), struct cli_credentials); if (do_attribute(s->attrs, "supportedSASLMechanisms")) { - const struct gensec_security_ops **ops = cli_credentials_gensec_list(server_creds); + struct gensec_security_ops **backends = gensec_security_all(); + enum credentials_use_kerberos use_kerberos + = cli_credentials_get_kerberos_state(server_creds); + struct gensec_security_ops **ops + = gensec_use_kerberos_mechs(req, backends, use_kerberos); int i; for (i = 0; ops && ops[i]; i++) { if (ops[i]->sasl_name) { |