version 1.18, 2008/03/29 11:11:44
|
version 1.19, 2008/03/29 15:22:50
|
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.17 2008/01/07 23:20:14 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/auditlog.c,v 1.18 2008/03/29 11:11:44 ando 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 127 static int auditlog_response(Operation *
|
Line 127 static int auditlog_response(Operation *
|
|
|
stamp = slap_get_time(); |
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, (long)stamp, suffix, who ? " " : "", who ? who->bv_val : ""); |
|
|
if ( !BER_BVISEMPTY( &op->o_conn->c_dn ) && |
if ( !BER_BVISEMPTY( &op->o_conn->c_dn ) && |
(!who || !dn_match( who, &op->o_conn->c_dn ))) |
(!who || !dn_match( who, &op->o_conn->c_dn ))) |
Line 174 static int auditlog_response(Operation *
|
Line 174 static int auditlog_response(Operation *
|
break; |
break; |
} |
} |
|
|
fprintf(f, "# end %s %ld\n\n", what, stamp); |
fprintf(f, "# end %s %ld\n\n", what, (long)stamp); |
|
|
fclose(f); |
fclose(f); |
ldap_pvt_thread_mutex_unlock(&ad->ad_mutex); |
ldap_pvt_thread_mutex_unlock(&ad->ad_mutex); |