Opened 3 years ago

#11412 new enhancement

Allow connexion without user_searchbase

Reported by: anonymous Owned by: lruiz
Priority: normal Component: LdapAuthnzPlugin
Severity: normal Keywords:
Cc: Trac Release:


My Novell LDAP server doesn't keep user list into an 'ou', so I had to leave user_searchbase, but then the LDAP searchbase is invalide because it starts with a comma (,).

Here's a proposed patch (my knowledge of Python are quite basic) :

LINE 13 : The default user_searchbase is now empty

user_searchbase = Option('ldap', 'user_searchbase', '')

LINE 24 : Strip separators (comma) at string start and end

base = (self.user_searchbase + ',' + self.root_dn).strip(',')

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

as new The owner will remain lruiz.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.