예제 #1
0
    def ldap_addresses(self):
        if self.parameters['server']:
            return [self.parameters['server']]

        return [
            str(i)
            for i in get_srv_records('ldap', 'tcp', self.parameters['realm'])
        ]
예제 #2
0
    def ldap_addresses(self):
        if self.parameters['server']:
            return [self.parameters['server']]

        return [str(i) for i in get_srv_records('ldap', 'tcp', self.parameters['realm'])]
예제 #3
0
 def ldap_addresses(self):
     records = get_srv_records('ldap', 'tcp', self.parameters['realm'],
                               self.parameters.get('dc_address'))
     return [str(i) for i in records]
예제 #4
0
 def ldap_addresses(self):
     records = get_srv_records('ldap', 'tcp', self.parameters['realm'], self.parameters.get('dc_address'))
     return [str(i) for i in records]