[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
|
---|
[1220] | 15 |
|
---|
[1218] | 16 | %description
|
---|
| 17 | This script compares two different LDAP subtrees and makes
|
---|
| 18 | the according changes on objects in the destination subtree.
|
---|
| 19 | Missing objects are created, extraneous objects are deleted.
|
---|
| 20 | The two subtrees can reside on two different LDAP servers.
|
---|
| 21 | It is also possible to use an LDIF file as the source subtree.
|
---|
| 22 |
|
---|
| 23 | %prep
|
---|
[1223] | 24 | %setup -c
|
---|
[1218] | 25 |
|
---|
| 26 | %build
|
---|
[1220] | 27 |
|
---|
[1218] | 28 | %install
|
---|
| 29 | mkdir -p "%{buildroot}/usr/sbin"
|
---|
| 30 | mkdir -p "%{buildroot}/etc/"
|
---|
| 31 | install -m 644 dassldapsync.conf %{buildroot}/etc/dassldapsync.conf
|
---|
| 32 | install -m 755 dassldapsync.py %{buildroot}/usr/sbin/dassldapsync
|
---|
[1220] | 33 |
|
---|
[1218] | 34 | %clean
|
---|
[1223] | 35 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
---|
[1218] | 36 |
|
---|
| 37 | %files
|
---|
| 38 | %defattr(-,root,root)
|
---|
[1220] | 39 | %config(noreplace) /etc/dassldapsync.conf
|
---|
[1218] | 40 | /usr/sbin/dassldapsync
|
---|
[1220] | 41 |
|
---|
[1218] | 42 | %changelog
|
---|
| 43 | * Wed Mar 05 2014 Sebastian Lederer slederer@dass-it.de 1.5
|
---|
| 44 | - now also works if pwd_max_days is not specified in
|
---|
| 45 | the configuration file
|
---|
| 46 | * Wed Mar 05 2014 Sebastian Lederer slederer@dass-it.de 1.4
|
---|
| 47 | - add special hack to lock accounts on the destination
|
---|
| 48 | if the password on the source side has expired via ppolicy
|
---|
| 49 | overlay
|
---|
| 50 | * Tue Jan 28 2014 Sebastian Lederer slederer@dass-it.de 1.3
|
---|
| 51 | - add configuration option to exclude subtree on substring match
|
---|
| 52 | * Tue Jan 28 2014 Sebastian Lederer slederer@dass-it.de 1.2
|
---|
| 53 | - continue on error when creating objects
|
---|
| 54 | * Tue Jan 28 2014 Sebastian Lederer slederer@dass-it.de 1.1
|
---|
| 55 | - workaround for buggy LDIF file (duplicate objectClass value)
|
---|
| 56 | * Mon Jan 13 2014 Sebastian Lederer slederer@dass-it.de 1.0
|
---|
| 57 | - first attempt at an RPM package
|
---|