Logo Search packages:      
Sourcecode: samba-gtk version File versions  Download package

def sambagtk::pygwsam::SAMPipeManager::secinfo_to_user (   self,
  secinfo,
  user 
)
Takes 'secinfo' and updates the related fields in 'user'

returns updated 'user'

Definition at line 319 of file pygwsam.py.

                                            :
        """Takes 'secinfo' and updates the related fields in 'user'
        
        returns updated 'user'"""
        #this is for readability, we could just do secinfo.sd.dacl.aces[0] if we wanted
        security_descriptor = secinfo.sd
        DACL = security_descriptor.dacl
        ace_list = DACL.aces
        
        #we don't really need to find the user in ace_list because the first entry (S-1-1-0) should have the same flags anyways
        ace =  ace_list[0]
        user.cannot_change_password = (samr.SAMR_USER_ACCESS_CHANGE_PASSWORD & ace.access_mask) == 0
        
        return user
    

Generated by  Doxygen 1.6.0   Back to index