OUD - Displaying Changelog Changes in PlainText From an 'ldapsearch' Output (Doc ID 1374140.1)

Last updated on JULY 14, 2017

Applies to:

Oracle Unified Directory - Version 11.1.1.5.0 and later
Information in this document applies to any platform.
***Checked for relevance on 24-Sep-2013***

Goal

How to base64 decode the changes attribute value in the changelog to plain text

By default, the ldapsearch output for the changes attribute in cn=changelog is base64-encoded -



ldapsearch -p 2224 -D "cn=Directory Manager" -w secret12 --useSSL --trustAll -s base -b "changenumber=4,cn=changelog" objectclass=*

# Public changelog exchange control(1.3.6.1.4.1.26027.1.5.4): dc=example,dc=com:000001336ebe53c1484900000004;
dn: changenumber=4,cn=changelog
targetuniqueid: 47c7be45-0ce53105-8ea8fc3c-39c47f91
objectClass: top
objectClass: changeLogEntry
changeTime: 20111104132206Z
targetDN: uid=user.10,ou=people,dc=example,dc=com
changenumber: 4
changes:: YWRkOiBkaXNwbGF5TmFtZQpkaXNwbGF5TmFtZTogQWJiZXkgQWJiaWUKLQphZGQ6IHRpdG
xlCnRpdGxlOiBFVlAKLQpyZXBsYWNlOiBtb2RpZmllcnNOYW1lCm1vZGlmaWVyc05hbWU6IGNuPURpc
mVjdG9yeSBNYW5hZ2VyLGNuPVJvb3QgRE5zLGNuPWNvbmZpZwotCnJlcGxhY2U6IG1vZGlmeVRpbWVz
dGFtcAptb2RpZnlUaW1lc3RhbXA6IDIwMTExMTA0MTMyMjA2WgotCg==
changeType: modify

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms