Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does this mod support windows AD #1

Open
oliverzh opened this issue May 29, 2013 · 2 comments
Open

does this mod support windows AD #1

oliverzh opened this issue May 29, 2013 · 2 comments

Comments

@oliverzh
Copy link

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

@xcir
Copy link
Owner

xcir commented Jun 18, 2013

Sorry, I have not windows AD environment now.
vmod_ldap is error output to syslog.
you try check to syslog.

error example:
ldap_url_parse: %d, (%s)
ldap_initialize: %d, (%s)
ldap_set_option: %d, (%s)
ldap_simple_bind_s: %d, (%s)
ldap_search_ext_s: %d, (%s)

@xcir
Copy link
Owner

xcir commented Jun 18, 2013

If I remember correctly, this module work to windows AD.
I was tested by previous company.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants