Skip to content

does this mod support windows AD #1

Description

@oliverzh

I'm having issue getting this mode to work with windows AD. For example, I have an user call ldap in the default Users OU. usera and userb are also in the same Users OU. does the following look right?

    if(!(req.http.Authorization && ldap.simple_auth(
                    true,
                    "CN=ldap,DC=company,DC=com,DC=au",
                    "ldappass",
                    "ldap://192.168.1.1/CN=Users,DC=company,DC=com,DC=au?uid?sub?(objectClass=*)",
                    ldap.get_basicuser(),
                    ldap.get_basicpass()
            ))){
                    error 401;
            }

this is the error msg I got

10 VCL_call c error deliver
10 VCL_call c deliver deliver
10 TxProtocol c HTTP/1.1
10 TxStatus c 401
10 TxResponse c Unauthorized
10 TxHeader c Server: Varnish
10 TxHeader c WWW-Authenticate: Basic realm="Authorization Required"
10 TxHeader c Content-Length: 22
10 TxHeader c Accept-Ranges: bytes
10 TxHeader c Date: Wed, 29 May 2013 03:51:26 GMT
10 TxHeader c X-Varnish: 688111833
10 TxHeader c Age: 0
10 TxHeader c Via: 1.1 varnish
10 TxHeader c Connection: close

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions