[Tickets #12021] Problems with Ldap preference

noreply at bugs.horde.org noreply at bugs.horde.org
Wed Feb 6 16:02:00 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12021
------------------------------------------------------------------------------
  Ticket             | 12021
  Created By         | leandro.damascena at gmail.com
  Summary            | Problems with Ldap preference
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


leandro.damascena at gmail.com (2013-02-06 16:02) wrote:

I'm trying to configure the system to work with ldap, but is not  
working. Seems to be a problem in the builder filter.. Basedn  
attribute is being ignored and filter is wrong..

Follow the error, my configure and my LDAP

Configure:
$conf['prefs']['params']['hostspec'] = '127.0.0.1';
$conf['prefs']['params']['port'] = 389;
$conf['prefs']['params']['tls'] = false;
$conf['prefs']['params']['version'] = 3;
$conf['prefs']['params']['binddn'] = 'cn=Admin,o=EMP';
$conf['prefs']['params']['bindpw'] = 'mypass';
$conf['prefs']['params']['bindas'] = 'admin';
$conf['prefs']['params']['basedn'] = 'o=EMP';
$conf['prefs']['params']['scope'] = 'sub';
$conf['prefs']['params']['uid'] = 'uid';
$conf['prefs']['params']['driverconfig'] = 'custom';
$conf['prefs']['driver'] = 'Ldap';

LDAP ENTRY:
dn: uid=mail9 at mylocal.com,ou=mylocal.com,o=EMP
uid: mail9 at mylocal.com
userPassword:: e01ENX00UXJjT1VtNldhdStWdUJYOGcrSVBnPT0=
A lot of others attributes

Horde ERROR:
2013-02-06T13:44:44-02:00 ERR: HORDE [horde] Bad search filter
Parameters:
Base:
Filter: (&(objectclass=)(=mail9 at mylocal.com))
Scope: sub

LDAP command line search (same filter as horde use)
ldapsearch -x -LLL -D "cn=Admin,o=EMP" -w mypass   
'(&(objectclass=)(=mail9 at mylocal.com))'
ldapsearch: ldap_search_ext: Bad search filter (-7)

LDAP command line search (using correct filter)
ldapsearch -x -D "cn=Admin,o=EMP" -w mypass -b o=EMP  
'(&(objectclass=*)(mail=mail9 at mylocal.com))'
# extended LDIF
#
# LDAPv3
# base <o=EMP> with scope subtree
# filter: (&(objectclass=*)(mail=mail9 at mylocal.com)
# requesting: ALL
#
# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1






More information about the bugs mailing list