Skip to content

401 unauthorized #99

Open
Open
@vadimiv

Description

@vadimiv

Hi. If i use ldapsearch all requests are successful. But
curl --location --request GET 'http://localhost:8888' --header 'X-Ldap-URL: ldap://test.local:389' --header 'X-Ldap-BaseDN: DC=test,DC=local' --header 'X-Ldap-BindDN: nginx_ldap' --header 'X-Ldap-BindPass: ' --header 'X-Ldap-Template: (sAMAccountName=%(username)s)' -vv -u nginx_ldap:
returned 401 aunauthorized

  • Connected to localhost (::1) port 8888 (#0)
  • Server auth using Basic with user 'nginx_ldap'

GET / HTTP/1.1
Authorization: Basic bmdpbnhfbGRhcDoyd3N4QFdTWA==
User-Agent: curl/7.29.0
Host: localhost:8888
Accept: /
X-Ldap-URL: ldap://test.local:389
X-Ldap-BaseDN: DC=bft,DC=local
X-Ldap-BindDN: nginx_ldap
X-Ldap-BindPass: ****
X-Ldap-Template: (sAMAccountName=%(username)s)

  • HTTP 1.0, assume close after body
    < HTTP/1.0 401 Unauthorized
    < Server: BaseHTTP/0.3 Python/2.7.18
    < Date: Tue, 05 Jul 2022 14:58:49 GMT
  • Authentication problem. Ignoring this.
    < WWW-Authenticate: Basic realm="Restricted"
    < Cache-Control: no-cache
    <
  • Closing connection 0
    Can somebody help please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions