|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
IAdsUser.Setpassword fails only in ASP.Net
Originally posted by : Sandip (sjoglekar@bindview.com)Hi,With .Net release, I am trying to do IAdsUser.SetPassword through a C# ASP.Net application. ASP.Net authentication type is None in web.config. Virtual directory authentication method set is Anonymous access. Appl protection is set to Low.I impersonate using input user credentials, bind to the user object using LDAP path and call SetPassword.(I do not use WinNT bcos it doesn't follow the granular permissions on the object as LDAP does.)Case 1) After impersonation using "MydomainMyuser", while binding to AD user given:username=nullpassword=nullAuthenticationtype = SecureIn .Nativeobject call, I get error, "Logon failure: unknown username or bad password.". Case 2) After impersonation using "MydomainMyuser", while binding to AD user given:username="MydomainMyuser"password="mypassword"Authenticationtype = SecureIn method .SetPassword, I get error "The referenced account is currently locked out and may not be logged on to". I verified that the user account is not locked by checking the status in AD. Both the above cases work fine if its a Console application and fail only for ASP.Net. Similar code works fine from VB6 or ASP application for the same user objects.Also this code worked fine till beta 2 and RC.I also tried above code without impersonation and Basic authentication, but the results are same.Is there anything that needs to be done that I am missing in case of ASP.Net? Please help.Regards,Sandip
|
|
#2
|
|||
|
|||
|
Originally posted by : steve schofield (steve@aspfree.com)remember the userid that runs from asp.net is an impersonated account that is ususally iusr_machinename, an administrative type account is needed to change user information inside AD or NT 4.0------------Sandip at 1/28/2002 1:00:52 PMHi,With .Net release, I am trying to do IAdsUser.SetPassword through a C# ASP.Net application. ASP.Net authentication type is None in web.config. Virtual directory authentication method set is Anonymous access. Appl protection is set to Low.I impersonate using input user credentials, bind to the user object using LDAP path and call SetPassword.(I do not use WinNT bcos it doesn't follow the granular permissions on the object as LDAP does.)Case 1) After impersonation using "MydomainMyuser", while binding to AD user given:username=nullpassword=nullAuthenticationtype = SecureIn .Nativeobject call, I get error, "Logon failure: unknown username or bad password.". Case 2) After impersonation using "MydomainMyuser", while binding to AD user given:username="MydomainMyuser"password="mypassword"Authenticationtype = SecureIn method .SetPassword, I get error "The referenced account is currently locked out and may not be logged on to". I verified that the user account is not locked by checking the status in AD. Both the above cases work fine if its a Console application and fail only for ASP.Net. Similar code works fine from VB6 or ASP application for the same user objects.Also this code worked fine till beta 2 and RC.I also tried above code without impersonation and Basic authentication, but the results are same.Is there anything that needs to be done that I am missing in case of ASP.Net? Please help.Regards,Sandip
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > IAdsUser.Setpassword fails only in ASP.Net |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|