【问题标题】:curl authentication with ldap credentials使用 ldap 凭据进行 curl 身份验证
【发布时间】:2019-01-21 09:44:07
【问题描述】:

我正在尝试使用使用 ldap 身份验证的 curl 连接到 servicenow 服务器。

我的命令:

curl -ntlm -u user https://my.service-now.com/api/now/table/incident

然后我得到:

Enter host password for user 'user':
{"error":{"message":"User Not Authenticated","detail":"Required to provide Auth information"},"status":"failure"}

如何通过 curl 命令获取身份验证?

【问题讨论】:

    标签: curl ldap servicenow-rest-api


    【解决方案1】:

    你可以试试这个验证:

    curl -ntlm "https://my.service-now.com/api/now/table/incident" --user 'user':'user_password'
    

    替换为你的用户名和密码来执行它

    【讨论】:

    • 尝试使用附加标志运行示例:--header > curl -ntlm "my.service-now.com/api/now/table/incident" --user 'user':'pass'--header "Accept:application/json" { "error":{"message":"User Not Authenticated","detail":"需要提供 Auth 信息"},"status":"failure"} 但仍然出现同样的错误
    • 您是否通过登录您的实例检查用户和通行证在 Service Now 中是否有效。在这里试试my.service-now.com/login.do
    • 你说得对 - 我无法从 my.service-now.com/login.do 地址登录,但我可以登录 my.service-now.com/sp
    • 它应该可以从 login.do 访问 API。您需要为您的ID设置一个后端密码,然后尝试。只有 SN 管理员可以从用户配置文件中执行此操作
    猜你喜欢
    • 1970-01-01
    • 2014-02-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-03
    • 2014-03-08
    • 2014-08-09
    • 2011-07-23
    相关资源
    最近更新 更多