mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
adding objectclasses options
This commit is contained in:
parent
16c757bdd4
commit
0f6e0c7cab
@ -78,6 +78,7 @@ ldap.checkcert = 'off'
|
||||
ldap.user_filter_tmpl = '(uid=%(username)s)'
|
||||
ldap.group_filter_tmpl = '(member=%(username)s)'
|
||||
ldap.search_filter_tmpl = '(|(uid=%(searchstring)s*)(sn=%(searchstring)s*))'
|
||||
ldap.objectclasses = 'top, person, organizationalPerson, user'
|
||||
ldap.timeout = 1
|
||||
|
||||
|
||||
|
@ -28,6 +28,7 @@ class Backend(ldapcherry.backend.Backend):
|
||||
self.user_filter_tmpl = self.get_param('user_filter_tmpl')
|
||||
self.group_filter_tmpl = self.get_param('group_filter_tmpl')
|
||||
self.search_filter_tmpl = self.get_param('search_filter_tmpl')
|
||||
self.objectclasses = self.get_param('objectclasses')
|
||||
self.attrlist = []
|
||||
for a in attrslist:
|
||||
try:
|
||||
|
@ -78,6 +78,7 @@ ldap.checkcert = 'off'
|
||||
ldap.user_filter_tmpl = '(uid=%(username)s)'
|
||||
ldap.group_filter_tmpl = '(member=%(userdn)s)'
|
||||
ldap.search_filter_tmpl = '(|(uid=%(searchstring)s*)(sn=%(searchstring)s*))'
|
||||
ldap.objectclasses = 'top, person, organizationalPerson, user'
|
||||
ldap.timeout = 1
|
||||
|
||||
ad.module = 'ldapcherry.backend.backendSamba4'
|
||||
|
@ -26,6 +26,7 @@ cfg = {
|
||||
'user_filter_tmpl' : '(uid=%(username)s)',
|
||||
'group_filter_tmpl' : '(member=%(userdn)s)',
|
||||
'search_filter_tmpl' : '(|(uid=%(searchstring)s*)(sn=%(searchstring)s*))',
|
||||
'objectclasses' : 'top, person, organizationalPerson, user',
|
||||
}
|
||||
|
||||
cherrypy.log.error = syslog_error
|
||||
|
Loading…
Reference in New Issue
Block a user