summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-19 18:25:25 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-20 11:12:01 +0100
commitac19b3957774193b178f9cb61829384b70fc2126 (patch)
tree9c0ee42bfa9392cc3b7a0235a6f4f0a57ff459c2 /source3
parent5f953b1ef82ee280d58bc41a125d3e51cc26f38c (diff)
downloadsamba-ac19b3957774193b178f9cb61829384b70fc2126.tar.gz
samba-ac19b3957774193b178f9cb61829384b70fc2126.tar.bz2
samba-ac19b3957774193b178f9cb61829384b70fc2126.zip
s3: Fix return code of pdb_ads_getsamupriv if the user does not exist
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Feb 20 11:12:01 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index 51aac2cd7a..ad38256abb 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -492,7 +492,7 @@ static NTSTATUS pdb_ads_getsamupriv(struct pdb_ads_state *state,
if (count != 1) {
DEBUG(10, ("Expected 1 user, got %d\n", count));
TALLOC_FREE(result);
- return NT_STATUS_INTERNAL_DB_CORRUPTION;
+ return NT_STATUS_NO_SUCH_USER;
}
result->ldapmsg = users[0];