1 Reply Latest reply on Feb 28, 2013 11:22 AM by Adnan_N

    Sharepoint connector configuration

    Adnan_N Level 1

      Hi Folks,

       

      I am trying to configure Sharepoint connector using following option:

       

      http://dev.day.com/docs/en/crx/connectors/sharepoint/current.html#Configuring%20authentica tion

       

      "you can disable the JAAS authentication. In this case, only a user who is authenticated on both CRX and SharePoint can access the SharePoint content through the connector. 
      Day recommends this configuration if you don't use an external authentication for SharePoint like Active Directory or if the number of users to be managed is relatively small."
      

       

      So basically I created a user on CRX with same credentials as on our sharepoint server. Only problem is I couldnt find a way to specific DOMAIN while creating the user on CRX. i believe this is causing my configuration to fail to connect with Sharepoint.

       

      Note: Sharepoint is runing in Form authentication mode and I beleive is using kerberos

       

      Getting Following error in logs:

       

      com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory Failed logging into http://XXXXXXXXXXXXXX: org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
      com.day.crx.spi.sharepoint.SharepointSessionInfoImpl Login failed: org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
      com.day.crx.spi.sharepoint.SharepointSessionInfoImpl org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized javax.jcr.LoginException: org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
                at com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory$SharepointConnectionImpl.verify(WindowsAuthenticationConnectionFactory.java:359)
                at com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory.createConnection(WindowsAuthenticationConnectionFactory.java:253)
                at com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory.create(WindowsAuthenticationConnectionFactory.java:62)
                at com.day.crx.spi.sharepoint.SharepointSessionInfoImpl.login(SharepointSessionInfoImpl.java:218)
                at com.day.crx.spi.sharepoint.SharepointSessionInfoImpl.login(SharepointSessionInfoImpl.java:82)
                at com.day.crx.spi.sharepoint.SharepointRepositoryService.obtain(SharepointRepositoryService.java:253)
                at org.apache.jackrabbit.spi.commons.logging.RepositoryServiceLogger$6.call(RepositoryServiceLogger.java:119)
                at org.apache.jackrabbit.spi.commons.logging.AbstractLogger.execute(AbstractLogger.java:58)
                at org.apache.jackrabbit.spi.commons.logging.RepositoryServiceLogger.obtain(RepositoryServiceLogger.java:117)
                at org.apache.jackrabbit.spi.commons.logging.SpiLoggerFactory$ServiceLogger.obtain(SpiLoggerFactory.java:315)
                at org.apache.jackrabbit.jcr2spi.RepositoryImpl.login(RepositoryImpl.java:82)
                at com.day.crx.mount.virtual.MountPoint.obtainSession(MountPoint.java:130)
                at com.day.crx.mount.virtual.VirtualRepository$1.call(VirtualRepository.java:133)
                at com.day.crx.mount.Util.callWithContextClassLoader(Util.java:117)
                at com.day.crx.mount.virtual.VirtualRepository.login(VirtualRepository.java:99)
                at org.apache.sling.jcr.base.AbstractSlingRepository.login(AbstractSlingRepository.java:216)
                at org.apache.sling.jcr.base.AbstractSlingRepository.loginAdministrative(AbstractSlingRepository.java:182)
                at org.apache.sling.jcr.base.AbstractSlingRepository.pingAndCheck(AbstractSlingRepository.java:519)
                at org.apache.sling.jcr.base.AbstractSlingRepository.run(AbstractSlingRepository.java:970)
                at java.lang.Thread.run(Unknown Source)
      Caused by: org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
                at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
                at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
                at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
                at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364)
                at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
                at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
                at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
                at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
                at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
                at com.microsoft.wss3.authentication.AuthenticationStub.Mode(AuthenticationStub.java:317)
                at com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory$SharepointConnectionImpl.verify(WindowsAuthenticationConnectionFactory.java:349)
                ... 19 more
      26.02.2013 12:06:00.035 *DEBUG* [Repository Pinger] com.day.crx.spi.sharepoint.SharepointRepositoryService ERROR(1361898360035) | obtain(Credentials, String)(javax.jcr.SimpleCredentials@17d6203, default) | javax.jcr.LoginException: org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
                at com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory$SharepointConnectionImpl.verify(WindowsAuthenticationConnectionFactory.java:359)
                at com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory.createConnection(WindowsAuthenticationConnectionFactory.java:253)
                at com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory.create(WindowsAuthenticationConnectionFactory.java:62)
                at com.day.crx.spi.sharepoint.SharepointSessionInfoImpl.login(SharepointSessionInfoImpl.java:218)
                at com.day.crx.spi.sharepoint.SharepointSessionInfoImpl.login(SharepointSessionInfoImpl.java:82)
                at com.day.crx.spi.sharepoint.SharepointRepositoryService.obtain(SharepointRepositoryService.java:253)
                at org.apache.jackrabbit.spi.commons.logging.RepositoryServiceLogger$6.call(RepositoryServiceLogger.java:119)
                at org.apache.jackrabbit.spi.commons.logging.AbstractLogger.execute(AbstractLogger.java:58)
                at org.apache.jackrabbit.spi.commons.logging.RepositoryServiceLogger.obtain(RepositoryServiceLogger.java:117)
                at org.apache.jackrabbit.spi.commons.logging.SpiLoggerFactory$ServiceLogger.obtain(SpiLoggerFactory.java:315)
                at org.apache.jackrabbit.jcr2spi.RepositoryImpl.login(RepositoryImpl.java:82)
                at com.day.crx.mount.virtual.MountPoint.obtainSession(MountPoint.java:130)
                at com.day.crx.mount.virtual.VirtualRepository$1.call(VirtualRepository.java:133)
                at com.day.crx.mount.Util.callWithContextClassLoader(Util.java:117)
                at com.day.crx.mount.virtual.VirtualRepository.login(VirtualRepository.java:99)
                at org.apache.sling.jcr.base.AbstractSlingRepository.login(AbstractSlingRepository.java:216)
                at org.apache.sling.jcr.base.AbstractSlingRepository.loginAdministrative(AbstractSlingRepository.java:182)
                at org.apache.sling.jcr.base.AbstractSlingRepository.pingAndCheck(AbstractSlingRepository.java:519)
                at org.apache.sling.jcr.base.AbstractSlingRepository.run(AbstractSlingRepository.java:970)
                at java.lang.Thread.run(Unknown Source)
      Caused by: org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
                at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
                at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
                at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
                at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364)
                at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208)
                at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
                at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
                at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
                at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
                at com.microsoft.wss3.authentication.AuthenticationStub.Mode(AuthenticationStub.java:317)
                at com.day.crx.spi.sharepoint.security.WindowsAuthenticationConnectionFactory$SharepointConnectionImpl.verify(WindowsAuthenticationConnectionFactory.java:349)
                ... 19 more
      
      

       

      Thanks in advance!