[Fwd: Patch To Fix Bug In rpc_server/srv_samr_nt.c V3.0.0rc3]

Gregory Hinton Nietsky gregory at networksentry.co.za
Fri Sep 12 17:45:31 GMT 2003

it appears a gremlin has krept into the code ... (aka the F$#% UP fairy 
when you find her kill her and send me a piece)

as far as i can tell the bellow should be appropriate

int the source dir patch -p0

desired access is not set and as such the se_map_generic will certainly 
prevent access to all groups with NT_ACCESS_DENIED

the result of this bug is that no groups can be opened and membership 
found this is needed in my case to talk to
a samba server to ennumerate groups in winbindd_group (getent 
group/getgrname ....) and breaks quite a few unix group permissions


--- ../../samba-3.0.0rc3/samba-3.0.0rc3/source/rpc_server/srv_samr_nt.c 
Thu Aug 28 23:42:45 2003
+++ rpc_server/srv_samr_nt.c    Fri Sep 12 18:41:34 2003
@@ -4236,7 +4236,7 @@
        struct samr_info *info;
        SEC_DESC         *psd = NULL;
        uint32            acc_granted;
-       uint32            des_access;
+       uint32            des_access = q_u->access_mask;
        size_t            sd_size;
        NTSTATUS          status;
        fstring sid_string;

This message has been scanned for viruses and
dangerous content by Network Sentry, and is
believed to be clean.

More information about the samba-technical mailing list