Skip to content

compare two LDAP entries and output with a format of ldapmodify

Notifications You must be signed in to change notification settings

norihiro/ldifdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ldifdiff - compare two LDAP entries and output with a format of ldapmodify

Synopsis:
ldifdiff [OPTION] file1 file2

Description:
The ldifdiff is a python program to compare two LDAP entries and generate a LDIF
for ldapmodify to modify entries in file1 to entries in file2.

Option:
-b	Decode binary values if encoded by base64.
	The output becomes human readable but ldapmodify might not be able to read.

Examples:

$ cat entry1
dn: cn=Barbara Jensen, dc=example, dc=com
objectClass: person
cn: Barbara Jensen
cn: Babs Jensen
sn: Jensen
title: the most famous mythical manager
mail: [email protected]
uid: bjensen

$ cat entry2
dn: cn=Barbara Jensen, dc=example, dc=com
objectClass: person
cn: Barbara Jensen
cn: Babs Jensen
sn: Jensen
title: the world's most famous mythical manager
mail: [email protected]
uid: bjensen

$ ldifdiff entry1 entry2

dn: cn=Barbara Jensen, dc=example, dc=com
changetype: modify
replace: title
title: the world's most famous mythical manager
-


About

compare two LDAP entries and output with a format of ldapmodify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages