[horde] Passwd Module - LDAP error, need help
Mail Admin
pinemail11 at gmail.com
Fri Aug 2 05:59:23 UTC 2013
Changed dn & lower case of 'ldap' driver didnt help.
by going through debug log, I was wondering from where bind settings are
passed. in passwd 4, we use to provde bind settings through ldapadmin
backend and it was working fine.
2013-08-02T05:19:10+00:00 ERR: HORDE [passwd] Bind failed: Can't contact
LDAP server [pid 9611 on line 107 of
"/var/www/webmail/passwd/lib/Factory/Driver.php"]
2013-08-02T05:19:10+00:00 DEBUG: HORDE 1. Passwd_Basic->__construct()
/var/www/webmail/passwd/index.php:20
2. Passwd_Basic->_init() /var/www/webmail/passwd/lib/Basic.php:68
3. Passwd_Basic->_changePassword()
/var/www/webmail/passwd/lib/Basic.php:100
4. Passwd_Factory_Driver->create()
/var/www/webmail/passwd/lib/Basic.php:212
5. Passwd_Basic->__construct() /var/www/webmail/passwd/index.php:20
6. Passwd_Basic->_init() /var/www/webmail/passwd/lib/Basic.php:68
7. Passwd_Basic->_changePassword()
/var/www/webmail/passwd/lib/Basic.php:100
8. Passwd_Factory_Driver->create()
/var/www/webmail/passwd/lib/Basic.php:212
9. Horde_Ldap->__construct()
/var/www/webmail/passwd/lib/Factory/Driver.php:105
10. Horde_Ldap->bind() /usr/share/pear/Horde/Ldap.php:142
11. Horde_Ldap->_connect() /usr/share/pear/Horde/Ldap.php:230
12. Horde_Ldap->bind() /usr/share/pear/Horde/Ldap.php:356
2013-08-02T05:19:10+00:00 DEBUG: HORDE [passwd] Password module is not
properly configured [pid 9611 on line 27 of
"/usr/share/pear/Horde/Core/Notification/Handler/Decorator/Hordelog.php"]
2013-08-02T05:19:10+00:00 DEBUG: HORDE [passwd] SQL (0.0008s)
On Fri, Aug 2, 2013 at 12:27 AM, Stuart C. Naifeh <scnaifeh at hotmail.com>wrote:
> Your userdn is wrong. If you're using mail as the uid attribute, then it
> should probably be:
>
> 'userdn' => 'mail=%u,o=domains,dc=ds,dc=xdds,dc=com'
>
>
> On Thu, Aug 1, 2013 at 2:41 PM, Mail Admin <pinemail11 at gmail.com> wrote:
>
>> Hi Andy / Community
>>
>> I tried Andy's settings, it tried to change but getting error of passwd
>> module not configured properly
>>
>> here are the debug logs
>>
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE Load config file (nls.php; app:
>> horde) [pid 8324 on line 401 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE Load config file (hooks.php; app:
>> imp) [pid 8324 on line 401 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [imp] Load config file (conf.php;
>> app: imp) [pid 8324 on line 401 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [imp] Load config file (prefs.php;
>> app: horde) [pid 8324 on line 401 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [imp] Load config file (prefs.php;
>> app: imp) [pid 8324 on line 401 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [imp] Hook prefs_init in
>> application
>> imp called. [pid 8324 on line 1137 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [imp] Hook prefs_init in
>> application
>> imp called. [pid 8324 on line 1137 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [imp] Hook prefs_init in
>> application
>> imp called. [pid 8324 on line 1137 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [imp] Load config file
>> (backends.php; app: imp) [pid 8324 on line 401 of
>> "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [gollem] Load config file
>> (conf.php;
>> app: gollem) [pid 8324 on line 401 of "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [gollem] Load config file
>> (prefs.php; app: gollem) [pid 8324 on line 401 of
>> "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE [gollem] Load config file
>> (backends.php; app: gollem) [pid 8324 on line 401 of
>> "/usr/share/pear/Horde.php"]
>> 2013-08-01T18:07:04+00:00 DEBUG: HORDE Max memory usage: 12320768 bytes
>> [pid 8324 on line 560 of "/usr/share/pear/Horde/Registry.php"]
>> 2013-08-01T18:07:32+00:00 ERR: HORDE [passwd] Bind failed: Can't contact
>> LDAP server [pid 8323 on line 107 of
>> "/var/www/webmail/passwd/lib/Factory/Driver.php"]
>> 2013-08-01T18:07:32+00:00 DEBUG: HORDE 1. Passwd_Basic->__construct()
>> /var/www/webmail/passwd/index.php:20
>> 2. Passwd_Basic->_init() /var/www/webmail/passwd/lib/Basic.php:68
>> 3. Passwd_Basic->_changePassword()
>> /var/www/webmail/passwd/lib/Basic.php:100
>> 4. Passwd_Factory_Driver->create()
>> /var/www/webmail/passwd/lib/Basic.php:212
>> 5. Passwd_Basic->__construct() /var/www/webmail/passwd/index.php:20
>> 6. Passwd_Basic->_init() /var/www/webmail/passwd/lib/Basic.php:68
>> 7. Passwd_Basic->_changePassword()
>> /var/www/webmail/passwd/lib/Basic.php:100
>> 8. Passwd_Factory_Driver->create()
>> /var/www/webmail/passwd/lib/Basic.php:212
>> 9. Horde_Ldap->__construct()
>> /var/www/webmail/passwd/lib/Factory/Driver.php:105
>> 10. Horde_Ldap->bind() /usr/share/pear/Horde/Ldap.php:142
>> 11. Horde_Ldap->_connect() /usr/share/pear/Horde/Ldap.php:230
>> 12. Horde_Ldap->bind() /usr/share/pear/Horde/Ldap.php:356
>>
>> 2013-08-01T18:07:32+00:00 DEBUG: HORDE [passwd] Password module is not
>> properly configured [pid 8323 on line 27 of
>> "/usr/share/pear/Horde/Core/Notification/Handler/Decorator/Hordelog.php"]
>> 2013-08-01T18:07:32+00:00 DEBUG: HORDE [passwd] SQL (0.0007s)
>>
>> It says not able to connect with ldap server, wheras I check through
>> phpldapadmin, everything looks fine.
>>
>> Here is my backends.local.php file
>>
>> <?php
>> $backends['ldap'] = array(
>> 'disabled' => false,
>> 'driver' => 'Ldap',
>> 'logout' => true,
>> 'name' => 'FanMailPlus',
>> 'params' => array(
>> 'host' => 'locahost',
>> 'port' => 389,
>> 'basedn' => 'o=domains,dc=ds,dc=xdds,dc=com',
>> // 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' => '',
>> // Hash method to use when storing the password
>> 'encryption' => 'crypt',
>> // Whether to enable TLS for this LDAP connection
>> // Note: make sure that the host matches cn in the server
>> certificate.
>> 'tls' => false,
>> // Determine the user's DN. %u will be replaced by the user's ID.
>> 'userdn' => 'uid=%u,o=domains,dc=ds,dc=xdds,dc=com'
>> ),
>> 'policy' => array(
>> 'minLength' => 6,
>> 'minNumeric' => 1,
>> 'maxLength' => 128
>> ),
>>
>> );
>>
>>
>> Any help is appreciated!
>>
>> PineMail Admin
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>
>>
>
More information about the horde
mailing list