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 “*EnableEmailUserName*” in carbon.xml
> 2.  adding  "* name="UsernameWithEmailJavaScriptRegEx">[a-zA-Z0-9@._-|//]{3,30}$*"
> the user store config file of my secondary user store found at
>
> */repository/deployment/server/userstores@*sherene : it is better to
> mention how one can achieve the $subject for a secondary user store, ie.
> point to the correct file to edit :)
>
>
> [1] http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/
>
> Thanks,
>
> Farasath Ahamed
> Software Engineer,
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
>
> Email: farasa...@wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
>
> On Mon, Apr 25, 2016 at 11:29 AM, Sherene Mahanama 
> wrote:
>
>> 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 <
>> tharin...@wso2.com> wrote:
>>
>>> *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.
>>>
>>> [a-zA-Z0-9@
>>> ._-|//]{3,30}$
>>>
>>> On Mon, Apr 25, 2016 at 10:16 AM, Dilini Gunatilake 
>>> 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.

 mail
 >>> name="UserNameSearchFilter">(&(objectClass=identityPerson)(mail=?))
 >>> name="UserNameListFilter">(&(objectClass=identityPerson)(mail=*))
 >>> name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$

 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  > 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 > > 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 
>>>
>>> ___
>>> 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
>>>
>>> __

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

2016-04-24 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 secondary user store found at

*/repository/deployment/server/userstores@*sherene : it is better to
mention how one can achieve the $subject for a secondary user store, ie.
point to the correct file to edit :)


[1] http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/

Thanks,

Farasath Ahamed
Software Engineer,
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


Email: farasa...@wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 

On Mon, Apr 25, 2016 at 11:29 AM, Sherene Mahanama  wrote:

> 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.
>>
>> 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.
>>
>> [a-zA-Z0-9@
>> ._-|//]{3,30}$
>>
>> On Mon, Apr 25, 2016 at 10:16 AM, Dilini Gunatilake 
>> 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.
>>>
>>> mail
>>> >> name="UserNameSearchFilter">(&(objectClass=identityPerson)(mail=?))
>>> >> name="UserNameListFilter">(&(objectClass=identityPerson)(mail=*))
>>> >> name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$
>>>
>>> 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 
 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 
> 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 
>>
>> ___
>> 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
>>
>>
>
>
> --
> Sherene Mahanama
> Associate Technical Writer
>
> WSO2 (pvt.) Ltd.
> Colombo, Sri Lanka
> (+94) 777 <%28%2B94%29%20773131798>*994805*
>
> ___
> Dev mailing list
> Dev@ws

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.
>
> 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.
>
> [a-zA-Z0-9@
> ._-|//]{3,30}$
>
> On Mon, Apr 25, 2016 at 10:16 AM, Dilini Gunatilake 
> 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.
>>
>> mail
>> > name="UserNameSearchFilter">(&(objectClass=identityPerson)(mail=?))
>> > name="UserNameListFilter">(&(objectClass=identityPerson)(mail=*))
>> > name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$
>>
>> Regards,
>> Dilini
>>
>> On Mon, Apr 25, 2016 at 9:21 AM, Tharindu Edirisinghe > > 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 
>>> 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 
 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 
>
> ___
> 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
>
>


-- 
Sherene Mahanama
Associate Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 777 <%28%2B94%29%20773131798>*994805*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 configure new property called
UsernameWithEmailJavaScriptRegEx  as following.

[a-zA-Z0-9@
._-|//]{3,30}$

On Mon, Apr 25, 2016 at 10:16 AM, Dilini Gunatilake 
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.
>
> mail
>  name="UserNameSearchFilter">(&(objectClass=identityPerson)(mail=?))
>  name="UserNameListFilter">(&(objectClass=identityPerson)(mail=*))
>  name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$
>
> Regards,
> Dilini
>
> On Mon, Apr 25, 2016 at 9:21 AM, Tharindu Edirisinghe 
> 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 
>> 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 
>>> 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 

 ___
 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


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
requirement.

Regards,
Dilini

On Mon, Apr 25, 2016 at 10:39 AM, Sherene Mahanama  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?
>
>- 
>
> And the value for this property is different from the other types for the
> JDBCUserStoreManager right?
>
>- ^[_A-
>Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+
>)*(\.[A-Za-z]{2,})$
>
> [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 
> 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.
>>
>> mail
>> > name="UserNameSearchFilter">(&(objectClass=identityPerson)(mail=?))
>> > name="UserNameListFilter">(&(objectClass=identityPerson)(mail=*))
>> > name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$
>>
>> Regards,
>> Dilini
>>
>> On Mon, Apr 25, 2016 at 9:21 AM, Tharindu Edirisinghe > > 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 
>>> 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 
 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 
>
> ___
> 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
>>
>>
>
>
> --
> 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
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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?

   - ^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)
   *@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$

[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 
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.
>
> mail
>  name="UserNameSearchFilter">(&(objectClass=identityPerson)(mail=?))
>  name="UserNameListFilter">(&(objectClass=identityPerson)(mail=*))
>  name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$
>
> Regards,
> Dilini
>
> On Mon, Apr 25, 2016 at 9:21 AM, Tharindu Edirisinghe 
> 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 
>> 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 
>>> 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 

 ___
 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
>
>


-- 
Sherene Mahanama
Associate Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 777 <%28%2B94%29%20773131798>*994805*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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=*))
^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$

Regards,
Dilini

On Mon, Apr 25, 2016 at 9:21 AM, Tharindu Edirisinghe 
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 
> 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 
>> 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 
>>>
>>> ___
>>> 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


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 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 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 
>>
>> ___
>> 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


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 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 
>
> ___
> 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


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

2016-04-24 Thread Farasath Ahamed
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 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev