-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
44 lines (34 loc) · 982 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
-