summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/libslapd.def
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-03-28 23:30:46 +0000
committerRich Megginson <rmeggins@redhat.com>2005-03-28 23:30:46 +0000
commit54fdf73874abce4f4f5adaaa4d7782113cfd2264 (patch)
tree0160d0c845d9063550c308120433bd3505ca2592 /ldap/servers/slapd/libslapd.def
parent5f1bf72ea46556894d5956ea13f099b7de6dfdf3 (diff)
downloadds-54fdf73874abce4f4f5adaaa4d7782113cfd2264.tar.gz
ds-54fdf73874abce4f4f5adaaa4d7782113cfd2264.tar.xz
ds-54fdf73874abce4f4f5adaaa4d7782113cfd2264.zip
Bug(s) fixed: 151567
Bug Description: Many operations use write_audit_log_entry to write to the audit log. These functions build a string buffer to write to the audit log. The only problem is, they never check to see if audit logging is enabled until after all of this work has been done. write_audit_log_entry should check right away to see if logging is enabled. Should save some time for write operations. Reviewed by: Noriko (Thanks!) Fix Description: The code in auditlog.c is called for every update operation, and in many cases a lot of work is done before it is even known if audit logging is enabled. Perhaps this was because there was no function that could be called outside of the logging code to see if audit logging is enabled. I added config_get_auditlog_logging_enabled() and used it in auditlog.c to skip the code altogether if audit logging is disabled (the default). Platforms tested: RHEL3 Flag Day: no Doc impact: no, the functions are in the private API QA impact: should be covered by regular nightly and manual testing New Tests integrated into TET: none
Diffstat (limited to 'ldap/servers/slapd/libslapd.def')
-rw-r--r--ldap/servers/slapd/libslapd.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/libslapd.def b/ldap/servers/slapd/libslapd.def
index 9d17e90a..38e15d9d 100644
--- a/ldap/servers/slapd/libslapd.def
+++ b/ldap/servers/slapd/libslapd.def
@@ -429,7 +429,7 @@ EXPORTS
config_set_accesscontrol @426
config_set_result_tweak @427
config_set_pw_gracelimit @428
-; Available for reuse @429
+ config_get_auditlog_logging_enabled @429
config_set_security @430
config_set_pwpolicy_local @431
config_set_readonly @432