{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/20020","labels_url":"https://api.github.com/repos/owncloud/core/issues/20020/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/20020/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/20020/events","html_url":"https://github.com/owncloud/core/issues/20020","id":113219507,"number":20020,"title":"LDAP wizard 'Could not connect to LDAP'","user":{"login":"Xenopathic","id":2016878,"avatar_url":"https://avatars.githubusercontent.com/u/2016878?v=3","gravatar_id":"","url":"https://api.github.com/users/Xenopathic","html_url":"https://github.com/Xenopathic","followers_url":"https://api.github.com/users/Xenopathic/followers","following_url":"https://api.github.com/users/Xenopathic/following{/other_user}","gists_url":"https://api.github.com/users/Xenopathic/gists{/gist_id}","starred_url":"https://api.github.com/users/Xenopathic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xenopathic/subscriptions","organizations_url":"https://api.github.com/users/Xenopathic/orgs","repos_url":"https://api.github.com/users/Xenopathic/repos","events_url":"https://api.github.com/users/Xenopathic/events{/privacy}","received_events_url":"https://api.github.com/users/Xenopathic/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"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-25T11:18:32Z","updated_at":"2015-10-26T11:49:45Z","closed_at":null,"body":"I upgraded my ownCloud instance from 8.1.3 to 8.2.0, with a configured LDAP server (which worked). Today I wanted to change one of the LDAP settings, but the wizard breaks with a 'Could not connect to LDAP' error. All users and groups continue to display correctly though. The following is seen in the logs:\r\n\r\n```\r\nOct 25 11:12:57 atlas.lan.mccorkell.me.uk ownCloud[32387]: {PHP} ldap_connect(): Could not create session handle: Bad parameter to an ldap routine at /usr/share/webapps/owncloud/apps/user_ldap/lib/ldap.php#257\r\nOct 25 11:12:57 atlas.lan.mccorkell.me.uk ownCloud[32387]: {PHP} ldap_set_option(): supplied argument is not a valid ldap link resource at /usr/share/webapps/owncloud/apps/user_ldap/lib/ldap.php#257\r\nOct 25 11:12:57 atlas.lan.mccorkell.me.uk ownCloud[32387]: {PHP} ldap_set_option(): supplied argument is not a valid ldap link resource at /usr/share/webapps/owncloud/apps/user_ldap/lib/ldap.php#257\r\nOct 25 11:12:57 atlas.lan.mccorkell.me.uk ownCloud[32387]: {PHP} ldap_set_option(): supplied argument is not a valid ldap link resource at /usr/share/webapps/owncloud/apps/user_ldap/lib/ldap.php#257\r\n```\r\n\r\nLDAP configuration:\r\n\r\n```\r\n+-------------------------------+--------------------------------------------+\r\n| Configuration                 |                                            |\r\n+-------------------------------+--------------------------------------------+\r\n| hasMemberOfFilterSupport      |                                            |\r\n| hasPagedResultSupport         |                                            |\r\n| homeFolderNamingRule          |                                            |\r\n| lastJpegPhotoLookup           | 0                                          |\r\n| ldapAgentName                 |                                            |\r\n| ldapAgentPassword             | ***                                        |\r\n| ldapAttributesForGroupSearch  |                                            |\r\n| ldapAttributesForUserSearch   |                                            |\r\n| ldapBackupHost                |                                            |\r\n| ldapBackupPort                |                                            |\r\n| ldapBase                      | dc=mccorkell,dc=me,dc=uk                   |\r\n| ldapBaseGroups                | ou=groups,dc=mccorkell,dc=me,dc=uk         |\r\n| ldapBaseUsers                 | ou=users,dc=mccorkell,dc=me,dc=uk          |\r\n| ldapCacheTTL                  | 600                                        |\r\n| ldapConfigurationActive       | 1                                          |\r\n| ldapEmailAttribute            | mail                                       |\r\n| ldapExperiencedAdmin          | 0                                          |\r\n| ldapExpertUUIDGroupAttr       |                                            |\r\n| ldapExpertUUIDUserAttr        |                                            |\r\n| ldapExpertUsernameAttr        | uid                                        |\r\n| ldapGroupDisplayName          | cn                                         |\r\n| ldapGroupFilter               | (&(|(objectclass=posixGroup)))             |\r\n| ldapGroupFilterGroups         |                                            |\r\n| ldapGroupFilterMode           | 0                                          |\r\n| ldapGroupFilterObjectclass    | posixGroup                                 |\r\n| ldapGroupMemberAssocAttr      | memberUid                                  |\r\n| ldapHost                      | zeus.lan.mccorkell.me.uk                   |\r\n| ldapIgnoreNamingRules         |                                            |\r\n| ldapLoginFilter               | (&(|(objectclass=posixAccount))(uid=%uid)) |\r\n| ldapLoginFilterAttributes     |                                            |\r\n| ldapLoginFilterEmail          | 0                                          |\r\n| ldapLoginFilterMode           | 0                                          |\r\n| ldapLoginFilterUsername       | 1                                          |\r\n| ldapNestedGroups              | 0                                          |\r\n| ldapOverrideMainServer        | 0                                          |\r\n| ldapPagingSize                | 500                                        |\r\n| ldapPort                      | 389                                        |\r\n| ldapQuotaAttribute            |                                            |\r\n| ldapQuotaDefault              |                                            |\r\n| ldapTLS                       | 0                                          |\r\n| ldapUserDisplayName           | cn                                         |\r\n| ldapUserFilter                | (|(objectclass=posixAccount))              |\r\n| ldapUserFilterGroups          |                                            |\r\n| ldapUserFilterMode            | 0                                          |\r\n| ldapUserFilterObjectclass     | posixAccount                               |\r\n| ldapUuidGroupAttribute        | auto                                       |\r\n| ldapUuidUserAttribute         | auto                                       |\r\n| turnOffCertCheck              | 0                                          |\r\n| useMemberOfToDetectMembership | 0                                          |\r\n+-------------------------------+--------------------------------------------+\r\n```\r\n\r\ncc @blizzz "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/151109712","html_url":"https://github.com/owncloud/core/issues/20020#issuecomment-151109712","issue_url":"https://api.github.com/repos/owncloud/core/issues/20020","id":151109712,"user":{"login":"Xenopathic","id":2016878,"avatar_url":"https://avatars.githubusercontent.com/u/2016878?v=3","gravatar_id":"","url":"https://api.github.com/users/Xenopathic","html_url":"https://github.com/Xenopathic","followers_url":"https://api.github.com/users/Xenopathic/followers","following_url":"https://api.github.com/users/Xenopathic/following{/other_user}","gists_url":"https://api.github.com/users/Xenopathic/gists{/gist_id}","starred_url":"https://api.github.com/users/Xenopathic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xenopathic/subscriptions","organizations_url":"https://api.github.com/users/Xenopathic/orgs","repos_url":"https://api.github.com/users/Xenopathic/repos","events_url":"https://api.github.com/users/Xenopathic/events{/privacy}","received_events_url":"https://api.github.com/users/Xenopathic/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T11:49:45Z","updated_at":"2015-10-26T11:49:45Z","body":"Yes, just reproduced with the latest master (although it technically wasn't a clean instance, but the LDAP configuration was completely clean)"}}