s3: Fix return code of pdb_ads_getsamupriv if the user does not exist
authorVolker Lendecke <vl@samba.org>
Sat, 19 Feb 2011 17:25:25 +0000 (18:25 +0100)
committerVolker Lendecke <vlendec@samba.org>
Sun, 20 Feb 2011 10:12:01 +0000 (11:12 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 20 11:12:01 CET 2011 on sn-devel-104

source3/passdb/pdb_ads.c

index 51aac2cd7a7a1006bee1e5eb5ccf819faf3d65b9..ad38256abbd11a028fc28080561e5fc3a5c62145 100644 (file)
@@ -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];