My Oracle Support Banner

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

Last updated on MAY 17, 2018

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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
 How to base64 decode the changes attribute value in the changelog to plain text
Solution
 To display attribute "changes" for changenumber=<xx>,cn=changelog
 Using ODSM
 Using the OUD base64 decode command
 Using openssl to decode a base64-encoded attribute
 Use the ldapsearch command with the -B option
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.