Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a requirement for fetching all the mail id of the person in the active directory.
It has to use LDAp, PHP and using mac system.

If I use a wild card entry then we would get a list of people but is there any API to fecth a particlar like "mail" from list of searches.

Thanks.
Posted

PHP has a lot of built in methods to handle LDAP (since version 4)...

ldap_connect[^] - to connect to LDAP server
ldap_list[^] - to list entries in single level
ldap_search[^] - to search in LDAP tree
ldap_get_entries[^] - to get actiul entry values

For the whole package read here: LDAP[^]
 
Share this answer
 
v2
Comments
Maciej Los 22-Dec-14 7:55am    
+5
Kornfeld Eliyahu Peter 22-Dec-14 7:56am    
Thank you...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900