summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-16 15:49:29 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-16 21:10:51 +1100
commit0bedb9cf5ec592dfdf84994a9ace64a2c5d1e987 (patch)
tree159590c2b9a7dee2ae3b561af2317b07f538f0ec /source4/auth
parentb630530730a710b7e850be2f848b1b85dbc25b4d (diff)
downloadsamba-0bedb9cf5ec592dfdf84994a9ace64a2c5d1e987.tar.gz
samba-0bedb9cf5ec592dfdf84994a9ace64a2c5d1e987.tar.bz2
samba-0bedb9cf5ec592dfdf84994a9ace64a2c5d1e987.zip
s4-dsdb: removed gendb_search_single_extended_dn()
Use dsdb_search_one() instead, which allows for arbitrary controls Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/sam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/auth/sam.c b/source4/auth/sam.c
index 4c0fafeff8..9d841e4e9b 100644
--- a/source4/auth/sam.c
+++ b/source4/auth/sam.c
@@ -33,6 +33,7 @@
#include "librpc/gen_ndr/ndr_security.h"
#include "param/param.h"
#include "auth/auth_sam.h"
+#include "dsdb/common/util.h"
#define KRBTGT_ATTRS \
/* required for the krb5 kdc */ \
@@ -548,8 +549,8 @@ NTSTATUS sam_get_results_principal(struct ldb_context *sam_ctx,
}
/* pull the user attributes */
- ret = gendb_search_single_extended_dn(sam_ctx, tmp_ctx, user_dn,
- LDB_SCOPE_BASE, msg, attrs, "(objectClass=*)");
+ ret = dsdb_search_one(sam_ctx, tmp_ctx, msg, user_dn,
+ LDB_SCOPE_BASE, attrs, DSDB_SEARCH_SHOW_EXTENDED_DN, "(objectClass=*)");
if (ret != LDB_SUCCESS) {
talloc_free(tmp_ctx);
return NT_STATUS_INTERNAL_DB_CORRUPTION;