def __init__(self, module): LdapGeneric.__init__(self, module) # Shortcuts self.attrs = self.module.params['attributes'] self.state = self.module.params['state'] self.ordered = self.module.params['ordered']
def __init__(self, module): LdapGeneric.__init__(self, module) self.dn = self.module.params['dn'] self.filterstr = self.module.params['filter'] self.attrlist = [] self._load_scope() self._load_attrs() self._load_schema()
def __init__(self, module): LdapGeneric.__init__(self, module) # Shortcuts self.name = self.module.params['name'] self.state = self.module.params['state'] # Normalize values if isinstance(self.module.params['values'], list): self.values = list(map(to_bytes, self.module.params['values'])) else: self.values = [to_bytes(self.module.params['values'])]
def __init__(self, module): LdapGeneric.__init__(self, module) # Shortcuts self.state = self.module.params['state'] # Add the objectClass into the list of attributes self.module.params['attributes']['objectClass'] = ( self.module.params['objectClass']) # Load attributes if self.state == 'present': self.attrs = self._load_attrs()
def __init__(self, module): LdapGeneric.__init__(self, module) # Shortcuts self.passwd = self.module.params['passwd']