Modify

Opened 4 years ago

#11412 new enhancement

Allow connexion without user_searchbase

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

Description

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)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Larry Ruiz.

Add Comment


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

 
Note: See TracTickets for help on using tickets.