Feature #863

add ability to restrict ldap authentication to a security group

Added by Corey Osman about 2 years ago. Updated about 1 month ago.

Status:New Start:04/22/2011
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-
Backlog:No Difficulity:
Votes: 6 (View)

Description

I would like to be able to specify ldap authentication to only do name lookups by a specific group:

example:

can I restrict by group like this : cn=foremanadmins, ou=Security Groups, dc=MYDOMAIN,dc=CORP

I currently have this enabled with my subversion setup so I was hoping I could do it on foreman as well.


Related issues

related to Foreman - Feature #813: Support AD group membership for authorization and authentication New 03/31/2011

History

Updated by Benjamin Papillon over 1 year ago

And also important, affect role based on LDAP group.
If it's possible to create a LDAP Group type,(auto create user option enabled) then when the user from a group connect for the first time, the good role is automatically assigned.

Updated by monte olvera over 1 year ago

I would also like to have ldap auth restricted to members of an ldap group.

Updated by Karl Vollmer 2 months ago

I need this for work, so I put $100 down for anyone who will complete this functionality.

https://www.bountysource.com/#issues/116703-add-ability-to-restrict-ldap-authentication-to-a-security-group

Updated by Mikael Fridh about 1 month ago

just a bit of a pseudo-code version of doing it (untested): https://github.com/frimik/foreman/compare/863-ldap_group_restriction

The actual search method code was tested against Active Directory before I hackishly put this example in the Foreman code though as I recently built some puppet functions to get canonical user and group information from Active Directory with net-ldap.

Perhaps it can inspire someone to clean it up, make it work and add it as a configuration setting?

Also available in: Atom PDF