forked from norihiro/ldifdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
47 lines (36 loc) · 1.14 KB
/
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
43
44
45
46
ldifdiff - compare two LDAP entries and output with a format of ldapmodify
Synopsis:
ldifdiff 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.
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
-
postprocess - Postprocess ldif-files when using ldapsearch
ldapsearch truncates the ldif-files at 78 characters and makes comparison with ldifdiff impossible.
Postprocess.py reformats the ldif files for comparison.
$ postprocess.py -i input_file.ldif
> creates input_file.ldif.postprocessed that can be used with ldifdiff