Closed (fixed)
Project:
LDAP integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2009 at 14:41 UTC
Updated:
24 May 2012 at 23:50 UTC
Hi there ...
Drupal as it is offers a thing to block users in the user-administration, but somehow it would be cool
if we'd be able to deny a whole LDAP group at once.
I'm working on an intranet project where logins are done via LDAP auth, and certain user-groups shall not have
access to it.
Greetings
Zewa
Comments
Comment #1
guygg commentedFor the "PHP to filter users based on their LDAP data" box, are there any good PHP evaluation examples for not allowing login by members of specific groups? I'm hardly a PHP/LDAP query expert, and the syntax & functions to use for the evaluation seem hard to find an example of. I've searched and searched via both the Drupal site and Google and can't come up with an example to base my need around. fwiw, it's Active Directory that's being queried. Doing the actual account authentication and group mappings is working just fine - I just wanna deny some select groups from being able to login to the Drupal site at all.
Thanks
Comment #2
johnbarclay commentedComment #3
cgmonroe commentedThe latest -dev version has a lot of changes to the ldapgroups module. One of them is the addition of Group Access Rules. These allow you to create rules to allow or deny people based on their group membership. If you have a situation that isn't covered, there is also a new hook_ldap_user_deny hook that you can use to create site specific code to deny users access.
For details see: #1475272: 6.x-1.0 Release Candidate 1 Status