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

fix backend module skeleton

This commit is contained in:
kakwa 2015-06-17 19:48:57 +02:00
parent ce357dbdc7
commit 45393c3a80

View File

@ -9,7 +9,7 @@ from ldapcherry.exceptions import MissingParameter
class Backend: class Backend:
def __init__(self): def __init__(self, config, logger, name, attrslist, key):
pass pass
def auth(self, username, password): def auth(self, username, password):
@ -21,20 +21,20 @@ class Backend:
def del_user(self, username): def del_user(self, username):
pass pass
def set_attrs(self, attrs, username): def set_attrs(self, username, attrs):
pass pass
def add_to_group(self, username): def add_to_groups(self, username, groups):
pass pass
def rm_from_group(self, username): def del_from_groups(self, username, groups):
pass pass
def search(self, searchstring): def search(self, searchstring):
return [] return {}
def get_user(self, username): def get_user(self, username):
return None return {}
def get_groups(self, username): def get_groups(self, username):
return [] return []