http - Is it possible to ask browser: "Send NTLM authentication, but only if you have credentials ready"? -



http - Is it possible to ask browser: "Send NTLM authentication, but only if you have credentials ready"? -

in our application back upwards both users authorized ntlm in intranet domain, , users authorized standard login/password pair store in our database. when new user registers, nice know if has ntlm credentials , prompt him utilize these, instead of generic registration form.

i.e. (in pseudocode):

if user.has_ntlm_credentials: inquire ("you known {domain}\{username}, register in application?") else: show_login_password_registration_form ()

if create page send 401 http code , inquire ntlm notification, above if user authenticated (e.g. comes intranet , uses windows). every other user browser show ugly authentication dialog, looks ridiculously out of place on registration page.

so, question is, is possible inquire browser available ntlm credentials, if any?

no; instead utilize negotiate, require user has existing kerberos ticket (via active directory authentication, in scenario) authenticate. there no prompt users did not have ticket.

ntlm , negotiate different authentication mechanisms: ntlm simple challenge/response mechanism while negotiate encapsulation of more secure (and more complex) kerberos protocol. both mechanisms available allow "single sign-on" windows user needs authenticate once, when logging on computer, , subsequent network connections authenticated using logged-in user credentials. (though negotiate only work when domain joined active directory, while ntlm can work in workstation setup.)

http ntlm

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Php operator `break` doesn't stop while -