diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-10-25 17:19:03 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-10-25 17:19:03 +1100 |
commit | 54bd30f70632b8fcbe164133d2479092b7262a29 (patch) | |
tree | 588c4019f409b8234a15a53959d908cc9695e606 /source4/kdc | |
parent | b55a5adab99f535bb392662d54afbabed116a3b6 (diff) | |
download | samba-54bd30f70632b8fcbe164133d2479092b7262a29.tar.gz samba-54bd30f70632b8fcbe164133d2479092b7262a29.tar.bz2 samba-54bd30f70632b8fcbe164133d2479092b7262a29.zip |
s4-samdb: reduce the number of samdb opens at startup
Using common parameters means that the ldb_wrap code can return a
reference rather than a new database
Diffstat (limited to 'source4/kdc')
-rw-r--r-- | source4/kdc/hdb-samba4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/kdc/hdb-samba4.c b/source4/kdc/hdb-samba4.c index 4062e13f6c..5fef5908b8 100644 --- a/source4/kdc/hdb-samba4.c +++ b/source4/kdc/hdb-samba4.c @@ -1596,9 +1596,9 @@ NTSTATUS hdb_samba4_create_kdc(TALLOC_CTX *mem_ctx, (*db)->hdb_db = NULL; (*db)->hdb_capability_flags = 0; - nt_status = auth_system_session_info(*db, lp_ctx, &session_info); - if (!NT_STATUS_IS_OK(nt_status)) { - return nt_status; + session_info = system_session(lp_ctx); + if (session_info == NULL) { + return NT_STATUS_INTERNAL_ERROR; } /* The idea here is very simple. Using Kerberos to |