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']) ]
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'])]
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]