diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-10-10 17:00:45 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-10-10 23:08:49 +0200 |
commit | 93126b3315a70d1beaeaa64d05cdbfb167acbabe (patch) | |
tree | fd7555f136bbc9c7b7f96b8cc753c0bfe0f9ed58 /source4/kdc | |
parent | 6280725b47391c69dd7db1133c15bd0ce7418da6 (diff) | |
download | samba-93126b3315a70d1beaeaa64d05cdbfb167acbabe.tar.gz samba-93126b3315a70d1beaeaa64d05cdbfb167acbabe.tar.bz2 samba-93126b3315a70d1beaeaa64d05cdbfb167acbabe.zip |
samdb: Add flags argument to samdb_connect().
Diffstat (limited to 'source4/kdc')
-rw-r--r-- | source4/kdc/db-glue.c | 2 | ||||
-rw-r--r-- | source4/kdc/kpasswdd.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index 10d25ee184..9d6a230b99 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -1660,7 +1660,7 @@ NTSTATUS samba_kdc_setup_db_ctx(TALLOC_CTX *mem_ctx, struct samba_kdc_base_conte /* Setup the link to LDB */ kdc_db_ctx->samdb = samdb_connect(kdc_db_ctx, base_ctx->ev_ctx, - base_ctx->lp_ctx, session_info); + base_ctx->lp_ctx, session_info, 0); if (kdc_db_ctx->samdb == NULL) { DEBUG(1, ("hdb_samba4_create: Cannot open samdb for KDC backend!")); talloc_free(kdc_db_ctx); diff --git a/source4/kdc/kpasswdd.c b/source4/kdc/kpasswdd.c index 7148428e46..1ccae10eda 100644 --- a/source4/kdc/kpasswdd.c +++ b/source4/kdc/kpasswdd.c @@ -180,7 +180,7 @@ static bool kpasswdd_change_password(struct kdc_server *kdc, /* Connect to a SAMDB with system privileges for fetching the old pw * hashes. */ samdb = samdb_connect(mem_ctx, kdc->task->event_ctx, kdc->task->lp_ctx, - system_session(kdc->task->lp_ctx)); + system_session(kdc->task->lp_ctx), 0); if (!samdb) { return kpasswdd_make_error_reply(kdc, mem_ctx, KRB5_KPASSWD_HARDERROR, @@ -213,7 +213,7 @@ static bool kpasswdd_change_password(struct kdc_server *kdc, /* Start a SAM with user privileges for the password change */ samdb = samdb_connect(mem_ctx, kdc->task->event_ctx, kdc->task->lp_ctx, - session_info); + session_info, 0); if (!samdb) { return kpasswdd_make_error_reply(kdc, mem_ctx, KRB5_KPASSWD_HARDERROR, @@ -371,7 +371,7 @@ static bool kpasswd_process_request(struct kdc_server *kdc, } krb5_free_principal(context, principal); - samdb = samdb_connect(mem_ctx, kdc->task->event_ctx, kdc->task->lp_ctx, session_info); + samdb = samdb_connect(mem_ctx, kdc->task->event_ctx, kdc->task->lp_ctx, session_info, 0); if (!samdb) { return kpasswdd_make_error_reply(kdc, mem_ctx, KRB5_KPASSWD_HARDERROR, |