vaultmanager/modules/VaultManagerLDAP.py
def find_ldap_group(self, user, group_regex):
        """
        Find a group matching a regex
        """
        ft = []
        for group in self.ldap_users[user]:
            match = re.match(group_regex, group)
            if match:
                ft.extend([g for g in match.groups() if g is not None])

        if len(ft) == 0:
            return ""
        return ",".join(ft)

        Find a group matching a regex
        
Find a group matching a regex
Find a group matching a regex
def find_ldap_group(self, user, group_regex):
        ft = []
        for group in self.ldap_users[user]:
            match = re.match(group_regex, group)
            if match:
                ft.extend([g for g in match.groups() if g is not None])
        if len(ft) == 0:
            return ""
        return ",".join(ft)
def find_ldap_group ( self , user , group_regex ) : ft = [ ] for group in self . ldap_users [ user ] : match = re . match ( group_regex , group ) if match : ft . extend ( [ g for g in match . groups ( ) if g is not None ] ) if len ( ft ) == 0 : return "" return "," . join ( ft )
Find a group matching a regex
Find a group matching a regex
"""
        Find a group matching a regex
        """
self
user
group_regex