{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/20941","labels_url":"https://api.github.com/repos/owncloud/core/issues/20941/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/20941/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/20941/events","html_url":"https://github.com/owncloud/core/issues/20941","id":120359554,"number":20941,"title":"8.2.1 (stable) LDAP error Invalid DN syntax (34) after calling ldap_read","user":{"login":"JB1985","id":9932751,"avatar_url":"https://avatars.githubusercontent.com/u/9932751?v=3","gravatar_id":"","url":"https://api.github.com/users/JB1985","html_url":"https://github.com/JB1985","followers_url":"https://api.github.com/users/JB1985/followers","following_url":"https://api.github.com/users/JB1985/following{/other_user}","gists_url":"https://api.github.com/users/JB1985/gists{/gist_id}","starred_url":"https://api.github.com/users/JB1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JB1985/subscriptions","organizations_url":"https://api.github.com/users/JB1985/orgs","repos_url":"https://api.github.com/users/JB1985/repos","events_url":"https://api.github.com/users/JB1985/events{/privacy}","received_events_url":"https://api.github.com/users/JB1985/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:user_ldap","name":"app:user_ldap","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T09:02:21Z","updated_at":"2015-12-04T10:09:26Z","closed_at":null,"body":"OS: Debian 7\r\nPHP 5.4.45-0+deb7u2\r\nownCloud 8.2.1 (stable) \r\n\r\n\r\nHi, \r\n\r\nI get an Internal Server Error if I try to login with a LDAP User. With local Users it works fine!\r\n\r\nI have find this in the logs:\r\n\r\nDebug\tuser_ldap\tCount filter: objectclass=*\t2015-12-04T08:00:42+00:00\r\nDebug\tuser_ldap\tLDAP error Invalid DN syntax (34) after calling ldap_read\t2015-12-04T08:00:41+00:00\r\nError\tPHP\tldap_read(): Search: Invalid DN syntax at /var/www/owncloud-dev82/apps/user_ldap/lib/ldap.php#257\t2015-12-04T08:00:41+00:00\r\nError\tPHP\tArray to string conversion at /var/www/owncloud-dev82/lib/private/template/functions.php#36\t2015-12-04T08:00:38+00:00\r\n\r\nThis LDAP Config worked on OC 8.1.4  Version.\r\n\r\nIf I try to test the Base DN, Owncloud say me found over 1000 entries.\r\n\r\nLogs complete:\r\n\r\n{\"reqId\":\"sUI2HbjIKm988hlnrlgJ\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"user_ldap\",\"message\":\"No DN found for  on ldaps:\\/\\/ldap.rrz.uni-hamburg.de\",\"level\":0,\"time\":\"2015-12-04T08:49:03+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/core\\/js\\/oc.js?v=d637017f19ffe772d42f6e3f7d6ef48d\"}\r\n{\"reqId\":\"FSpfBCKHczZimZBmnGTd\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"user_ldap\",\"message\":\"initializing paged search for  Filter objectClass=* base Array\\n(\\n    [0] => cn=XXXX,ou=users,dc=uni-hamburg,dc=de\\n)\\n attr Array\\n(\\n    [0] => \\n)\\n limit 500 offset 0\",\"level\":0,\"time\":\"2015-12-04T08:49:11+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/files\\/\"}\r\n{\"reqId\":\"FSpfBCKHczZimZBmnGTd\",\"remoteAddr\":\"134.100.XXX.XXX\",\"app\":\"user_ldap\",\"message\":\"Ready for a paged search\",\"level\":0,\"time\":\"2015-12-04T08:49:11+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/files\\/\"}\r\n{\"reqId\":\"FSpfBCKHczZimZBmnGTd\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"user_ldap\",\"message\":\"readAttribute: cn=XXXXX,ou=users,dc=uni-hamburg,dc=de found\",\"level\":0,\"time\":\"2015-12-04T08:49:11+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/files\\/\"}\r\n{\"reqId\":\"FSpfBCKHczZimZBmnGTd\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"user_ldap\",\"message\":\"initializing paged search for  Filter objectClass=* base Array\\n(\\n    [0] => cn=XXXXX,ou=users,dc=uni-hamburg,dc=de\\n)\\n attr Array\\n(\\n    [0] => displayname\\n)\\n limit 500 offset 0\",\"level\":0,\"time\":\"2015-12-04T08:49:11+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/files\\/\"}\r\n{\"reqId\":\"FSpfBCKHczZimZBmnGTd\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"user_ldap\",\"message\":\"Ready for a paged search\",\"level\":0,\"time\":\"2015-12-04T08:49:11+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/files\\/\"}\r\n{\"reqId\":\"FSpfBCKHczZimZBmnGTd\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"index\",\"message\":\"Exception: {\\\"Exception\\\":\\\"RuntimeException\\\",\\\"Message\\\":\\\"image not found: image:mail.svg webroot: serverroot:\\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/apps\\\\\\/external\\\\\\/appinfo\\\\\\/app.php(38): OC\\\\\\\\URLGenerator->imagePath('external', 'mail.svg')\\\\n#1 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/private\\\\\\/navigationmanager.php(63): OC_App::{closure}()\\\\n#2 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/private\\\\\\/app.php(683): OC\\\\\\\\NavigationManager->getAll()\\\\n#3 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/private\\\\\\/templatelayout.php(101): OC_App::getNavigation()\\\\n#4 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/private\\\\\\/template.php(214): OC_TemplateLayout->__construct('user', 'files')\\\\n#5 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/private\\\\\\/template\\\\\\/base.php(121): OC_Template->fetchPage()\\\\n#6 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/apps\\\\\\/files\\\\\\/index.php(161): OC\\\\\\\\Template\\\\\\\\Base->printPage()\\\\n#7 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/private\\\\\\/route\\\\\\/route.php(154) : runtime-created function(1): require_once('\\\\\\/var\\\\\\/www\\\\\\/ownclo...')\\\\n#8 [internal function]: __lambda_func(Array)\\\\n#9 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/private\\\\\\/route\\\\\\/router.php(282): call_user_func('\\\\\\\\x00lambda_1', Array)\\\\n#10 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/base.php(851): OC\\\\\\\\Route\\\\\\\\Router->match('\\\\\\/apps\\\\\\/files\\\\\\/')\\\\n#11 \\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/index.php(39): OC::handleRequest()\\\\n#12 {main}\\\",\\\"File\\\":\\\"\\\\\\/var\\\\\\/www\\\\\\/owncloud-dev82\\\\\\/lib\\\\\\/private\\\\\\/urlgenerator.php\\\",\\\"Line\\\":189}\",\"level\":3,\"time\":\"2015-12-04T08:49:11+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/files\\/\"}\r\n{\"reqId\":\"IpTYQBw9+yKeWEOXlin3\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"user_ldap\",\"message\":\"initializing paged search for  Filter objectClass=* base Array\\n(\\n    [0] => cn=XXXXX,ou=users,dc=uni-hamburg,dc=de\\n)\\n attr Array\\n(\\n    [0] => \\n)\\n limit 500 offset 0\",\"level\":0,\"time\":\"2015-12-04T08:49:12+00:00\",\"method\":\"GET\",\"url\":\"\\/cron.php\"}\r\n{\"reqId\":\"IpTYQBw9+yKeWEOXlin3\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"user_ldap\",\"message\":\"Ready for a paged search\",\"level\":0,\"time\":\"2015-12-04T08:49:12+00:00\",\"method\":\"GET\",\"url\":\"\\/cron.php\"}\r\n{\"reqId\":\"IpTYQBw9+yKeWEOXlin3\",\"remoteAddr\":\"134.100.XX.XXX\",\"app\":\"user_ldap\",\"message\":\"readAttribute: cn=XXXXX,ou=users,dc=uni-hamburg,dc=de found\",\"level\":0,\"time\":\"2015-12-04T08:49:12+00:00\",\"method\":\"GET\",\"url\":\"\\/cron.php\"}\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/161928278","html_url":"https://github.com/owncloud/core/issues/20941#issuecomment-161928278","issue_url":"https://api.github.com/repos/owncloud/core/issues/20941","id":161928278,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T10:09:25Z","updated_at":"2015-12-04T10:09:25Z","body":"@blizzz "}}