Retrive user Roles from LDAP once authenticated using LDAP Authentication

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
7/10/2012 6:26:18 AM
Gravatar
Total Posts 5

Retrive user Roles from LDAP once authenticated using LDAP Authentication

   Hi,

   I have enabled LDAP Authentication against Active Directory.
   I need to know ,wheather user roles in Active Directory can be integerated in mojo application once authenticated using LDAP while login.

    Thanks  in Advance
    Venkateshwaran.A


 

7/10/2012 9:52:59 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Retrive user Roles from LDAP once authenticated using LDAP Authentication

It can be done, but it will require some custom development work using a User Sign In Event Handler.

Jamie

7/11/2012 11:21:03 AM
Gravatar
Total Posts 18439

Re: Retrive user Roles from LDAP once authenticated using LDAP Authentication

As Jamie said it would require custom development. You might be able to find some useful code examples on codeplex if you search for active directory, however typically it requires a more privileged user to query AD. I'm not sure it is advisable to integrate such code into a web app for security reasons, it may introduce new attack vectors for gaining access to secure info in AD that would otherwise be more protected, as with many things just because its possible doesn't mean its a good idea so use your own judgment about whether you really want to do that kind of thing. 

Internally mojoPortal uses its own roles so you would have to have corresponding role names in mojoPortal and then assign those corresponding roles to the mojoPortal user. There is no way without forking the code (which is not recommended) to use AD roles directly.

You must sign in to post in the forums. This thread is closed to new posts.