LDAP address book entry with all possible options.

-------------------------------------------------------
$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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to