version 1.17, 2008/01/07 23:20:14
|
version 1.18, 2008/03/29 11:11:44
|
Line 1
|
Line 1
|
/* auditlog.c - log modifications for audit/history purposes */ |
/* auditlog.c - log modifications for audit/history purposes */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/auditlog.c,v 1.16 2007/11/27 19:58:19 quanah Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/auditlog.c,v 1.17 2008/01/07 23:20:14 kurt Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 2005-2008 The OpenLDAP Foundation. |
* Copyright 2005-2008 The OpenLDAP Foundation. |
Line 74 static int auditlog_response(Operation *
|
Line 74 static int auditlog_response(Operation *
|
Modifications *m; |
Modifications *m; |
struct berval *b, *who = NULL; |
struct berval *b, *who = NULL; |
char *what, *suffix; |
char *what, *suffix; |
long stamp = slap_get_time(); |
time_t stamp; |
int i; |
int i; |
|
|
if ( rs->sr_err != LDAP_SUCCESS ) return SLAP_CB_CONTINUE; |
if ( rs->sr_err != LDAP_SUCCESS ) return SLAP_CB_CONTINUE; |
Line 125 static int auditlog_response(Operation *
|
Line 125 static int auditlog_response(Operation *
|
return SLAP_CB_CONTINUE; |
return SLAP_CB_CONTINUE; |
} |
} |
|
|
|
stamp = slap_get_time(); |
fprintf(f, "# %s %ld %s%s%s\n", |
fprintf(f, "# %s %ld %s%s%s\n", |
what, stamp, suffix, who ? " " : "", who ? who->bv_val : ""); |
what, stamp, suffix, who ? " " : "", who ? who->bv_val : ""); |
|
|