1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-25 18:54:29 +01:00

correct backend module skeleton

This commit is contained in:
kakwa 2015-05-28 09:44:21 +02:00
parent fcf2002388
commit 0343af4270

View File

@ -12,18 +12,33 @@ class Backend:
def __init__(self): def __init__(self):
pass pass
def auth(self): def auth(self, username, password):
return False
def add_user(self, attrs):
pass pass
def add_to_group(self): def del_user(self, username):
pass pass
def set_attr(self): def set_attrs(self, attrs, username):
pass pass
def rm_from_group(self): def add_to_group(self, username):
pass pass
def rm_from_group(self, username):
pass
def search(self, searchstring):
return []
def get_user(self, username):
return None
def get_groups(self, username):
return []
def get_param(self, param, default=None): def get_param(self, param, default=None):
if param in self.config: if param in self.config:
return self.config[param] return self.config[param]