Possible to use mixed forms of user authentication on a site?

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.
11/10/2009 3:34:28 PM
Gravatar
Total Posts 15

Possible to use mixed forms of user authentication on a site?

Hi, I've searched the site and can't seem to find any information on how to set up authentication so that it uses LDAP and also allows creating new users who need access to the site but don't have an account that can be authenticated via LDAP.  We have some sites where the majority of the users will be in the company's active directory, but we want to let outside vendors/users access certain portions of the site via their own user account that is issued by us.  Is this something we have to build ourselves or is there a way to tweak mojoPortal to allow mixed forms of user authentication?  Thanks for any pointers.

11/11/2009 9:05:26 AM
Gravatar
Total Posts 18439

Re: Possible to use mixed forms of user authentication on a site?

Sorry, but no, mixing LDAP with other forms of authentication is not currently supported.

Why not just create LDAP accounts for the vendors if LDAP is your user management system?

Best,

Joe

11/12/2009 11:43:36 AM
Gravatar
Total Posts 15

Re: Possible to use mixed forms of user authentication on a site?

Thanks, Joe, just needed to confirm that it's not supported before looking at alternatives.  It's not urgent so I've got some time :)

We have a pretty big company and the thought did come to mind about creating those additional LDAP accounts but management is not keen on it, very tight on issuing accounts for people who might come and go in terms of using whatever sites we build (we have multiple projects supporting different groups and their needs and I can see tracking of user accounts of who to add and then delete when they're no longer allowed into the sites would be sort of a pain for the group who handles this, they're not the same group who would take over site administration of each site, so I'm sure they'd rather those groups manage their own users).

Thanks for the quick response!  I've been looking at the mojoPortal code and playing with creating my own control and found your code to be nicely laid out, after I got the hang of all the pieces (data, business, ui layer and getting the control to be a part of the setup as well as having the content be searchable).  I'm not quite an expert yet but am grateful there's good code to look at!

11/12/2009 11:53:17 AM
Gravatar
Total Posts 18439

Re: Possible to use mixed forms of user authentication on a site?

You could replace the Login.aspx (and Register.aspx if needed) with your own custom version that checks first against LDAP and then against the db if auth fails in ldap.

You would keep it in a custom project and use a post build event to copy it up to replace the included version.

After validating the user you would just use FormsAuthentication.SetAuthCookie or FormsAuthenctication.RedirectFrom login.

I will ponder this scenario for the future, this is the first time anyone has asked for this.

Hope it helps,

Joe

11/12/2009 1:30:20 PM
Gravatar
Total Posts 15

Re: Possible to use mixed forms of user authentication on a site?

Thanks so much, Joe!  Yes, it does help.

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