2 # - consider name change
4 Summary: LDAP Name Service Switch Module
5 Summary(es.UTF-8): Biblioteca NSS para LDAP
6 Summary(pl.UTF-8): Moduł NSS LDAP
7 Summary(pt_BR.UTF-8): Biblioteca NSS para LDAP
13 Source0: http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-%{version}.tar.gz
14 # Source0-md5: 8f76fefe50888bee09f7732102376342
16 Source2: %{name}.tmpfiles
17 Patch0: %{name}-no-root.patch
18 URL: http://arthurdejong.org/nss-pam-ldapd/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: cyrus-sasl-devel
22 BuildRequires: heimdal-devel
23 BuildRequires: openldap-devel >= 2.3.0
24 BuildRequires: pam-devel
25 Requires(post,preun): /sbin/chkconfig
27 Requires: rc-scripts >= 0.2.0
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _libdir /%{_lib}
34 nss_ldapd is a C library extension (NSS module) and daemon which
35 allows X.500 and LDAP directory servers to be used as a primary source
36 of aliases, ethers, groups, hosts, networks, protocols, users, RPCs,
37 services and shadow passwords (instead of or in addition to using flat
40 %description -l pl.UTF-8
41 Moduł serwisu nazw oraz osobny demon. Ten pakiet pozwala na
42 korzystanie z serwerów X.500 i LDAP jako źródła aliasów, grup, hostów,
43 sieci, protokołów, użytkowników, RPC, usług i haseł (zamiast lub
44 oprócz zwykłych plików lub NIS).
46 nss_ldapd jest forkiem projektu nss_ldap. Celem projektu jest
47 naprawienie pewnych problemów z nss_ldap poprzez wydzielenie kodu LDAP
51 Summary: NSS LDAPD name service daemon
52 Summary(pl.UTF-8): Demon serwisu nazw NSS LDAPD
57 NSS LDAPD name service daemon.
59 %description nslcd -l pl.UTF-8
60 Demon serwisu nazw NSS LDAPD.
63 Summary: NSS LDAPD Pluggable Authentication Module
64 Summary(pl.UTF-8): Moduł PAM do uwierzytelniania z użyciem NSS LDAPD
67 Conflicts: pam-pam_ldap
70 This is pam_ldap, a pluggable authentication module that can be used
71 with linux-PAM. This module supports authentication, account
72 management, password management and session management.
74 %description pam -l pl.UTF-8
75 To jest pam_ldap, wymienny moduł uwierzytelniania, który może być
76 użyty z linux-PAM. Moduł ten wspiera autentykację, obsługę kont,
77 zmianę haseł i obsługę sesji.
80 %setup -q -n nss-pam-ldapd-%{version}
85 --with-pam-seclib-dir=/%{_lib}/security \
86 --with-ldap-lib=openldap
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d,/var/run/nslcd} \
93 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
96 DESTDIR=$RPM_BUILD_ROOT
98 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nslcd
99 install %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
102 rm -rf $RPM_BUILD_ROOT
104 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
108 %useradd -u 21 -d /usr/share/empty -s /bin/false -c "NSS LDAP Cache Daemon User" -g nobody nslcd
111 /sbin/chkconfig --add nslcd
112 %service nslcd restart "NSS LDAP Cache Daemon"
115 if [ "$1" = "0" ]; then
117 /sbin/chkconfig --del nslcd
121 if [ "$1" = "0" ]; then
125 %triggerpostun nslcd -- nss_ldapd < 0.7.0
126 if [ -e %{_sysconfdir}/nss-ldapd.conf.rpmsave ]; then
127 mv -f %{_sysconfdir}/nslcd.conf{,rpmnew}
128 mv -f %{_sysconfdir}/nss-ldapd.conf.rpmsave %{_sysconfdir}/nslcd.conf
132 %defattr(644,root,root,755)
133 %doc AUTHORS ChangeLog NEWS README
134 %attr(755,root,root) %{_libdir}/*.so*
137 %defattr(644,root,root,755)
138 %attr(754,root,root) /etc/rc.d/init.d/nslcd
139 %attr(640,nslcd,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nslcd.conf
140 %attr(755,root,root) %{_sbindir}/nslcd
141 %{_mandir}/man5/nslcd.conf.5*
142 %{_mandir}/man8/nslcd.8*
144 /usr/lib/tmpfiles.d/%{name}.conf
147 %defattr(644,root,root,755)
148 %attr(755,root,root) /%{_lib}/security/pam_ldap.so
149 %{_mandir}/man8/pam_ldap.8*