Hi, I complement, I would say, that the Lua bindings for the standard Openldap client exists, but unfortunately, the operation is blocking, and doesn't run very well with HAProxy.
It seems that a Lua rewrite of the LDAP protocol using standard Lua HAProxy socket is a solution, but this is a big development. Maybe a partial implementation (juste the binding) will be usefull. Thierry On Fri, 4 Dec 2015 08:35:41 +0100 Baptiste <[email protected]> wrote: > current Lua implementation already allows asynchronous network sockets. > Now, what you need to do is to code a basic LDAP auth request in Lua > and be able to parse the response. > > Baptiste > > > > On Thu, Dec 3, 2015 at 11:58 PM, Grant Haywood <[email protected]> wrote: > > Thats exactly what I am wanting to code, I just need an example of how to > > do auth, like userlist, inside of lua. > > > > ----- Original Message ----- > > From: "Igor Cicimov" <[email protected]> > > To: "Grant Haywood" <[email protected]> > > Cc: "HAProxy" <[email protected]> > > Sent: Thursday, December 3, 2015 3:58:28 PM > > Subject: Re: lua authentication > > > > > > > > > > Hi Grant, > > > > > > > > On Fri, Dec 4, 2015 at 7:46 AM, Grant Haywood < [email protected] > > > wrote: > > > > > > Hello, > > > > I was wondering if there is a basic example of using lua to do > > authentication? > > > > I am specificaly interested in constructing 'ldap' and 'jwt' versions of > > the 'userlist' block > > > > thx in advance for your time > > > > > > > > Excellent question. One feature I would love to see in haproxy is support > > for ldap authentication. It would be awesome If that could be done via lua. > > > > > > Thanks, > > > > Igor > > >

