[1218] | 1 | Summary: A script for synchronizing two LDAP trees
|
---|
| 2 | Name: dassldapsync
|
---|
[1223] | 3 | Version: 2.0
|
---|
[1218] | 4 | Release: 1%{?dist}
|
---|
[1250] | 5 | License: Apache-2.0
|
---|
[1218] | 6 | Group: other
|
---|
| 7 | BuildArch: noarch
|
---|
[1220] | 8 | URL: http://trac.dass-it.de/pub/browser/dassldapsync
|
---|
[1218] | 9 |
|
---|
| 10 | Source: %{name}_%{version}.tar.gz
|
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
---|
| 12 |
|
---|
| 13 | Requires: python >= 2.6
|
---|
| 14 | Requires: python-ldap
|
---|
[1258] | 15 | Requires: python-dateutil
|
---|
[1220] | 16 |
|
---|
[1218] | 17 | %description
|
---|
| 18 | This script compares two different LDAP subtrees and makes
|
---|
| 19 | the according changes on objects in the destination subtree.
|
---|
| 20 | Missing objects are created, extraneous objects are deleted.
|
---|
| 21 | The two subtrees can reside on two different LDAP servers.
|
---|
| 22 | It is also possible to use an LDIF file as the source subtree.
|
---|
| 23 |
|
---|
| 24 | %prep
|
---|
[1223] | 25 | %setup -c
|
---|
[1218] | 26 |
|
---|
| 27 | %build
|
---|
[1220] | 28 |
|
---|
[1218] | 29 | %install
|
---|
| 30 | mkdir -p "%{buildroot}/usr/sbin"
|
---|
| 31 | mkdir -p "%{buildroot}/etc/"
|
---|
| 32 | install -m 644 dassldapsync.conf %{buildroot}/etc/dassldapsync.conf
|
---|
| 33 | install -m 755 dassldapsync.py %{buildroot}/usr/sbin/dassldapsync
|
---|
[1220] | 34 |
|
---|
[1218] | 35 | %clean
|
---|
[1223] | 36 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
---|
[1218] | 37 |
|
---|
| 38 | %files
|
---|
| 39 | %defattr(-,root,root)
|
---|
[1220] | 40 | %config(noreplace) /etc/dassldapsync.conf
|
---|
[1218] | 41 | /usr/sbin/dassldapsync
|
---|
[1220] | 42 |
|
---|
[1218] | 43 | %changelog
|
---|
| 44 | * Wed Mar 05 2014 Sebastian Lederer slederer@dass-it.de 1.5
|
---|
| 45 | - now also works if pwd_max_days is not specified in
|
---|
| 46 | the configuration file
|
---|
| 47 | * Wed Mar 05 2014 Sebastian Lederer slederer@dass-it.de 1.4
|
---|
| 48 | - add special hack to lock accounts on the destination
|
---|
| 49 | if the password on the source side has expired via ppolicy
|
---|
| 50 | overlay
|
---|
| 51 | * Tue Jan 28 2014 Sebastian Lederer slederer@dass-it.de 1.3
|
---|
| 52 | - add configuration option to exclude subtree on substring match
|
---|
| 53 | * Tue Jan 28 2014 Sebastian Lederer slederer@dass-it.de 1.2
|
---|
| 54 | - continue on error when creating objects
|
---|
| 55 | * Tue Jan 28 2014 Sebastian Lederer slederer@dass-it.de 1.1
|
---|
| 56 | - workaround for buggy LDIF file (duplicate objectClass value)
|
---|
| 57 | * Mon Jan 13 2014 Sebastian Lederer slederer@dass-it.de 1.0
|
---|
| 58 | - first attempt at an RPM package
|
---|