Rom*_*ich 3 curl ldap servicenow-rest-api
我正在尝试使用使用 ldap 身份验证的curl 连接到servicenow 服务器。
我的命令:
curl -ntlm -u user https://my.service-now.com/api/now/table/incident
Run Code Online (Sandbox Code Playgroud)
然后我得到:
Enter host password for user 'user':
{"error":{"message":"User Not Authenticated","detail":"Required to provide Auth information"},"status":"failure"}
Run Code Online (Sandbox Code Playgroud)
如何通过curl命令获得身份验证?
小智 5
您可以尝试以下方法进行身份验证:
curl -ntlm "https://my.service-now.com/api/now/table/incident" --user 'user':'user_password'
Run Code Online (Sandbox Code Playgroud)
替换为您的用户 ID 和密码以执行它