Bug 1044153
Summary: | mods optimizer | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Nathan Kinder <nkinder> |
Component: | 389-ds-base | Assignee: | Rich Megginson <rmeggins> |
Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> |
Severity: | unspecified | Docs Contact: | |
Priority: | low | ||
Version: | 7.0 | CC: | amsharma, mreynolds, nhosoi |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 389-ds-base-1.3.3.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
a
Consequence:
Fix:
Result:
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 09:31:43 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nathan Kinder
2013-12-17 21:30:36 UTC
Verification Steps [1] Install DS [2] Enable "audit" logging # ldapmodify ... dn: cn=config changetype: modify replace: nsslapd-auditlog-logging-enabled nsslapd-auditlog-logging-enabled: on [3] Add an entry: dn: uid=user,dc=example,dc=com uid: user givenName: user objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetorgperson sn: user cn: user description: 1 description: 2 description: 3 [4] Remove each description attribute separately # ldapmodify ... dn: uid=user,dc=example,dc=com changetype: modify delete: description description: 1 - delete: description description: 2 - delete: description description: 3 Internally it will get converted to the following format - which is much more efficient: dn: uid=user,dc=example,dc=com changetype: modify delete: description description: 1 description: 2 description: 3 [5] Verify that this is how the modify operation appears in the audit log: ------------------------------------------ time: 20141023140935 dn: uid=user,dc=example,dc=com changetype: modify delete: description description: 1 description: 2 description: 3 - replace: modifiersname modifiersname: cn=directory manager - replace: modifytimestamp modifytimestamp: 20141023180935Z - ------------------------------------------ [root@dhcp201-126 export]# ldapmodify -a -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 << EOF> dn: cn=config > changetype: modify > replace: nsslapd-auditlog-logging-enabled > nsslapd-auditlog-logging-enabled: on > EOF modifying entry "cn=config" [root@dhcp201-126 export]# ldapmodify -a -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 << EOF > dn: uid=user,dc=example,dc=com > uid: user > givenName: user > objectClass: top > objectClass: person > objectClass: organizationalPerson > objectClass: inetorgperson > sn: user > cn: user > description: 1 > description: 2 > description: 3 > EOF adding new entry "uid=user,dc=example,dc=com" [root@dhcp201-126 export]# ldapmodify -a -p 389 -h localhost -D "cn=Directory Manager" -w Secret123 << EOF > dn: uid=user,dc=example,dc=com > changetype: modify > delete: description > description: 1 > - > delete: description > description: 2 > - > delete: description > description: 3 > EOF modifying entry "uid=user,dc=example,dc=com" [root@dhcp201-126 export]# tail -f /var/log/dirsrv/slapd-dhcp201-126/audit description: 2 description: 3 - replace: modifiersname modifiersname: cn=directory manager - replace: modifytimestamp modifytimestamp: 20150107072453Z - Marking as VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0416.html |