Hi Zhang,
I have pasted below the configuration file (backends.php) of passwd application of Horde below for your reference.
// NOTE: to set the ldap userdn, see horde/config/hooks.php
$backends['ldap'] = array(
'disabled' => false,
'name' => 'LDAP Server',
'preferred' => '',
'policy' => array(
'minLength' => 6,
'minNumeric' => 1,
),
'driver' => 'Ldap',
'params' => array(
'host' => 'localhost',
'port' => 389,
'basedn' => 'o=domains,dc=safe,dc=myhostname,dc=com',
'admindn' => cn=vmailadmin,dc=safe,dc=myhostname,dc=com',
'adminpw' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
// LDAP object key attribute.
'uid' => 'mail',
// The attribute storing the password.
'attribute' => 'userPassword',
// These attributes will enable shadow password policies.
// 'shadowlastchange' => 'shadowLastChange',
// 'shadowmin' => 'shadowMin',
// This will be appended to the username when looking for the userdn.
// 'realm' => '',
// Use this filter when searching for the user's DN.
//'filter' => '(&(objectClass=*)(mail=*))',
'filter' => '',
// #'filter' => '(&(objectClass=shadowAccount)(mail=*))',
// Hash method to use when storing the password
'encryption' => 'ssha',
// Whether to enable TLS for this LDAP connection
// Note: make sure that the host matches cn in the server certificate.
'tls' => false
),
);
// NOTE: to set the ldap userdn, see horde/config/hooks.php
$backends['ldapadmin'] = array(
'disabled' => true,
'name' => 'LDAP Server with Admin Bindings',
'preferred' => '',
'policy' => array(
'minLength' => 6,
'minNumeric' => 1,
),
'driver' => 'Ldap',
'params' => array(
'host' => 'localhost',
'port' => 389,
'basedn' => o=domainAdmins,dc=safe2,dc=myhostname,dc=com',
'admindn' => cn=vmailadmin,dc=safe,dc=myhostname,dc=com',
'adminpw' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'uid' => 'mail',
// The attribute storing the password.
'attribute' => 'userPassword',
// These attributes will enable shadow password policies.
// 'shadowlastchange' => 'shadowLastChange',
// 'shadowmin' => 'shadowMin',
// This will be appended to the username when looking for the userdn.
'realm' => '',
// Use this filter when searching for the user's DN.
'filter' => '',
// Hash method to use when storing the password
'encryption' => 'ssha',
// If set, should be 0 or 1. See the LDAP documentation about the
// corresponding parameter REFERRALS.
// Windows 2003 Server require to set this parameter to 0
// 'referrals' => 0,
// Whether to enable TLS for this LDAP connection
// Note: make sure that the host matches cn in the server certificate.
'tls' => false
),
);
Thanks,
Regards,
Pinemail11