def auth_user(self, username, password): try: conn = Client(current_app.config['IPA_HOST']) #conn.login(username, password) conn.login_kerberos() return True except freeipa.exceptions: return
def get_user_info(self, username): try: conn = Client(current_app.config['IPA_HOST']) conn.login_kerberos() #query = ClientMeta(current_app.config['IPA_HOST']) info = conn.user_show(username) return info except freeipa.exceptions as e: raise IPAException(self.error(e.args))