From ecacef213b28adb84d3ffb5b76bf1b079e25426c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 25 Oct 2005 13:38:00 +0000 Subject: [PATCH] r11293: Use the right search when forming the data for the PAC. Andrew Bartlett --- source/auth/auth_sam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/auth/auth_sam.c b/source/auth/auth_sam.c index 72fed82ea97..eefd262ff44 100644 --- a/source/auth/auth_sam.c +++ b/source/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);