mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Fondermann <bf_...@brainlounge.de>
Subject Re: Vysper AccountManagement - what if i need other data other than username and pw
Date Sat, 05 Sep 2009 06:25:52 GMT
Fernando Padilla wrote:
> username is JID.
> JID is name@domain
> you don't want to embed the clientid on the domain?
> username@clientid.domain
> so as long as vysper will recognize all of the sub-domains properly

it wouldn't, as far as I can tell.

> (anyone want to comment on having vysper server deal with many
> sub-domains? or virtual hosts?)

you would need to have more than one ServerRuntimeContext (SRC), each
serving one domain and write a clever MINABasedSessionContext which is
able to route to the right SRC.

Having one SRC for more than one Domain requires significant
refactorings (hint: SRC.getServerEntity())

Patches, as always, are welcome.


> On 9/3/09 11:58 PM, Ely Celino wrote:
>> Hi everyone,
>> After implementing AccountManagement, I realized I need other data other
>> than user and password in addUser(user, password) function.
>> My user db consolidates all my client's record. To distinguish every
>> client
>> I added client_id column. So if query for a user, I will search by
>> username
>> plus client_id.
>> Of course I could use the username parameter to the addUser function by
>> concataning other information to it but we know it will be ugly.
>> Is this a limitation of the AccountManagement?

View raw message