Пример #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]