The error you are getting is a ldap error.

Since the secondary user store is JDBC one the issue you are getting might
be not checking on domain name of the user. So need to check on
the DefaultClaimHandler impl whether user domain name is getting and using
correctly.

Thanks,
Darshana.

On Wed, Mar 25, 2015 at 10:45 AM, Lakshani Gamage <laksh...@wso2.com> wrote:

> Hi Darshana,
>
> On Wed, Mar 25, 2015 at 7:56 PM, Darshana Gunawardana <darsh...@wso2.com>
> wrote:
>
>> Hi,
>>
>> This seems to be issue with user store manager configuration. I suspect
>> this is due to invalid user dn pattern in new user store config.
>>
>> Please go to the <IS_HOME>/repository/deployment/server/userstores/
>> folder and open relevant user store config xml and try
>> removing UserDNPattern property.
>>
>
> There isn't UserDNPattern property in relevant user store config.xml. I
> have attached the xml file.
>
>
>>
>> And were you able to login to the mgt console with a user of new user
>> store domain?
>>
>
> Yes.
>
> Thanks,
> Lakshani.
>
>
>>
>> Regards,
>> Darshana
>>
>> On Wed, Mar 25, 2015 at 10:18 AM, Lakshani Gamage <laksh...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>> I cloned carbon-identity[1] and product_is[2] from github. ]. I created
>>> a secondary user store and added a user to that store with all permission.
>>> When I'm trying to log in to dashboard using that user, I got following
>>> exception in the log. Even though I got following exception I could log in
>>> to the dashboard.When I trying to log in to management console using the
>>> same user, I didn't get any exception.
>>>
>>> ERROR
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> -  Claim handling failed!
>>> org.wso2.carbon.identity.application.authentication.framework.exception.FrameworkException:
>>> Error occurred while getting all user claims for
>>> org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser@60eb7206
>>> in carbon.super
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler.handleLocalClaims(DefaultClaimHandler.java:344)
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler.handleClaimMappings(DefaultClaimHandler.java:92)
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.handleClaimMappings(DefaultStepBasedSequenceHandler.java:623)
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.handlePostAuthentication(DefaultStepBasedSequenceHandler.java:409)
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.handle(DefaultStepBasedSequenceHandler.java:126)
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler.handle(DefaultAuthenticationRequestHandler.java:124)
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator.handle(DefaultRequestCoordinator.java:95)
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.servlet.CommonAuthenticationServlet.doPost(CommonAuthenticationServlet.java:53)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>     at
>>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>     at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>     at
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>     at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>>     at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>>     at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>>>     at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>>>     at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>>     at
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>>>     at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>>>     at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>>>     at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>>>     at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
>>>     at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
>>>     at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
>>>     at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>>     at java.lang.Thread.run(Thread.java:662)
>>> Caused by: org.wso2.carbon.user.core.UserStoreException: [LDAP: error
>>> code 32 - NO_SUCH_OBJECT: failed for     SearchRequest
>>>         baseDn : 'uid=testadmin,ou=Users,dc=wso2,dc=org'
>>>         filter :
>>> '(&(2.5.4.0=person)(0.9.2342.19200300.100.1.1=testadmin))'
>>>         scope : whole subtree
>>>         typesOnly : false
>>>         Size Limit : no limit
>>>         Time Limit : no limit
>>>         Deref Aliases : deref Always
>>>         attributes : 'streetaddress', 'dateofbirth', 'mail',
>>> 'postalcode', 'sn', 'localityname', 'organizationname', '
>>> http://wso2.org/claims/region', 'givenname', 'otherphone', 'im', 'url',
>>> 'country', 'title', 'stateorprovincename', 'cn', 'initials', 'nickname',
>>> 'telephonenumber', 'role', 'gender', 'mobile'
>>> : ERR_259 Attempt to search under non-existant entry:
>>> uid=testadmin,ou=Users,dc=wso2,dc=org]
>>>     at
>>> org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.getUserPropertyValues(ReadOnlyLDAPUserStoreManager.java:481)
>>>     at
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.doGetUserClaimValues(AbstractUserStoreManager.java:2638)
>>>     at
>>> org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserClaimValues(AbstractUserStoreManager.java:577)
>>>     at
>>> org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler.handleLocalClaims(DefaultClaimHandler.java:341)
>>>     ... 42 more
>>>
>>>
>>> Why am I getting this?
>>>
>>> [1] https://github.com/wso2/carbon-identity
>>> [2]. https://github.com/wso2/product-is
>>>
>>> Thank you.
>>> --
>>> Lakshani Gamage
>>>
>>> *Software Engineer*
>>> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>>>
>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Software Engineer
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com <darsh...@wso2.com>*
>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>
>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>



-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com <darsh...@wso2.com>*
*Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to