mirror of
https://github.com/kakwa/ldapcherry
synced 2024-12-23 13:20:03 +01:00
correct backend module skeleton
This commit is contained in:
parent
fcf2002388
commit
0343af4270
@ -12,18 +12,33 @@ class Backend:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def auth(self):
|
||||
def auth(self, username, password):
|
||||
return False
|
||||
|
||||
def add_user(self, attrs):
|
||||
pass
|
||||
|
||||
def add_to_group(self):
|
||||
def del_user(self, username):
|
||||
pass
|
||||
|
||||
def set_attr(self):
|
||||
def set_attrs(self, attrs, username):
|
||||
pass
|
||||
|
||||
def rm_from_group(self):
|
||||
def add_to_group(self, username):
|
||||
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):
|
||||
if param in self.config:
|
||||
return self.config[param]
|
||||
|
Loading…
x
Reference in New Issue
Block a user