Hi
​Folks,
    Thanks for the explanation. Got the idea. It seems that the format is
<username>_<hash value of tenant domain>. It seems that the "_" character
is hard coded in the code. Hope that would be re-factored in the future.

Thanks,

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile    :  +94 777636406
Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Fri, Sep 26, 2014 at 6:36 PM, Samith Dassanayake <[email protected]> wrote:

> Hi Roshan,
>
> As Harsha mentioned, to adhere the aforementioned constraint as well as to
> give the username an unique identification based on the tenant domain, we
> append a hash value that is created based on the tenant domain. For an
> ordinary tenant, the tenant domain will be appended to the username
> together with an underscore and the given username will be returned as it
> is in the case of super tenant.
>
> Thnaks,
> Samith
>
> On Fri, Sep 26, 2014 at 6:21 PM, Harsha Kumara <[email protected]> wrote:
>
>> Hi Roshan,
>>
>> This suffix is added as a hash of tenant domain of a particular tenant.
>> The database username such as MySQL and others has max length where tenant
>> domain exceeds that limit. So in order to shorten the tenant domain we take
>> the hash value of tenant and append it to the provided username by a user
>> when creating a database user. If there is no limit for the username, then
>> we would append it along with the username.
>>
>> Hope I'm clear to you.
>>
>> Thanks,
>> ​​
>> Harsha
>>
>> On Fri, Sep 26, 2014 at 6:11 PM, Roshan Deniyage <[email protected]>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> - I am working with appfactory dev setup which works with the "wso2
>>> storage server". When creating new application, developer can create a new
>>> database and related users for that.
>>> "Storage Server 1.0.1" is used.
>>>
>>> - Appfactory uses storage server to create database.
>>>
>>> The question is, when creating new user, wso2-ss add a random suffix to
>>> the username given. What is the logic behind this? Is there a special
>>> format for this suffix?
>>>
>>> Any comment would be appreciated.
>>>
>>>
>>> Roshan Deniyage
>>> Associate Technical Lead
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile    :  +94 777636406
>>> Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
>>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards
>
> Samith Dassanayake
> Software Engineer, WSO2 Inc.
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to