Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Invalid escape Zend\Ldap\Dn::escapeValue() #4359

matodrobec opened this Issue Apr 30, 2013 · 3 comments


None yet
4 participants


$ldap = $this->serviceLocator->get('tempestldap.ldap');
$node = \Zend\Ldap\Node::fromLdap('CN=Martin BALAŠ,OU=Users,OU=COMPANY,DC=company,DC=intra', $ldap);




0x20 (No such object; 0000208D: NameErr: DSID-0310020A, problem 2001 (NO_OBJECT), data 0, best match of:
): searching: (objectClass=*)

Stack trace:

#0\vendor\zendframework\zendframework\library\Zend\Ldap\Ldap.php(1074): Zend\Ldap\Ldap->search('(objectClass=*)', Object(Zend\Ldap\Dn), 3, Array, NULL)
#1 \vendor\zendframework\zendframework\library\Zend\Ldap\Node.php(267): Zend\Ldap\Ldap->getEntry(Object(Zend\Ldap\Dn), Array, true)

Our solution:

  • problem is char Š
  • change regex from '/^(\s_)(.+?)(\s_)$/ to '/^( *)(.+?)( *)$/

ThaDafinser commented Nov 5, 2013

@matodrobec is this still a problem, when yes: Is this the part, which cause the problem?

warton commented Apr 1, 2014

@ThaDafinser I'm working on the same project as matodrobec and the problem is still existing (last checked version ZF2 2.3.1dev). The problem is on the line 483. There is wrong regexp. We have working solution with that fix matodrobec mentioned.

@GeeH GeeH added the To Be Closed label Mar 5, 2016

GeeH commented Jun 27, 2016

This issue has been closed as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html

@GeeH GeeH closed this Jun 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment