Openmeetings
  1. Openmeetings
  2. OPENMEETINGS-249

Using LDAP with latest build fails to login, - after login screen im prompted with "You account is assigned to multiple usergroups... " The drop down list is empty - I have checked the MYSQL DB table "oraganisations" and there are two entries there

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0 Apache Incubator Release
    • Component/s: BuildsAndReleases
    • Labels:
      None
    • Environment:
      Debian 64, LDAP, HTTPS, RTMPS Latest Build

      Description

      Using LDAP with latest build fails to login, -

      after login screen im prompted with "Your account is assigned to multiple usergroups..." The drop down list is empty - I have checked the MYSQL DB table "organizations" and there are two entries - similar to issue 1613 on 1.9 build.

      Any ideas?

        Activity

        Hide
        SebastianWagner added a comment -

        The issue is not OpenMeetings, the issue is that your ou mapping in your ldap config is wrong.
        Please use the mailing list to discuss that with other users about your individual configuration.

        Show
        SebastianWagner added a comment - The issue is not OpenMeetings, the issue is that your ou mapping in your ldap config is wrong. Please use the mailing list to discuss that with other users about your individual configuration.
        Hide
        Stephen Cottham added a comment -

        Was there a change from 1.9 to 2.0 in this case? its the same LDAP settings that worked in the previous version, I'll take another look.

        Show
        Stephen Cottham added a comment - Was there a change from 1.9 to 2.0 in this case? its the same LDAP settings that worked in the previous version, I'll take another look.
        Hide
        SebastianWagner added a comment -

        Can you please attach your logs to the Jira Issue?
        I will review those to see what happened.

        Show
        SebastianWagner added a comment - Can you please attach your logs to the Jira Issue? I will review those to see what happened.
        Hide
        Stephen Cottham added a comment -

        Thanks Sebastian:

        Debug logs for the login attempt below:

        WARN 05-02 08:37:31.221 MainService.java 154531 302 org.openmeetings.app.remote.MainService [NioProcessor-19] - loginUser: 6ceb964841711b83fc56da28b0570f3a stephen.cottham
        DEBUG 05-02 08:37:31.222 MainService.java 154532 313 org.openmeetings.app.remote.MainService [NioProcessor-19] - Ldap Login
        DEBUG 05-02 08:37:31.237 LdapLoginManagement.java 154547 237 org.openmeetings.app.ldap.LdapLoginManagement [NioProcessor-19] - LdapLoginmanagement.doLdapLogin
        DEBUG 05-02 08:37:31.238 LdapLoginManagement.java 154548 193 org.openmeetings.app.ldap.LdapLoginManagement [NioProcessor-19] - LdapLoginmanagement.getLdapConfigData
        DEBUG 05-02 08:37:31.238 LdapLoginManagement.java 154548 212 org.openmeetings.app.ldap.LdapLoginManagement [NioProcessor-19] - LdapLoginmanagement.readConfig : /usr/lib/red5/webapps/openmeetings/conf/robertbird.cfg
        ERROR 05-02 08:37:31.247 MainService.java 154557 388 org.openmeetings.app.remote.MainService [NioProcessor-19] - loginUser :
        java.lang.NullPointerException: null
        at org.openmeetings.app.ldap.LdapLoginManagement.doLdapLogin(LdapLoginManagement.java:322) ~[openmeetings-2.0.0-SNAPSHOT.jar:na]
        at org.openmeetings.app.remote.MainService.loginUser(MainService.java:328) ~[openmeetings-2.0.0-SNAPSHOT.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
        at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:198) [red5.jar:na]
        at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115) [red5.jar:na]
        at org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:159) [red5.jar:na]
        at org.red5.server.net.rtmp.RTMPHandler.onInvoke(RTMPHandler.java:401) [red5.jar:na]
        at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:133) [red5.jar:na]
        at org.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:206) [red5.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.4.jar:na]
        at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427) [mina-core-2.0.4.jar:na]
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.4.jar:na]
        at org.red5.server.net.rtmpe.RTMPEIoFilter.messageReceived(RTMPEIoFilter.java:124) [red5.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.4.jar:na]
        at org.apache.mina.filter.ssl.SslHandler.flushScheduledEvents(SslHandler.java:320) [mina-core-2.0.4.jar:na]
        at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:506) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:715) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68) [mina-core-2.0.4.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1141) [mina-core-2.0.4.jar:na]
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.4.jar:na]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_26]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_26]
        at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]

        I used the bind in Apache Directory Studio so that's correct (I checked the other fileds match the CN etc..) and the config works in 1.9 version of OM but I cannot see what is wrong here, let me know what you think and if I should be doing something different.

        Best Regards

        Stephen

        Show
        Stephen Cottham added a comment - Thanks Sebastian: Debug logs for the login attempt below: WARN 05-02 08:37:31.221 MainService.java 154531 302 org.openmeetings.app.remote.MainService [NioProcessor-19] - loginUser: 6ceb964841711b83fc56da28b0570f3a stephen.cottham DEBUG 05-02 08:37:31.222 MainService.java 154532 313 org.openmeetings.app.remote.MainService [NioProcessor-19] - Ldap Login DEBUG 05-02 08:37:31.237 LdapLoginManagement.java 154547 237 org.openmeetings.app.ldap.LdapLoginManagement [NioProcessor-19] - LdapLoginmanagement.doLdapLogin DEBUG 05-02 08:37:31.238 LdapLoginManagement.java 154548 193 org.openmeetings.app.ldap.LdapLoginManagement [NioProcessor-19] - LdapLoginmanagement.getLdapConfigData DEBUG 05-02 08:37:31.238 LdapLoginManagement.java 154548 212 org.openmeetings.app.ldap.LdapLoginManagement [NioProcessor-19] - LdapLoginmanagement.readConfig : /usr/lib/red5/webapps/openmeetings/conf/robertbird.cfg ERROR 05-02 08:37:31.247 MainService.java 154557 388 org.openmeetings.app.remote.MainService [NioProcessor-19] - loginUser : java.lang.NullPointerException: null at org.openmeetings.app.ldap.LdapLoginManagement.doLdapLogin(LdapLoginManagement.java:322) ~ [openmeetings-2.0.0-SNAPSHOT.jar:na] at org.openmeetings.app.remote.MainService.loginUser(MainService.java:328) ~ [openmeetings-2.0.0-SNAPSHOT.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~ [na:1.6.0_26] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~ [na:1.6.0_26] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~ [na:1.6.0_26] at java.lang.reflect.Method.invoke(Method.java:597) ~ [na:1.6.0_26] at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:198) [red5.jar:na] at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:115) [red5.jar:na] at org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:159) [red5.jar:na] at org.red5.server.net.rtmp.RTMPHandler.onInvoke(RTMPHandler.java:401) [red5.jar:na] at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:133) [red5.jar:na] at org.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:206) [red5.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.4.jar:na] at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427) [mina-core-2.0.4.jar:na] at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.4.jar:na] at org.red5.server.net.rtmpe.RTMPEIoFilter.messageReceived(RTMPEIoFilter.java:124) [red5.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.4.jar:na] at org.apache.mina.filter.ssl.SslHandler.flushScheduledEvents(SslHandler.java:320) [mina-core-2.0.4.jar:na] at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:506) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.4.jar:na] at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) [mina-core-2.0.4.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:715) [mina-core-2.0.4.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668) [mina-core-2.0.4.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657) [mina-core-2.0.4.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68) [mina-core-2.0.4.jar:na] at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1141) [mina-core-2.0.4.jar:na] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.4.jar:na] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_26] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26] I used the bind in Apache Directory Studio so that's correct (I checked the other fileds match the CN etc..) and the config works in 1.9 version of OM but I cannot see what is wrong here, let me know what you think and if I should be doing something different. Best Regards Stephen
        Hide
        SebastianWagner added a comment -

        There is a new config key "ldap_use_lower_case"

        have you that key in your config? Simply coping old configs and overwrite the new one might be no good idea, you should have a look if the new config contains keys that do not exist in your old one.

        Show
        SebastianWagner added a comment - There is a new config key "ldap_use_lower_case" have you that key in your config? Simply coping old configs and overwrite the new one might be no good idea, you should have a look if the new config contains keys that do not exist in your old one.
        Hide
        Stephen Cottham added a comment -

        Hey Sebastian,

        That was bang on the nose, I added

        ldap_use_lower_case=true

        and ive logged straight in, thanks again for looking at this again.

        Best Regards

        Stephen Cottham
        Group IT Manager (Associate)

        Robert Bird Group
        Level 5, 333 Ann St
        Brisbane, Queensland, 4000, Australia
        Phone: +6173 319 2777 (AUS)
        Phone: +44207 592 8000 (UK)
        Fax: +6173 319 2799

        Mobile: +61400 756 963 (AUS)
        Mobile: +447900 918 616 (UK)
        Web: www.robertbird.com

        This email and any attachments are confidential and may contain legally privileged information or copyright material. Unless expressly stated, confidentiality and/or legal privilege is not intended to be waived by the sending of this email. The contents of this email, including any attachments, are intended solely for the use of the individual or entity to whom they are addressed. If you are not an intended recipient, please contact us immediately by return email and then delete both messages. You may not otherwise read, forward, copy, use or disclose this email or any attachments. Any views expressed in this email are those of the individual sender except where the sender expressly, and with authority, states otherwise. It is your responsibility to check any attachments for viruses or defects before opening or sending them on. None of the sender or its related entities accepts any liability for any consequential damage resulting from this email containing computer viruses.

        Disclaimer added by CodeTwo Exchange Rules
        http://www.codetwo.com

        Show
        Stephen Cottham added a comment - Hey Sebastian, That was bang on the nose, I added ldap_use_lower_case=true and ive logged straight in, thanks again for looking at this again. Best Regards Stephen Cottham Group IT Manager (Associate) Robert Bird Group Level 5, 333 Ann St Brisbane, Queensland, 4000, Australia Phone: +6173 319 2777 (AUS) Phone: +44207 592 8000 (UK) Fax: +6173 319 2799 Mobile: +61400 756 963 (AUS) Mobile: +447900 918 616 (UK) Web: www.robertbird.com This email and any attachments are confidential and may contain legally privileged information or copyright material. Unless expressly stated, confidentiality and/or legal privilege is not intended to be waived by the sending of this email. The contents of this email, including any attachments, are intended solely for the use of the individual or entity to whom they are addressed. If you are not an intended recipient, please contact us immediately by return email and then delete both messages. You may not otherwise read, forward, copy, use or disclose this email or any attachments. Any views expressed in this email are those of the individual sender except where the sender expressly, and with authority, states otherwise. It is your responsibility to check any attachments for viruses or defects before opening or sending them on. None of the sender or its related entities accepts any liability for any consequential damage resulting from this email containing computer viruses. Disclaimer added by CodeTwo Exchange Rules http://www.codetwo.com
        Hide
        Stephen Cottham added a comment -

        ldap_use_lower_case=true

        Show
        Stephen Cottham added a comment - ldap_use_lower_case=true
        Hide
        Maxim Solodovnik added a comment -

        Closing all old 'Resolved' issues

        Show
        Maxim Solodovnik added a comment - Closing all old 'Resolved' issues

          People

          • Assignee:
            Maxim Solodovnik
            Reporter:
            Stephen Cottham
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development