1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-21 20:23:50 +03:00

Changed how the privileges are stored in the group mapping code. It's now

an array of uint32. That's not perfect but that's better.

Added more privileges too.

Changed the local_lookup_rid/name functions in passdb.c to check if the
group is mapped. Makes the LSA rpc calls return correct groups

Corrected the return code in the LSA server code enum_sids.

Only enumerate well known aliases if they are mapped to real unix groups.
Won't confuse user seeing groups not available.

Added a short/long view to smbgroupedit.

now decoding rpc calls to add/remove privileges to sid.

        J.F.
This commit is contained in:
Jean-François Micouleau
-
parent a58d0f91f9
commit f29774e589
8 changed files with 266 additions and 95 deletions

View File

@@ -854,6 +854,15 @@ static BOOL lsa_io_sid_enum(char *desc, LSA_SID_ENUM *sen, prs_struct *ps,
return False;
if(!prs_uint32("ptr_sid_enum", ps, depth, &sen->ptr_sid_enum))
return False;
/*
if the ptr is NULL, leave here. checked from a real w2k trace.
JFM, 11/23/2001
*/
if (sen->ptr_sid_enum==0)
return True;
if(!prs_uint32("num_entries2", ps, depth, &sen->num_entries2))
return False;