diff options
author | Luke Leighton <lkcl@samba.org> | 1998-09-24 20:02:56 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-09-24 20:02:56 +0000 |
commit | f650b65800c6d6c09cc2d59d7afe728fcb819a5f (patch) | |
tree | 11db7b86fe69a29e00f2aa22ec6aa9fd84bf4ddd /source3/rpc_parse | |
parent | 50beafdf22e54399af4b3dd841c53bfd6dd6de33 (diff) | |
download | samba-f650b65800c6d6c09cc2d59d7afe728fcb819a5f.tar.gz samba-f650b65800c6d6c09cc2d59d7afe728fcb819a5f.tar.bz2 samba-f650b65800c6d6c09cc2d59d7afe728fcb819a5f.zip |
this fixes the last of the issues where USRMGR.EXE and SRVMGR.EXE were
failing. running these two programs on a samba pdc now work.
parse_samr.c:
- removed __LINE__ from debug macros.
- removed call to SMB_ASSERT_ARRAY() in samr_r_query_usergroups. the
DOM_GID array is a malloc'd array (by make_dom_gids) not a static
array.
srv_samr.c:
- replaced all "struct smb_passwd"s with sam_passwds instead. there
were uid to rid confusion issues (assumptions that uids were equal
to rids).
- #if 0'd the pdb_rid_is_user() call which, given the above corrections,
would probably work now.
srv_util.c:
- replaced "struct smb_passwd" with sam_passwd in lookup_user_rid, as
assumptions were being made that uids were equal to rids.
(This used to be commit 3f98697cd5203fba07518d7c777ba19644e35b45)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 71eb8a37dd..e35bdd19d1 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -355,7 +355,7 @@ static void make_sam_entry1(SAM_ENTRY1 *sam, uint32 user_idx, { if (sam == NULL) return; - DEBUG(5,("make_sam_entry1: %d\n", __LINE__)); + DEBUG(5,("make_sam_entry1\n")); sam->user_idx = user_idx; sam->rid_user = rid_user; @@ -415,7 +415,7 @@ static void make_sam_entry2(SAM_ENTRY2 *sam, uint32 user_idx, { if (sam == NULL) return; - DEBUG(5,("make_sam_entry2: %d\n", __LINE__)); + DEBUG(5,("make_sam_entry2\n")); sam->user_idx = user_idx; sam->rid_user = rid_user; @@ -472,7 +472,7 @@ static void make_sam_entry3(SAM_ENTRY3 *sam, uint32 grp_idx, { if (sam == NULL) return; - DEBUG(5,("make_sam_entry3: %d\n", __LINE__)); + DEBUG(5,("make_sam_entry3\n")); sam->grp_idx = grp_idx; sam->rid_grp = rid_grp; @@ -510,7 +510,7 @@ static void make_sam_entry(SAM_ENTRY *sam, uint32 len_sam_name, uint32 rid) { if (sam == NULL) return; - DEBUG(5,("make_sam_entry: %d\n", __LINE__)); + DEBUG(5,("make_sam_entry\n")); sam->rid = rid; make_uni_hdr(&(sam->hdr_name), len_sam_name, len_sam_name, len_sam_name != 0); @@ -1744,8 +1744,6 @@ void samr_io_r_query_usergroups(char *desc, SAMR_R_QUERY_USERGROUPS *r_u, prs_s { prs_uint32("num_entries2", ps, depth, &(r_u->num_entries2)); - SMB_ASSERT_ARRAY(r_u->gid, r_u->num_entries2); - for (i = 0; i < r_u->num_entries2; i++) { smb_io_gid("", &(r_u->gid[i]), ps, depth); |