Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
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
is working on a reply...