summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-05-26 14:47:11 +1000
committerAndrew Tridgell <tridge@samba.org>2009-05-26 14:47:11 +1000
commita9542ba21b4d4ef088ac2cf31f9f4074dc211aa8 (patch)
tree1a37558709ed1d783847548e7b7aeaf7a0889b69
parent02996093088a9244c44f46818ac093430d21a99c (diff)
downloadsamba-a9542ba21b4d4ef088ac2cf31f9f4074dc211aa8.tar.gz
samba-a9542ba21b4d4ef088ac2cf31f9f4074dc211aa8.tar.bz2
samba-a9542ba21b4d4ef088ac2cf31f9f4074dc211aa8.zip
use domain_dn not ncname
fixed up from previous patch that removed the use of crossref records
-rw-r--r--source4/auth/sam.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/auth/sam.c b/source4/auth/sam.c
index ebdf1932af..c70c02cb3c 100644
--- a/source4/auth/sam.c
+++ b/source4/auth/sam.c
@@ -269,7 +269,6 @@ _PUBLIC_ NTSTATUS authsam_make_server_info(TALLOC_CTX *mem_ctx, struct ldb_conte
struct dom_sid *account_sid;
struct dom_sid *primary_group_sid;
const char *str;
- struct ldb_dn *ncname;
int i;
uint_t rid;
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
@@ -358,10 +357,10 @@ _PUBLIC_ NTSTATUS authsam_make_server_info(TALLOC_CTX *mem_ctx, struct ldb_conte
server_info->allow_password_change
= samdb_result_allow_password_change(sam_ctx, mem_ctx,
- ncname, msg, "pwdLastSet");
+ domain_dn, msg, "pwdLastSet");
server_info->force_password_change
= samdb_result_force_password_change(sam_ctx, mem_ctx,
- ncname, msg);
+ domain_dn, msg);
server_info->logon_count = samdb_result_uint(msg, "logonCount", 0);
server_info->bad_password_count = samdb_result_uint(msg, "badPwdCount", 0);