|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Active directory search
if I were to login with a user, how would I use ldap to find out which user groups a person belonged to?
|
|
#2
|
||||
|
||||
|
What are you searching with? the command line tool (ldapsearch)? Or something else?
|
|
#3
|
|||
|
|||
|
Oops, I forgot to post that. I am trying to use a php interface, so I guess that would mean I would be trying to use the ldap_search() function.
Does that help? |
|
#4
|
||||
|
||||
|
So you just need a filter to put in it right? Well to create one I need to know how the stucture of the entries you want to search are.
Here is the RFC on how to create filters http://www.faqs.org/rfcs/rfc2254.html |
|
#5
|
|||
|
|||
|
Not sure if this is what you want but:
Well, I want it to return the global groups that the user, who has logged in, is a part of. [Or do you mean the "dc=usask,dc=ca" part?" because the user could be in any of the OUs and then in any of the containers below that.] Thanks Viper |
|
#6
|
||||
|
||||
|
The memberOf attribute is what you need to return from the search to list all groups the user belongs to in AD ...
|
![]() |
| Viewing: Dev Shed Forums > Databases > LDAP Programming > Active directory search |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|