summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-14 06:31:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:26 -0500
commit4d545e09c899dd63dfc055d05dd871c7df8638a5 (patch)
tree249b696f724805bb43065390cdba9cde64e7c1cc /source4/rpc_server
parente07525eabdf9d6430a683dc809b453212e764fd5 (diff)
downloadsamba-4d545e09c899dd63dfc055d05dd871c7df8638a5.tar.gz
samba-4d545e09c899dd63dfc055d05dd871c7df8638a5.tar.bz2
samba-4d545e09c899dd63dfc055d05dd871c7df8638a5.zip
r4202: added smbclient commands "addprivileges" and "delprivileges" for
easily adding/removing privileges from users (This used to be commit 8764909c05c4829d1e4f7eaf8c18e8ef1e53645f)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index af96b46102..22e108d538 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -1084,6 +1084,9 @@ static NTSTATUS lsa_AddRemoveAccountRights(struct dcesrv_call_state *dce_call,
ret = samdb_modify(state->sam_ctx, mem_ctx, &msg);
if (ret != 0) {
+ if (ldb_flag == LDB_FLAG_MOD_DELETE) {
+ return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ }
return NT_STATUS_UNEXPECTED_IO_ERROR;
}