xcir / libvmod-ldap Goto Github PK
View Code? Open in Web Editor NEWLDAP module for Varnish
License: Other
LDAP module for Varnish
License: Other
When I run:
./configure VARNISHSRC=/root/varnish-5.1.3 VMODDIR=/usr/lib/varnish/vmods
It fails with error:
checking for /root/varnish-5.1.3/include/varnishapi.h... no
configure: error: in `/root/libvmod-ldap':
configure: error: "/root/varnish-5.1.3" is not a Varnish source directory
although I've the source fetched via apt-get source varnish=5.1.3
. Same result when I tried with the downloaded source tarball. Also tried to build the varnish source first but that didn't make any difference either.
Am I doing something wrong or the module is not compatible with varnish-5.1?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.