Thank you for your post again & I’m sorry - misunderstand what you post as I’m new to LDAP stuff. I setup as fallows
 
$ldap_server[0] = array(
    'host' => 'mail.exchange.com',
    'base' => 'ou=client,dc=exchange,dc=com',   < -- I create a Client OU and put all users.
    'name' => 'Global Address List',
    'maxrows' => 50,
    'protocol' => 3
 
but says No persons matching your search were found
 
& according to the ldp.exe in W2K AD server – to get GAL 
base dn -- >‘cn=global-address-list,cn=schema,cn=configuration,dc=exchange,dc=com
Filter  -- > (objectclass=*)
        Ldap_search
        Getting 1 entries:
        >> DN:cn=global-address-list,cn=schema,cn=configuration,dc=exchange,dc=com
 
but I have to assign bind user & password; Authentication type = sasl, ldap version = 3 to get above results.
 
I do not know how to assign in Linux ldapsearch as above & how to set sasl 
 
ldapsearch –x –h mail.exchange.com –b ‘global-address-list,cn=schema,cn=configuration,dc=exchange,dc=com’ ‘(objectclass=*)
it gives …
version: 2
 
#
# filter: (objectclass=*)
# requesting: ALL
#
 
# search result
search: 2
result: 0 Success 
 
And I setup as …
$ldap_server[0] = array(
    'host' => 'mail.exchange.com',
    'base' => ‘cn=global-address-list,cn=schema,cn=configuration,dc=exchange,dc=com’,
    'name' => 'Global Address List',
    ‘binddn’ => ‘cn=administrator,cn=users,dc=exchange,dc=com
    ‘bindpw’ => ‘secret’
    'maxrows' => 50,
    'protocol' => 3
 
it says No persons matching your search were found
 
I hope something out there which do not know.. Please advice & earlier attention is much appreciated.
 
- Hirantha
 
 
 
-------------------------------------------------------
 $ldap_server[0] = array(
     "host" => "ldap://localhost",  // URL of ldap server, 
     // from php 4.0.4 you should be able to use "ldaps://ssl-ldap.server" 
 
     "base" => "ou=contacts,o=example.com", // base dn
 
     "name" => "LDAP contacts", // address book name used in SM
 
     "port" => 389, // port used by ldap server
 
     "charset" => "utf-8", // charset used for ldap entries 
        // (see limits of http://www.php.net/utf8-decode)
 
     "maxrows" => 50, // max number of search results
 
     "binddn" => "cn=admin,o=example.com", 
        // login used to connect to ldap server
 
     "bindpw" => "secret", // password used to connect to ldap server
 
     "protocol" => 3 // protocol used to connect to ldap server.
 );
 -------------------------------------------------------
 
 I have asked to set bind protocol option.
 
 $ldap_server[0] = array(
     "host" => "mail.exchange.com",
     "base" => "cn=users,dc=exchange,dc=com",
     "name" => "Global Address List",
     "protocol" => 3
 );
 
 Run command
 
 ldapsearch -x -h mail.exchange.com -b "dc=exchange,dc=com" "(objectclass=*)"
 
 if you want to see all public records stored in your ldap server.
 
 use "-D "some bind dn" -W" options without double quotes, if you want to use non-anonymous
bind.
 
 "base" => "cn=users,dc=exchange,dc=com" does not look good for me. "cn" attribute stores
"Common Name". I think, if you have group of records, you store them in "ou" (Organizational
Unit).
 
 -- 
 Tomas

 

 

_________________________________________________________________
Disclaimer and Confidentiality

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Reply via email to