diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-12 00:06:36 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-12 16:45:48 +0200 |
commit | 4659b3c4fd0e9ae7108e9fc4d613682f9f0a098a (patch) | |
tree | 7dcb0103809b4fdbdc576beea0dacdde2a04db15 /source4 | |
parent | d2099a1deff54423b477bf58c977118256ece92b (diff) | |
download | samba-4659b3c4fd0e9ae7108e9fc4d613682f9f0a098a.tar.gz samba-4659b3c4fd0e9ae7108e9fc4d613682f9f0a098a.tar.bz2 samba-4659b3c4fd0e9ae7108e9fc4d613682f9f0a098a.zip |
s4:dcesrv_samr_QueryAliasInfo - return "NT_STATUS_NO_SUCH_ALIAS" when it wasn't found
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 889d54a7f0..b17c6cd922 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -2284,7 +2284,10 @@ static NTSTATUS dcesrv_samr_QueryAliasInfo(struct dcesrv_call_state *dce_call, T /* pull all the alias attributes */ ret = gendb_search_dn(a_state->sam_ctx, mem_ctx, - a_state->account_dn ,&res, attrs); + a_state->account_dn, &res, attrs); + if (ret == 0) { + return NT_STATUS_NO_SUCH_ALIAS; + } if (ret != 1) { return NT_STATUS_INTERNAL_DB_CORRUPTION; } |