def __init__(self, settings):
    self.settings = settings
    self.user_base_dn = settings.options.get('user_base_dn', '')
    self.client = self._get_client()
def __init__(self, settings):
    self.settings = settings
    self.user_base_dn = settings.options.get('user_base_dn', )
    self.client = self._get_client()