Project

General

Profile

Actions

Patch #30757

open

LDAP Contextless login in Active Directory

Added by Guilherme Chehab almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I created a very quick and dirty 4-line patch to allow contextless login authentication in Active Directory on LDAP module. I.e. without the need to have a search specific user nor allowing anonymous search in the directory server.

It uses the same login and password entered in the login screen and computes domain from a regex sub from the base_dn to avoid the need to create additional configuration fields (binds samaccountname=login@domain).

I know that it might not be needed for most AD ldap scenarios, when you should be able to create a specific user just to bind and search on your Active Directory, but I thought it might come in handy for other people.


Files

auth_source_ldap.rb.diff (689 Bytes) auth_source_ldap.rb.diff Guilherme Chehab, 2019-02-06 16:01
auth_source_ldap.rb.diff (1.11 KB) auth_source_ldap.rb.diff Fix for contextless active directory login, on the fly user creation and new user search Guilherme Chehab, 2019-02-11 15:04
Actions

Also available in: Atom PDF