*UserNameSearchFilter* and *UserNameListFilter* are LDAP specific properties and not needed for JDBC userstores.
If you enable “*EnableEmailUserName*” in carbon.xml file regexp would be govern by "UsernameWithEmailJavaScriptRegEx" property not the “UsernameJavaRegEx”.. Therefore, you need to configure new property called UsernameWithEmailJavaScriptRegEx as following. <Property name="*UsernameWithEmailJavaScriptRegEx*">[a-zA-Z0-9@ ._-|//]{3,30}$</Property> On Mon, Apr 25, 2016 at 10:16 AM, Dilini Gunatilake <dili...@wso2.com> 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 <tharin...@wso2.com> > 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 <danush...@wso2.com> >> 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 <farasa...@wso2.com> >>> 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: farasa...@wso2.com >>>> Mobile: +94777603866 >>>> Blog: blog.farazath.com >>>> Twitter: @farazath619 <https://twitter.com/farazath619> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> 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 >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Dilini GunatilakeSoftware Engineer - QA Team* > Mobile : +94 (0) 771 162518 > dili...@wso2.com > > _______________________________________________ > Dev mailing list > Dev@wso2.org > 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev