Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-25 Thread Sherene Mahanama
+1. Done :) On Mon, Apr 25, 2016 at 12:05 PM, Farasath Ahamed wrote: > Hi All, > > Thanks everyone for the help. Sorry, I fail to mention that my JDBC user > store was a secondary user store. > > I was able to get the $subject done by following [1], > 1. enabling

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-25 Thread Farasath Ahamed
Hi All, Thanks everyone for the help. Sorry, I fail to mention that my JDBC user store was a secondary user store. I was able to get the $subject done by following [1], 1. enabling “*EnableEmailUserName*” in carbon.xml 2. adding "*[a-zA-Z0-9@._-|//]{3,30}$*" the user store config file of my

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Sherene Mahanama
Thanks Dilini and Tharindu. I indicated the JDBC specific properties and updated the page now. On Mon, Apr 25, 2016 at 11:04 AM, Tharindu Edirisinghe wrote: > *UserNameSearchFilter* and *UserNameListFilter* are LDAP specific > properties and not needed for JDBC userstores. >

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Tharindu Edirisinghe
*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

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Dilini Gunatilake
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

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Sherene Mahanama
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? - And the value for this property is different from the other types for the JDBCUserStoreManager right? -

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Dilini Gunatilake
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. mail ((objectClass=identityPerson)(mail=?)) ((objectClass=identityPerson)(mail=*))

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Tharindu Edirisinghe
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 wrote: > Have you

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Danushka Fernando
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 wrote: > I was able to set email as the username for an