[horde] Passwd Module - LDAP error

Mail Admin pinemail11 at gmail.com
Mon Jul 29 08:21:30 UTC 2013


Hi,

We are trying to configure passwd 5.0.0 module with Horde framework 5.1.2
with webmail 5.1.1 and getting following error.

"Failure in changing password for LDAP Server with Admin Bindings: Bind
failed: Invalid DN syntax"



any help is appreciated.


backends.php

// NOTE: to set the ldap userdn, see horde/config/hooks.php
$backends['ldapadmin'] = array(
    'disabled' => false,
    'name' => 'your Account',
    'preferred' => '',
    'policy' => array(
        'minLength' => 6,
        'minNumeric' => 1,
    ),
    'driver' => 'Ldap',
    'params' => array(
        'host' => 'localhost',
        'port' => 389,
        'basedn' => 'o=domains,dc=sub,dc=domain,dc=com',
        'admindn' => 'cn=vmailadmin,dc=sub,dc=domain,dc=com',
        'adminpw' => 'tXXXXXXXXXXXXXXXXTDDgNUXXXX',
        // 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',
        // 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
    ),
);

---------------------------------------------------------------
hooks.php

 public function userdn($authid)
    {
//        // Example: Provide LDAP server with a userdn so that you do not
have
//        // to perform anonymous binds.
$em=split("@",$authid);
//        return 'uid=' . $authid . ',o=example.com';
return 'mail=' . $authid . ',ou=Users,domainName=' . $em[1] .
',o=domains,dc=sub,dc=domain,dc=com';
    }


Thanks

PineMail Admin


More information about the horde mailing list