[ciapug] PHP / LDAP / Active Directory

Jerry Weida jweida at gmail.com
Mon Aug 15 15:20:18 CDT 2005


Check out http://adldap.sourceforge.net/. It's a PHP Library to access 
Active Directory using the ldap features of PHP. It provides a usable object 
and has many useful methods for getting group membership information.

I had to hack it up a little bit to get it to accept parameters via the 
contructor rather than hard code them into the class, but it was easy enough 
to accomplish.

On 8/15/05, Wyatt, Rich <RWyatt at bsbdesign.com> wrote:
> 
>  Hello gents/ladies… 
> 
>  I'm not new to PHP but am new to this group. My question deals with using 
> PHP and ldap_search to query the Active Directory. I want to check AD to 
> see if a user is a member of a specific group or if the user is a member of 
> a group that is part of a group (this is what I really want)… 
> 
>  I can already return group membership – but I guess what I'm looking for 
> is a way to do the following:
> 
>  Joe wants access to a page… 
> 
>  Joe is part of "Super Admins" which is a member of "Another Admin" group. 
> 
>  Joe doesn't have "member of" listing for "Another Admin" group. How can I 
> check the AD with PHP/LDAP to tell me that Joe is OK for this page b/c he is 
> part of a group that has membership to the required group?
> 
>  Does this make sense? If so – anybody have any thoughts?
> 
>  Thanks in advance.
> 
>  *Rich S. Wyatt*
> 
> Webmaster
> 
> *Bloodgood Sharp Buster Architects and Planners, Inc.*
> 
> Corporate-Des Moines
> 
> Office: 515.273.3020 Fax: 515.221.3272
> 
> *www.bsbdesign.com <http://www.bsbdesign.com>** *
> 
> *National Experience, Regional Sensitivity*
> 
>  ------------------------------
> NOTICE: This email (including attachments) is covered by the Electronic 
> Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may 
> be legally privileged. If you are not the intended recipient, you are hereby 
> notified that any retention, dissemination, distribution, or copying of this 
> communication is strictly prohibited. Please reply to the sender that you 
> have received the message in error then delete it. 
> 
> 
> _______________________________________________
> ciapug mailing list
> ciapug at cialug.org
> http://cialug.org/mailman/listinfo/ciapug
> 
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/ciapug/attachments/20050815/12c66fe2/attachment.htm


More information about the ciapug mailing list