LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 24th, 2012, 04:43 AM
dpiller dpiller is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 4 dpiller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 31 sec
Reputation Power: 0
Htaccess -> php code

Dear Everybody!

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

----
AuthType Basic
AuthName "xxxxxx"
AuthLDAPURL "ldaps:yyyyy:636/o=zzz?uid"
AuthLDAPBindDN "uid=apptttttt,o=ooooooo,o=rrrr,o=sssss,o=ppp"
AuthLDAPBindPassword "hhhhhh"
AuthzLDAPAuthoritative off
AuthBasicProvider ldap


#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,

David

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Htaccess -> php code

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap