.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old January 28th, 2002, 03:00 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
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

Reply With Quote
  #2  
Old January 31st, 2002, 09:10 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > IAdsUser.Setpassword fails only in ASP.Net


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway