[PATCH] Updated Add detailed authentication logging for NTLM authentication.

Andreas Schneider asn at samba.org
Sat Mar 11 08:57:52 UTC 2017


On Friday, 10 March 2017 22:03:49 CET Andrew Bartlett wrote:
> On Fri, 2017-03-10 at 13:04 +0200, Alexander Bokovoy wrote:
> > On pe, 10 maalis 2017, Andreas Schneider wrote:
> > > On Sunday, 5 March 2017 19:36:06 CET Gary Lockyer wrote:
> > > > On 03/03/17 14:13, Jeremy Allison wrote:
> > > > > On Fri, Mar 03, 2017 at 01:36:28PM +1300, Andrew Bartlett
> > > > > 
> > > > > wrote:
> > > > > > Gary will continue on this to add the JSON, but I'm really
> > > > > > pleased with
> > > > > > the progress and hopefully we can get this much in to the
> > > > > > tree soon.
> > > > > > We now handle logging anonymous ldap and un-authenticated
> > > > > > dce/rpc
> > > > > > authorizations!
> > > > 
> > > > To generate the json log lines I'm planning on using glib-json
> > > > https://developer.gnome.org/json-glib/stable/, rather than
> > > > rolling my own.
> > > > 
> > > > Doing this however does add dependencies on
> > > > * json-glib
> > > > * gio
> > > > * gobject
> > > > * glib
> > > > 
> > > > And requires compiling with -pthread
> > > > 
> > > > Is this a reasonable approach?
> > > 
> > > I'm against glib.
> 
> Andreas:
> 
> Can you please elaborate?  Before we start re-working the code I would
> appreciate understanding the technical objection.  To be clear: The
> JSON auditing is optional based on the availability of the dependency..

As stated above json-glib pulls in serveral g* libraries. jannson doesn't have 
any dependencies. I'm for the smaller library!


Also it looks like jansson is in a really good shape, check:

Parsing JSON is a minefield
http://seriot.ch/parsing_json.php


> 
> > > Take a look at:
> > > 
> > > https://github.com/json-c/json-c/wiki
> > 
> > I'd suggest jansson: https://github.com/akheron/jansson
> > We use it in JOSE (https://github.com/latchset/jose) and it also has
> > very good documentation: https://jansson.readthedocs.io/en/latest/ind
> > ex.html

Yes, jansson really looks nice and seems to be on all distros.



	Andreas



More information about the samba-technical mailing list