The setup that you have pulls only roles and users from the ini file.
Everything else comes from guice. So you should create your ldap realm in
guice, including its configuration. A @Provides method is a simple way to
go here.
On Feb 28, 2016 4:16 PM, "jasmine" <[email protected]> wrote:

> Or... how can I get it working without shiro.ini? I need it to resolve
> roles
> and permissions too...
>
>
> realmName.groupRolesMap = "ou=scientists,dc=example,dc=com":"Editor"
> rolePermissionResolver = my.cc.c.IniRealmRolePermissionResolver
> rolePermissionResolver.ini = $iniRealm
> realmName.rolePermissionResolver = $rolePermissionResolver
>
> [roles]
> # 'admin' role has all permissions, indicated by the wildcard '*'
> Admin = *
> Editor =*
>
>
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/Shiro-Guice-tp7580965p7580971.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to