X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Foverlays%2Fauditlog.c;h=55aabd40af8909c858b6c49349154c1e946a0d83;hb=2317211a8f7b1a50862bd16c29d208b62fbb387b;hp=1d65e1b5b653c2c6fa9cca3c8c5687a0d91d5909;hpb=5ae46c195ed5dd2b5117d2301645e8b7a00d9a0a;p=openldap diff --git a/servers/slapd/overlays/auditlog.c b/servers/slapd/overlays/auditlog.c index 1d65e1b5b6..55aabd40af 100644 --- a/servers/slapd/overlays/auditlog.c +++ b/servers/slapd/overlays/auditlog.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2005-2007 The OpenLDAP Foundation. + * Copyright 2005-2008 The OpenLDAP Foundation. * Portions copyright 2004-2005 Symas Corporation. * All rights reserved. * @@ -185,7 +185,7 @@ static slap_overinst auditlog; static int auditlog_db_init( BackendDB *be, - ConfigArgs *ca + ConfigReply *cr ) { slap_overinst *on = (slap_overinst *)be->bd_info; @@ -199,7 +199,7 @@ auditlog_db_init( static int auditlog_db_close( BackendDB *be, - ConfigArgs *ca + ConfigReply *cr ) { slap_overinst *on = (slap_overinst *)be->bd_info; @@ -213,7 +213,7 @@ auditlog_db_close( static int auditlog_db_destroy( BackendDB *be, - ConfigArgs *ca + ConfigReply *cr ) { slap_overinst *on = (slap_overinst *)be->bd_info; @@ -224,32 +224,6 @@ auditlog_db_destroy( return 0; } -static int -auditlog_config( - BackendDB *be, - const char *fname, - int lineno, - int argc, - char **argv -) -{ - slap_overinst *on = (slap_overinst *) be->bd_info; - auditlog_data *ad = on->on_bi.bi_private; - - /* history log file */ - if ( strcasecmp( argv[0], "auditlog" ) == 0 ) { - if ( argc < 2 ) { - Debug( LDAP_DEBUG_ANY, - "%s: line %d: missing filename in \"auditlog \" line\n", - fname, lineno, 0 ); - return( 1 ); - } - ad->ad_logfile = ch_strdup( argv[1] ); - return 0; - } - return SLAP_CONF_UNKNOWN; -} - int auditlog_initialize() { int rc;