P
P
pdbqman2019-07-30 08:03:45
PHP
pdbqman, 2019-07-30 08:03:45

How to authorize NTLM on the portal via php+curl and get data?

Good afternoon!
The following question arose:

  1. There is a local portal. It has a username and password. The login is the system login.
  2. Authorization occurs automatically under the system login
  3. A local site has been raised in php and it is necessary to display tasks on the local site (already with a configured search filter). The local site already has its own automatic NTLM authorization

It is necessary to obtain the necessary data from the portal via curl.
Can you help me figure out what needs to be done and in what order?
I would be extremely grateful for your help. Thanks to all.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2019-07-30
@dimonchik2013

https://www.telerik.com/fiddler can you handle it?
you look at what the browser is doing and repeat the same thing with a curl, by the way, you can also see it with a fiddler
, as a rule, you can put everything in the headers in the curl, but sometimes all user agents have separate settings

P
pdbqman, 2019-07-31
@pdbqman

in the console version of curl it was possible to figure it out:
$ curl -I -k --ntlm -u DOMAIN/login:password " https://xxx " connects and receives HTTP/1.1 200 OK

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question