mmc :: plugins :: base :: GpoManager :: Class GpoManager
[hide private]
[frames] | no frames]

Class GpoManager

source code

Instance Methods [hide private]
 
__init__(self, service, conffile=None, gpoCreate=True) source code
 
_getDN(self) source code
 
_getGpoDN(self, gpoName) source code
 
addRootGpoOu(self)
Add a main GPO organizational unit
source code
 
addServiceOuGPO(self)
Add a main ou for the current service under main GPO ou.
source code
 
add(self, gpoName, ACLs)
Add a GPO
source code
 
delete(self, gpoName)
Delete a GPO
source code
 
addUserToGPO(self, uid, gpoName)
Add an user to a GPO.
source code
 
delUserFromGPO(self, uid, gpoName)
Del an user from a GPO.
source code
 
getUsersFromGPO(self, gpoName)
Return all members of a GPO
source code
 
addGroupToGPO(self, group, gpoName)
Add a group to a GPO.
source code
 
delGroupFromGPO(self, group, gpoName)
Del n group from a GPO.
source code
 
getGroupsFromGPO(self, gpoName)
Return all group members of a GPO
source code
 
getResourceGpo(self, dn, gpoName)
Return the resources name to which an user is member
source code
Method Details [hide private]

__init__(self, service, conffile=None, gpoCreate=True)
(Constructor)

source code 
Parameters:
  • service - name of the service (sub ou of the GPO root)
  • gpoCreate - If True, create the needed OU for GPO management of the service

add(self, gpoName, ACLs)

source code 

Add a GPO

Parameters:
  • gpoName - Name of the GPO
  • ACLs (dict) - ACLs dict

delete(self, gpoName)

source code 

Delete a GPO

Parameters:
  • gpoName - Name of the GPO

addUserToGPO(self, uid, gpoName)

source code 

Add an user to a GPO.

The DN of the user is put in a member field of the GPO.

Parameters:
  • gpoName - name of the GPO

delUserFromGPO(self, uid, gpoName)

source code 

Del an user from a GPO.

Parameters:
  • gpoName - name of the GPO
  • uid - uid of the user name

addGroupToGPO(self, group, gpoName)

source code 

Add a group to a GPO.

The DN of the group is put in a member field of the GPO.

Parameters:
  • group - group name
  • gpoName - name of the GPO

delGroupFromGPO(self, group, gpoName)

source code 

Del n group from a GPO.

Parameters:
  • group - group name
  • gpoName - name of the GPO

getResourceGpo(self, dn, gpoName)

source code 

Return the resources name to which an user is member

Parameters:
  • dn - user name or group name to search for(full DN)
  • gpoName - name of the GPO to search for