Not sure, but could this be a permission problem? Maybe you'll need to do this
in the system context...
-will
On 08.03.2013, at 17:59, Andrea Allegretti (via Magnolia Forums) wrote:
> I developed a LDAP integration module where I authenticate and authorize my
> ExternalUser's.
> In the process of discovering the user roles given the 'Set<String>' of roles
> inside my LDAP server, I try to map them on 'magnolia roles'.
> For that I use info.magnolia.cms.security.RoleManager obtained by
> SecuritySupport.Factory.getInstance().getRoleManager();
> but when I execute a simple 'RoleManager.getRole(externalRole);' it returns
> me always a null !
> I double checked my code executing it under debugger and I am absolutely sure
> that the instance of RoleManager
> is 'info.magnolia.cms.security.MgnlRoleManager'...
> I also tried with fixed '.getRole("superuser")' and it's always null !
> Can somebody help me with this ?
> I need to read magnolia roles to match them against externally received
> roles..
>
> --
> Context is everything:
> http://forum.magnolia-cms.com/forum/thread.html?threadId=6802ebc7-5ee9-4e78-af16-69da848be4e0
>
>
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------