diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-01-15 13:15:54 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-01-15 14:54:13 +0100 |
commit | 3f6ae9422b5be82c36af75ba7c92132576f867fe (patch) | |
tree | a1657339bda2a0777b78b2103feea58db9ad7410 /source4/rpc_server/samr | |
parent | dbaeb52ebe4056fc50a1533fc66fe58442c57ac5 (diff) | |
download | samba-3f6ae9422b5be82c36af75ba7c92132576f867fe.tar.gz samba-3f6ae9422b5be82c36af75ba7c92132576f867fe.tar.bz2 samba-3f6ae9422b5be82c36af75ba7c92132576f867fe.zip |
s4:samr RPC server - always interpret filter integer values as signed
To prevent platform-dependant problems.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Jan 15 14:54:14 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/rpc_server/samr')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 399b1466b5..8b53aef3ef 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -522,12 +522,12 @@ static NTSTATUS dcesrv_samr_info_DomGeneralInformation(struct samr_domain_state "(objectClass=user)"); info->num_groups = samdb_search_count(state->sam_ctx, mem_ctx, state->domain_dn, - "(&(objectClass=group)(|(groupType=%u)(groupType=%u)))", + "(&(objectClass=group)(|(groupType=%d)(groupType=%d)))", GTYPE_SECURITY_UNIVERSAL_GROUP, GTYPE_SECURITY_GLOBAL_GROUP); info->num_aliases = samdb_search_count(state->sam_ctx, mem_ctx, state->domain_dn, - "(&(objectClass=group)(|(groupType=%u)(groupType=%u)))", + "(&(objectClass=group)(|(groupType=%d)(groupType=%d)))", GTYPE_SECURITY_BUILTIN_LOCAL_GROUP, GTYPE_SECURITY_DOMAIN_LOCAL_GROUP); @@ -3641,12 +3641,12 @@ static NTSTATUS dcesrv_samr_QueryDisplayInfo(struct dcesrv_call_state *dce_call, case 1: case 4: filter = talloc_asprintf(mem_ctx, "(&(objectclass=user)" - "(sAMAccountType=%u))", + "(sAMAccountType=%d))", ATYPE_NORMAL_ACCOUNT); break; case 2: filter = talloc_asprintf(mem_ctx, "(&(objectclass=user)" - "(sAMAccountType=%u))", + "(sAMAccountType=%d))", ATYPE_WORKSTATION_TRUST); break; case 3: |