{"action":"created","issue":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5544","repository_url":"https://api.github.com/repos/roundcube/roundcubemail","labels_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5544/labels{/name}","comments_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5544/comments","events_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5544/events","html_url":"https://github.com/roundcube/roundcubemail/issues/5544","id":192546165,"number":5544,"title":"new_user_identity_plugin does not perform variable substitution in ldap lookup","user":{"login":"duk3luk3","id":611471,"avatar_url":"https://avatars.githubusercontent.com/u/611471?v=3","gravatar_id":"","url":"https://api.github.com/users/duk3luk3","html_url":"https://github.com/duk3luk3","followers_url":"https://api.github.com/users/duk3luk3/followers","following_url":"https://api.github.com/users/duk3luk3/following{/other_user}","gists_url":"https://api.github.com/users/duk3luk3/gists{/gist_id}","starred_url":"https://api.github.com/users/duk3luk3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duk3luk3/subscriptions","organizations_url":"https://api.github.com/users/duk3luk3/orgs","repos_url":"https://api.github.com/users/duk3luk3/repos","events_url":"https://api.github.com/users/duk3luk3/events{/privacy}","received_events_url":"https://api.github.com/users/duk3luk3/received_events","type":"User","site_admin":false},"labels":[{"id":4387887,"url":"https://api.github.com/repos/roundcube/roundcubemail/labels/bug","name":"bug","color":"fc2929","default":true},{"id":344588259,"url":"https://api.github.com/repos/roundcube/roundcubemail/labels/C:%20Plugins","name":"C: Plugins","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/roundcube/roundcubemail/milestones/65","html_url":"https://github.com/roundcube/roundcubemail/milestones/1.2.4","labels_url":"https://api.github.com/repos/roundcube/roundcubemail/milestones/65/labels","id":2161964,"number":65,"title":"1.2.4","description":"Service release","creator":{"login":"thomascube","id":1577511,"avatar_url":"https://avatars.githubusercontent.com/u/1577511?v=3","gravatar_id":"","url":"https://api.github.com/users/thomascube","html_url":"https://github.com/thomascube","followers_url":"https://api.github.com/users/thomascube/followers","following_url":"https://api.github.com/users/thomascube/following{/other_user}","gists_url":"https://api.github.com/users/thomascube/gists{/gist_id}","starred_url":"https://api.github.com/users/thomascube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomascube/subscriptions","organizations_url":"https://api.github.com/users/thomascube/orgs","repos_url":"https://api.github.com/users/thomascube/repos","events_url":"https://api.github.com/users/thomascube/events{/privacy}","received_events_url":"https://api.github.com/users/thomascube/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2016-11-28T19:53:17Z","updated_at":"2016-11-30T12:05:20Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-11-30T11:51:08Z","updated_at":"2016-11-30T13:08:48Z","closed_at":null,"body":"Hello,\r\n\r\nthis is my `ldap_public` config:\r\n\r\n```\r\n$config['ldap_public'] = array (\r\n  'rbgldap' =>\r\n  array (\r\n    'name' => 'Benutzer der Informatik',\r\n    'hosts' =>\r\n    array (\r\n      0 => 'ldap1.%z',\r\n      1 => 'ldap2.%z',\r\n    ),\r\n...\r\n```\r\n\r\nThis works fine for the normal addressbook functionality:\r\n\r\n```\r\nNov 30 12:39:39 vmrbg98 roundcube[15848]: <4cti6apt> Connecting to ldap: ldap1.informatik.tu-muenchen.de\r\nNov 30 12:39:39 vmrbg98 roundcube[15848]: <4cti6apt> C: Connect [ldap1.informatik.tu-muenchen.de:389]\r\nNov 30 12:39:39 vmrbg98 roundcube[15848]: <4cti6apt> S: OK\r\nNov 30 12:39:39 vmrbg98 roundcube[15848]: <4cti6apt> C: Search base dn: [ou=Personen,ou=IN,o=TUM,c=DE] scope [sub] with filter [(&(&(objectClass=inetOrgPerson)(!(cn=*Test*)))(|(cn=*hof*)(givenname=*hof*)(sn=*hof*)(mail=*hof*)))]\r\nNov 30 12:39:39 vmrbg98 roundcube[15848]: <4cti6apt> Using function ldap_search on scope sub ($ns_function is ldap_search)\r\nNov 30 12:39:39 vmrbg98 roundcube[15848]: <4cti6apt> C: (Without VLV) Setting a filter of (&(&(objectClass=inetOrgPerson)(!(cn=*Test*)))(|(cn=*hof*)(givenname=*hof*)(sn=*hof*)(mail=*hof*)))\r\nNov 30 12:39:39 vmrbg98 roundcube[15848]: <4cti6apt> Executing search with return attributes: array (\r\n                                            0 => 'cn',\r\n                                            1 => 'sn',\r\n                                            2 => 'givenname',\r\n                                            3 => 'personaltitle',\r\n                                            4 => 'mail',\r\n                                            5 => 'telephonenumber',\r\n                                            6 => 'objectClass',\r\n                                          )\r\nNov 30 12:39:40 vmrbg98 roundcube[15848]: <4cti6apt> S: 149 record(s) found\r\nNov 30 12:39:40 vmrbg98 apache2[15848]: <4cti6apt> C: Close\r\n```\r\n\r\nBut the `new_user_identity` plugin tries to connect like this:\r\n\r\n```\r\nNov 30 12:39:00 vmrbg98 roundcube[15895]: <492ui1b4> Connecting to ldap: ldap1.\r\nNov 30 12:39:00 vmrbg98 roundcube[15895]: <492ui1b4> C: Connect [ldap1.:389]\r\nNov 30 12:39:00 vmrbg98 roundcube[15895]: <492ui1b4> S: OK\r\nNov 30 12:39:00 vmrbg98 roundcube[15895]: <492ui1b4> C: Search base dn: [ou=Personen,ou=IN,o=TUM,c=DE] scope [sub] with filter [(&(&(objectClass=inetOrgPerson)(!(cn=*Test*)))(|(uid=erlacher)))]\r\nNov 30 12:39:00 vmrbg98 roundcube[15895]: <492ui1b4> Using function ldap_search on scope sub ($ns_function is ldap_search)\r\nNov 30 12:39:00 vmrbg98 roundcube[15895]: <492ui1b4> C: (Without VLV) Setting a filter of (&(&(objectClass=inetOrgPerson)(!(cn=*Test*)))(|(uid=erlacher)))\r\nNov 30 12:39:00 vmrbg98 roundcube[15895]: <492ui1b4> Executing search with return attributes: array (\r\n                                            0 => 'cn',\r\n                                            1 => 'sn',\r\n                                            2 => 'givenname',\r\n                                            3 => 'personaltitle',\r\n                                            4 => 'mail',\r\n                                            5 => 'telephonenumber',\r\n                                            6 => 'objectClass',\r\n                                          )\r\nNov 30 12:39:00 vmrbg98 roundcube[15895]: <492ui1b4> PHP Error: LDAP: ldap_search failed for dn=ou=Personen,ou=IN,o=TUM,c=DE. Can't contact LDAP server (POST /?_task=login&_action=login)\r\n```\r\n\r\nThe `%z` is apparently just dropped."},"comment":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/comments/263869195","html_url":"https://github.com/roundcube/roundcubemail/issues/5544#issuecomment-263869195","issue_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5544","id":263869195,"user":{"login":"duk3luk3","id":611471,"avatar_url":"https://avatars.githubusercontent.com/u/611471?v=3","gravatar_id":"","url":"https://api.github.com/users/duk3luk3","html_url":"https://github.com/duk3luk3","followers_url":"https://api.github.com/users/duk3luk3/followers","following_url":"https://api.github.com/users/duk3luk3/following{/other_user}","gists_url":"https://api.github.com/users/duk3luk3/gists{/gist_id}","starred_url":"https://api.github.com/users/duk3luk3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duk3luk3/subscriptions","organizations_url":"https://api.github.com/users/duk3luk3/orgs","repos_url":"https://api.github.com/users/duk3luk3/repos","events_url":"https://api.github.com/users/duk3luk3/events{/privacy}","received_events_url":"https://api.github.com/users/duk3luk3/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T13:08:48Z","updated_at":"2016-11-30T13:08:48Z","body":"That works, yes. Thanks!"}}
{"actor":{"display_login":"duk3luk3"}}