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 <[email protected]>
wrote:

> Hi. Why dont you use multiple realms configuration ?
>
> Cédric.
> ------------------------------
> De : Joffry Ferrater <[email protected]>
> Envoyé : ‎06-‎11-‎15 15:57
> À : [email protected]
> 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=
>

Reply via email to