summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-06 12:01:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:28 -0500
commit42cf0af75853648a232928a9df2a6e8f5fe4377e (patch)
tree5f0a9e4657f3f9303ab0f46ef783672937bc3523 /source4
parent365d9ef73d47446c2aaa4f24c970d4e6ec81c20a (diff)
downloadsamba-42cf0af75853648a232928a9df2a6e8f5fe4377e.tar.gz
samba-42cf0af75853648a232928a9df2a6e8f5fe4377e.tar.bz2
samba-42cf0af75853648a232928a9df2a6e8f5fe4377e.zip
r4563: fixed lsa_EnumAccounts() server side to return all accounts that have privileges, as
volker discovered (This used to be commit 09edc31f3b92105dab585614553ba5e94ccdf588)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 1107600235..9811c37ace 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -464,7 +464,8 @@ static NTSTATUS lsa_EnumAccounts(struct dcesrv_call_state *dce_call, TALLOC_CTX
state = h->data;
- ret = samdb_search(state->sam_ctx, mem_ctx, state->builtin_dn, &res, attrs, "objectClass=group");
+ ret = samdb_search(state->sam_ctx, mem_ctx, state->builtin_dn, &res, attrs,
+ "privilege=*");
if (ret <= 0) {
return NT_STATUS_NO_SUCH_USER;
}