From d27ffc27ffd5ab57b5e0124203a08a3bb70aa1e1 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 25 Oct 2005 13:38:00 +0000 Subject: r11293: Use the right search when forming the data for the PAC. Andrew Bartlett (This used to be commit ecacef213b28adb84d3ffb5b76bf1b079e25426c) --- source4/auth/auth_sam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') 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); -- cgit