{"action":"created","issue":{"url":"https://api.github.com/repos/matrix-org/matrix-synapse-ldap3/issues/10","repository_url":"https://api.github.com/repos/matrix-org/matrix-synapse-ldap3","labels_url":"https://api.github.com/repos/matrix-org/matrix-synapse-ldap3/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/matrix-org/matrix-synapse-ldap3/issues/10/comments","events_url":"https://api.github.com/repos/matrix-org/matrix-synapse-ldap3/issues/10/events","html_url":"https://github.com/matrix-org/matrix-synapse-ldap3/issues/10","id":196636163,"number":10,"title":"start_tls doesn't work","user":{"login":"4nd3r","id":7166727,"avatar_url":"https://avatars.githubusercontent.com/u/7166727?v=3","gravatar_id":"","url":"https://api.github.com/users/4nd3r","html_url":"https://github.com/4nd3r","followers_url":"https://api.github.com/users/4nd3r/followers","following_url":"https://api.github.com/users/4nd3r/following{/other_user}","gists_url":"https://api.github.com/users/4nd3r/gists{/gist_id}","starred_url":"https://api.github.com/users/4nd3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4nd3r/subscriptions","organizations_url":"https://api.github.com/users/4nd3r/orgs","repos_url":"https://api.github.com/users/4nd3r/repos","events_url":"https://api.github.com/users/4nd3r/events{/privacy}","received_events_url":"https://api.github.com/users/4nd3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-20T10:24:08Z","updated_at":"2016-12-20T14:19:12Z","closed_at":null,"body":"as described in https://github.com/matrix-org/synapse/issues/1181\r\n\r\ndebian jessie\r\nmatrix-synapse                 0.18.5-1\r\npython-matrix-synapse-ldap3    0.1.1-1\r\npython-ldap3                   0.9.4.2-1\r\n\r\nthree ways described by @mweinelt in https://github.com/matrix-org/synapse/issues/1181#issuecomment-268125753 would be nice."},"comment":{"url":"https://api.github.com/repos/matrix-org/matrix-synapse-ldap3/issues/comments/268254077","html_url":"https://github.com/matrix-org/matrix-synapse-ldap3/issues/10#issuecomment-268254077","issue_url":"https://api.github.com/repos/matrix-org/matrix-synapse-ldap3/issues/10","id":268254077,"user":{"login":"4nd3r","id":7166727,"avatar_url":"https://avatars.githubusercontent.com/u/7166727?v=3","gravatar_id":"","url":"https://api.github.com/users/4nd3r","html_url":"https://github.com/4nd3r","followers_url":"https://api.github.com/users/4nd3r/followers","following_url":"https://api.github.com/users/4nd3r/following{/other_user}","gists_url":"https://api.github.com/users/4nd3r/gists{/gist_id}","starred_url":"https://api.github.com/users/4nd3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4nd3r/subscriptions","organizations_url":"https://api.github.com/users/4nd3r/orgs","repos_url":"https://api.github.com/users/4nd3r/repos","events_url":"https://api.github.com/users/4nd3r/events{/privacy}","received_events_url":"https://api.github.com/users/4nd3r/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T14:19:12Z","updated_at":"2016-12-20T14:19:12Z","body":"installed matrix-synapse into clean vm.\r\n\r\nmy ldap config:\r\n```\r\nldap_config:\r\n  enabled: true\r\n  uri: \"ldap://ldap.example.com\"\r\n  start_tls: true\r\n  base: \"ou=foo,ou=bar,dc=example,dc=com\"\r\n  attributes:\r\n    uid: \"uid\" \r\n    mail: \"mail\"\r\n    name: \"cn\"\r\n```\r\ntried to login using ldap account.\r\n\r\nhomeserver.log :\r\n```\r\n2016-12-20 15:41:02,573 - synapse.access.https.8448 - 59 - INFO - OPTIONS-5- x.x.x.x - 8448 - Received request: OPTIONS /_matrix/client/r0/login?\r\n2016-12-20 15:41:02,574 - synapse.access.https.8448 - 91 - INFO - OPTIONS-5- x.x.x.x - 8448 - {None} Processed request: 1ms (0ms, 0ms) (0ms/0) 22B 200 \"OPTIONS /_matrix/client/r0/login? HTTP/1.1\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36\"\r\n2016-12-20 15:41:02,590 - synapse.access.https.8448 - 59 - INFO - POST-6- x.x.x.x - 8448 - Received request: POST /_matrix/client/r0/login?\r\n2016-12-20 15:41:02,593 - synapse.handlers.auth - 526 - WARNING - POST-6- Failed password login for user @testuser:testvm.example.com\r\n2016-12-20 15:41:02,594 - synapse.http.server - 123 - INFO - POST-6- <SynapseRequest at 0x7fee8029d998 method=POST uri=/_matrix/client/r0/login? clientproto=HTTP/1.1 site=8448> SynapseError: 403 - Invalid password\r\n2016-12-20 15:41:02,595 - synapse.access.https.8448 - 91 - INFO - POST-6- x.x.x.x - 8448 - {None} Processed request: 4ms (0ms, 0ms) (0ms/1) 68B 403 \"POST /_matrix/client/r0/login? HTTP/1.1\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36\"\r\n```\r\n\r\npassword isn't invalid.\r\n\r\ntcpdump and logs in ldap server doesn't show synapse even connecting.\r\n\r\nsetting ``start_tls: false`` works - i can login.\r\n\r\nwhen using ``uri: \"ldaps://ldap1.cyber.ee\"`` connection still goes to port 389 (not port 636 as ldaps should).\r\n\r\nldap server uses \"green\" certificates and other systems using ldap doesn't have issues.\r\n\r\nldap server is ``slapd 2.4.40+dfsg-1+deb8u2 OpenLDAP server (slapd)``.\r\n\r\nhow can I turn on synapse ldap debug log?"}}
{"actor":{"display_login":"4nd3r"}}