March 24th, 2012, 05:43 AM
Join Date: Mar 2012
Time spent in forums: 52 m 31 sec
Reputation Power: 0
Htaccess -> php code
We are stuck with LDAP authentication...googled lot of forums, read lot of articles, without success.
May somebody knows the solution..
So, first, we have a working solution thru apache htaccess as a start
#ADMIN (admin group)
require ldap-group cn=App_numbernumbernumber,ou=App-servergroups,o=ff,o=Groups,o=zzz
that htaccess succcesfuly checks an user belongs to a group and authenticates him.
However, we would like to convert it to PHP, but it fails every time.
General, the question is, how could we check directly when somebody is a member of a specific ldap group - above is "cn=App_numbernumbernumber"
(whitout requesting his group memberships from ldap)
Thanks in foreword,