Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTLM v2 serverside - how ? #5

Open
henrywood opened this issue Aug 22, 2018 · 1 comment
Open

NTLM v2 serverside - how ? #5

henrywood opened this issue Aug 22, 2018 · 1 comment

Comments

@henrywood
Copy link

Hi !

You have an example of using NTLM v1 here https://loune.net/2007/10/simple-lightweight-ntlm-in-php/

Using this library, how would the code look that achieves the same ?

Thanks in advance !

@loune
Copy link
Owner

loune commented Sep 2, 2018

The NTLM v1 code linked above is not really recommended since it takes any username the browser supplies and doesn't verify the password hash. If you really want to do this, you could possibly have something like:

function insecure_verify() {
  return true;
}

$auth = ntlm_prompt("testwebsite", "testdomain", "mycomputer", "testdomain.local", "mycomputer.local", null, "insecure_verify");

print_r($auth);

$auth should contain the username/domain. Note I haven't tested the code above and is highly not recommended using this for any type of authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants