diff options
-rw-r--r-- | source4/auth/auth_sam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/auth_sam.c b/source4/auth/auth_sam.c index 72fed82ea9..eefd262ff4 100644 --- a/source4/auth/auth_sam.c +++ b/source4/auth/auth_sam.c @@ -546,8 +546,8 @@ NTSTATUS sam_get_server_info_principal(TALLOC_CTX *mem_ctx, const char *principa } /* grab domain info */ - ret_domain = gendb_search_dn(sam_ctx, tmp_ctx, - domain_dn, &msgs_domain, domain_attrs); + ret_domain = gendb_search(sam_ctx, tmp_ctx, NULL, &msgs_domain, domain_attrs, + "(ncName=%s)", ldb_dn_linearize(tmp_ctx, domain_dn)); if (ret_domain != 1) { talloc_free(tmp_ctx); |