Last post Mar 06, 2012 02:25 PM by definder
Mar 06, 2012 09:47 AM|definder|LINK
i me using windows authentication for my application but i need that user must be asked for his name and password to be logged to application
i me sorry for my english and thank you
have a nice day ;)
Mar 06, 2012 09:55 AM|Ramesh T|LINK
I'm afraid u can't do this, it depends on the browser settings and u dont really need to worry about this, browser will take.
Wat eaxtly u want to do?, u wanna users to use forms authentication as well along with windows authentication?, if yes, just do as follow
- Enable both Form and Windows authentications
- Take/redirect unauthenticated users to a default page where u should ask whether they wanna to be authenticated automatically, based on the outcome u should use windows credentials or redirect to login page.
Mar 06, 2012 10:15 AM|kedarrkulkarni|LINK
browser passes current users username/password to server... the browser setting
Tools -> internet options -> select Local intranet (or appropriate zone)
and click on custom level button... in the dialog window, scroll down at end.... you can select option to either pass username/password automatically to site or set for prompt...
this is client setting and user can decide whether he needs popup box to be presented or browser to digest current logged in credentials...
if you are looking for this functionality.. so that user can login with some other users credentials.... then visit this
hope this helps...
Mar 06, 2012 12:41 PM|definder|LINK
thanks but i cant do that because i me developing an application on intarnet of a company and they insists that user must Authenticate a second time "a sort of confirmation " it must be in server side not in browser. i me afraid that it cant be done in that
case can you help me to check a password and username in a LDAP server through forme authentication.
Mar 06, 2012 01:36 PM|BrockAllen|LINK
If you're using windows (or active directory as your store for user credentials) *and* you want to force authentication within your application then I'd suggest using Forms authentication and then on your login page use the APIs from System.DirectoryServices.AccountManagement
to authenticate the user's credentials.
PrincipalContext context = new PrincipalContext(ContextType.Domain, "yourDomain");
var isCorrectUidPwd = context.ValidateCredentials("bobUsername", "fooPassword");
Mar 06, 2012 02:25 PM|definder|LINK
thanks it is very helpful