Hi Sherene, UserDNPattern property is not required to be configured for a JDBC user store. It is only needed for a LDAP to speed up the search operations.
Also, no need to add the expression I have given in the documentation. Keep the default. Users can change this expression according to their requirement. Regards, Dilini On Mon, Apr 25, 2016 at 10:39 AM, Sherene Mahanama <[email protected]> wrote: > I added a note on this page [1] mentioning that these properties need to > be added manually for the JDBCUserStoreManager. > > What about this property though? Is it no longer needed? > > - <!--Property > name="UserDNPattern">cn={0},ou=Users,dc=wso2,dc=com</Property--> > > And the value for this property is different from the other types for the > JDBCUserStoreManager right? > > - <Property name="UsernameJavaRegEx">^[_A- > Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+ > )*(\.[A-Za-z]{2,})$</Property> > > [1] - > https://docs.wso2.com/display/IS510/Using+Email+Address+as+the+Username > Thanks, Sherene > > On Mon, Apr 25, 2016 at 10:16 AM, Dilini Gunatilake <[email protected]> > wrote: > >> Hi Farasath, >> >> Those config parameters are not added in the JDBCUserStoreManager by >> default. But, you can follow the same doc you referred and add them >> manually. The required parameters are as follows. >> >> <Property name="UserNameAttribute">mail</Property> >> <Property >> name="UserNameSearchFilter">(&(objectClass=identityPerson)(mail=?))</Property> >> <Property >> name="UserNameListFilter">(&(objectClass=identityPerson)(mail=*))</Property> >> <Property >> name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$</Property> >> >> Regards, >> Dilini >> >> On Mon, Apr 25, 2016 at 9:21 AM, Tharindu Edirisinghe <[email protected] >> > wrote: >> >>> Hi Farasath, >>> >>> Have you looked at [1] ? You should be able to get it to working with >>> the instructions in that. >>> >>> [1] http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/ >>> >>> Regards, >>> TharinduE >>> >>> On Mon, Apr 25, 2016 at 7:05 AM, Danushka Fernando <[email protected]> >>> wrote: >>> >>>> Have you try adding the property to the configuration? >>>> >>>> Thanks & Regards >>>> Danushka Fernando >>>> Senior Software Engineer >>>> WSO2 inc. http://wso2.com/ >>>> Mobile : +94716332729 >>>> >>>> On Mon, Apr 25, 2016 at 12:02 AM, Farasath Ahamed <[email protected]> >>>> wrote: >>>> >>>>> I was able to set email as the username for an LDAP-based user store >>>>> following [1]. Although [1] suggests it's the same for a JDBC-based user >>>>> store I couldn't find the same config parameters in the user-mgt.xml for >>>>> an >>>>> external JDBC user store. >>>>> >>>>> Can someone pointout how to achieve the $subject? >>>>> >>>>> >>>>> [1] >>>>> https://docs.wso2.com/display/IS510/Using+Email+Address+as+the+Username >>>>> >>>>> >>>>> Farasath Ahamed >>>>> Software Engineer, >>>>> WSO2 Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> >>>>> Email: [email protected] >>>>> Mobile: +94777603866 >>>>> Blog: blog.farazath.com >>>>> Twitter: @farazath619 <https://twitter.com/farazath619> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> >>> Tharindu Edirisinghe >>> Software Engineer | WSO2 Inc >>> Platform Security Team >>> Blog : tharindue.blogspot.com >>> mobile : +94 775181586 >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> >> *Dilini GunatilakeSoftware Engineer - QA Team* >> Mobile : +94 (0) 771 162518 >> [email protected] >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Sherene Mahanama > Associate Technical Writer > > WSO2 (pvt.) Ltd. > Colombo, Sri Lanka > (+94) 777 <%28%2B94%29%20773131798>*994805* > -- *Dilini GunatilakeSoftware Engineer - QA Team* Mobile : +94 (0) 771 162518 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
