shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joffry Ferrater <joffry.ferra...@gmail.com>
Subject Re: Multiple shiro.ini files
Date Mon, 09 Nov 2015 09:16:19 GMT
Hello,

Yes, multiple realms configuration will probably work with
AuthenticationStrategy for domains support. I will look into
AuthenticationStrategy. Thank you for your response. :)

regards,
=Joffry=

On Fri, Nov 6, 2015 at 4:35 PM, Brian Demers <brian.demers@gmail.com> wrote:

> Multiple LDAP realms configured in a single .ini file might be the easiest
> thing to do, but that would not include your custom logic for
> <domain>/<user>.  You _might_ be able to use a AuthenticationStrategy
> <https://github.com/apache/shiro/blob/1.2.x/core/src/main/java/org/apache/shiro/authc/pam/AuthenticationStrategy.java>
for
> that. (maybe do something with the realm name and domain?)
>
>
> On Fri, Nov 6, 2015 at 9:58 AM, Cédric Servais <cedric.servais@outlook.com
> > wrote:
>
>> Hi. Why dont you use multiple realms configuration ?
>>
>> Cédric.
>> ------------------------------
>> De : Joffry Ferrater <joffry.ferrater@gmail.com>
>> Envoyé : ‎06-‎11-‎15 15:57
>> À : user@shiro.apache.org
>> Objet : Multiple shiro.ini files
>>
>> Hello,
>>
>> Is it possible to use multiple shiro.ini?
>>
>> We have a project that uses two shiro.ini files. User will login with
>> domain in this format <domain name>\<username>. We determine the shiro
ini
>> file to use by its domain name.
>>
>>
>> Example:
>>
>>    First user, domainOne\user1.  The shiro configuration file to use is
>> domainOne.ini and this user1 should be authenticated to LDAP realm
>> configured in domainOne.ini.
>>
>>    Second user, domainTwo\user2. The shiro configuration file to use is
>> domainTwo.ini and this user2 should be authenticated to the LDAP realm
>> configured in domainTwo.ini.
>>
>> The problem we have is that the first user can authenticate but the
>> second user will fail because shiro is still using the previous
>> configuration. I think the issue is with the caching.
>>
>> Is there a way to use multiple shiro configuration?
>>
>> thanks,
>> =Joffry=
>>
>
>

Mime
View raw message