summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-05 13:39:25 +0100
committerGünther Deschner <gd@samba.org>2008-11-10 21:46:25 +0100
commita4c24b4d3069698ae17bb57dc131f85b25a0c03d (patch)
tree9d7cb79b12fd6819cbfb029f3d218923a58b7689
parent843135c8411662ecdad65d613fb7855628ab94d8 (diff)
downloadsamba-a4c24b4d3069698ae17bb57dc131f85b25a0c03d.tar.gz
samba-a4c24b4d3069698ae17bb57dc131f85b25a0c03d.tar.bz2
samba-a4c24b4d3069698ae17bb57dc131f85b25a0c03d.zip
s3-samr-idl: cleanup.
Guenther
-rw-r--r--source3/librpc/idl/samr.idl4
-rw-r--r--source3/rpc_server/srv_samr_nt.c3
-rw-r--r--source3/winbindd/winbindd_rpc.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/source3/librpc/idl/samr.idl b/source3/librpc/idl/samr.idl
index f47e0994dc..2f8657a0b1 100644
--- a/source3/librpc/idl/samr.idl
+++ b/source3/librpc/idl/samr.idl
@@ -441,9 +441,6 @@ import "misc.idl", "lsa.idl", "security.idl";
/************************/
/* Function 0x0b */
- const int MAX_SAM_ENTRIES_W2K = 0x400; /* 1024 */
- const int MAX_SAM_ENTRIES_W95 = 50;
-
NTSTATUS samr_EnumDomainGroups(
[in] policy_handle *domain_handle,
[in,out,ref] uint32 *resume_handle,
@@ -1437,7 +1434,6 @@ import "misc.idl", "lsa.idl", "security.idl";
[out,ref] dom_sid2 *sid
);
-
/************************/
/* Function 0x42 */
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index c573173900..62ac1cb5c3 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -45,6 +45,9 @@
#define DISP_INFO_CACHE_TIMEOUT 10
+#define MAX_SAM_ENTRIES_W2K 0x400 /* 1024 */
+#define MAX_SAM_ENTRIES_W95 50
+
typedef struct disp_info {
DOM_SID sid; /* identify which domain this is. */
bool builtin_domain; /* Quick flag to check if this is the builtin domain. */
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index d966e50159..7dea342a53 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -636,6 +636,8 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain,
return NT_STATUS_OK;
}
+#define MAX_SAM_ENTRIES_W2K 0x400 /* 1024 */
+
NTSTATUS msrpc_lookup_useraliases(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
uint32 num_sids, const DOM_SID *sids,