Hi Lahiru,

What is the problem of having @ character? and how it does get solved
changing user-mgt.xml?

I don't see the root issue we trying to solve here and it the approach we
are working here is wrong. ie. changing a default regex in user-mgt.xml
should not be a solution here.

Thanks,

On Tue, Feb 23, 2016 at 3:00 AM, Godwin Shrimal <[email protected]> wrote:

> Hi Lahiru,
>
> user-mgt.xml come from carbon kernel, you can find it under
> <carbon-kernel-home>/distribution/kernel/carbon-home/repository/conf
>
>
> Thanks
> Godwin
>
>
> On Tue, Feb 23, 2016 at 12:37 PM, Lahiru J Ekanayake <[email protected]>
> wrote:
>
>> Hi all,
>>
>> if we can update user-mgt.xml file from ,  *<Property
>> name="UsernameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$</Property> *we can
>> solve that  issue (adding an user name with @ mark).
>>
>> *Current problem is * from where this *user-mgt.xml* comes into our
>> product. ? Can anyone help with this ?
>>
>> Regards
>>
>>
>>
>> On Fri, Feb 19, 2016 at 10:18 PM, Chamila Wijayarathna <[email protected]>
>> wrote:
>>
>>> [Adding Thanuja]
>>>
>>> Hi Lahiru,
>>>
>>> I recently had a discussion about this with Thanuja. When you don't have
>>> enabled emailUserName, still you should be able to use '@' in user names.
>>> But in that case, you have to mention user name in places (eg-: login) as
>>> [email protected]. I guess in your jira also, you should be able to
>>> add user to store if you add @tenant_domain to the end of your username.
>>>
>>> Can you please check like that and update the thread?
>>>
>>> Thank You!
>>>
>>>
>>> On Fri, Feb 19, 2016 at 7:51 PM, Lahiru J Ekanayake <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> im working on this JIRRA https://wso2.org/jira/browse/REGISTRY-3249.
>>>> While working on this i was able to identify , admin user can add users ,
>>>> containing @ mark in user name *(Without enable EnableEmailUserName
>>>> from carbon.xml)* such as* [email protected] <[email protected]>.* I was tested
>>>> with GREG,ES,APIM also. I have able to identify that is problem with the
>>>> regex . GREG,ES,APIM has following property in *user-mgt.xml . *
>>>>
>>>> *<Property
>>>> name="UsernameJavaRegEx">^[^~!#$;%^*+={}\\|\\\\&lt;&gt;,\'\"]{3,30}$</Property>*
>>>>
>>>> If we change that into  *<Property
>>>> name="UsernameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$</Property> *Problem
>>>> can solve.
>>>>
>>>> Current problem is : from where this user-mgt.xml comes into product. I
>>>> have checked with product-greg, carbon-kernal,carbon-indentity. Those
>>>> user-mgt.xml's content are different. Currently im trying to modify
>>>> user-mgt.xml for *GREG.*
>>>>
>>>>
>>>> Regards
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>> *Lahiru J Ekanayake**Software Engineer*
>>>> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
>>>> Email : [email protected]
>>>> WSO2, Inc.; http://wso2.com/
>>>> lean . enterprise . middleware.
>>>>
>>>>
>>>
>>>
>>> --
>>> *Chamila Dilshan Wijayarathna,*
>>> Software Engineer
>>> Mobile:(+94)788193620
>>> WSO2 Inc., http://wso2.com/
>>>
>>
>>
>>
>> --
>>
>>
>>
>> *Lahiru J Ekanayake**Software Engineer*
>> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
>> Email : [email protected]
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middleware.
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
> twitter: https://twitter.com/godwinamila
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,


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

*E-mail: [email protected] <[email protected]>*
*Mobile: +94718566859*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to