summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/rootdse.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-02-05 18:18:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:48 -0500
commit096c2dc10362150aed84f2251fa8ff26c3a535bb (patch)
treec74ca8261b39980dfb366987a5354abe9e3f7455 /source4/dsdb/samdb/ldb_modules/rootdse.c
parentad5e8bbe9d5c2250092bb3a83098c3af46304a82 (diff)
downloadsamba-096c2dc10362150aed84f2251fa8ff26c3a535bb.tar.gz
samba-096c2dc10362150aed84f2251fa8ff26c3a535bb.tar.bz2
samba-096c2dc10362150aed84f2251fa8ff26c3a535bb.zip
r13353: Fix a crash bug in rootdse when we do not pass in credentials
a plain ldbsearch would just crash Fix kludge_acl, not passing on the second stage registration phase to other modules Simo (This used to be commit bec99c5cb65d8c32fd4f636ed2f5383fb1b39830)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/rootdse.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index fc1bfa824e..5f5b362c53 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -82,7 +82,7 @@ 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")) {
+ if (server_creds && do_attribute(s->attrs, "supportedSASLMechanisms")) {
struct gensec_security_ops **backends = gensec_security_all();
enum credentials_use_kerberos use_kerberos
= cli_credentials_get_kerberos_state(server_creds);