suisied
suisied

Reputation: 426

searching in LDAP via PHP

I am following this script

http://php.net/manual/en/ldap.examples-basic.php

and I can't understand this line of code due to lack of knowledge of LDAP

$sr=ldap_search($ds, "o=My Company, c=US", "sn=S*"); 

what extacly is o and c?

for sn, I am assuming and based on the comments from the code it's a surname entry.

EDIT :

anyway, what should I ask the admin about the PHP configuration, for example I want to query a list of users or authenticate a user to my php script, what are the values I need to acquire from the admin. thanks.

Upvotes: 0

Views: 67

Answers (1)

Hylco Uding
Hylco Uding

Reputation: 21

o is short for organization and c is short for country.

Next time try google before asking it here. The answer was the first hit on a simple google search.

Try looking here for more information: Ldap Tutorial

Upvotes: 2

Related Questions