Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • andywilde 25 posts 66 karma points
    Jul 05, 2011 @ 19:06
    andywilde
    0

    Users and Active Directory Authentication

    I have an umbraco site hosted in my organisations DMZ.

    I have written a web service that enables username and password checking against active directory (which is on the secure network).

    I want to continue to use the default umbraco user membership but override the user / password check and use my AD web service

    I have achieved this with Members as I have written my own login control.

            protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
            {
                bool Authenticated = false;
                Authenticated = ValidateActiveDirectoryLogin(Login1.UserName.ToString(), Login1.Password.ToString());
                e.Authenticated = Authenticated;
            }
    where ValidateActiveDirectoryLogin(...) calls my web service.

    Is there a way of achieving it with Users without resorting to any rewriting of the umbraco libraries?

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 05, 2011 @ 20:52
    Dirk De Grave
    0

    Yup, as for members, users is also membership based, so you could inherit from that and override only the validate() functionality. Don't forget to change settings in web.config (and maybe also in umbracoSettings.config - not too sure 'bout that)

     

    Cheers,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft