1 Summary: Utilities to manage the passwd and shadow user information
2 Summary(pl): Narzêdzia do zarz±dzania informacjami o u¿ytkownikach z passwd i shadow
7 Group: Applications/System
8 Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
9 # Source0-md5: 8567328b1ad7609f8851eec57658f1a0
10 Source1: %{name}.useradd
11 Source2: %{name}.rpasswdd.init
12 Source3: %{name}.login.defs
19 URL: http://www.thkukuk.de/pam/pwdutils/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: gcc >= 5:3.2
23 BuildRequires: gettext-devel
24 BuildRequires: libselinux-devel
25 BuildRequires: openldap-devel
26 BuildRequires: openssl-devel >= 0.9.7d
27 BuildRequires: openslp-devel
28 BuildRequires: pam-devel
29 BuildRequires: sed >= 4.0
30 Provides: shadow = 2:%{version}-%{release}
31 Provides: shadow-extras = 2:%{version}-%{release}
33 Obsoletes: shadow-extras
34 Conflicts: util-linux < 2.12-10
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 # for pam module in /%{_lib}/security
38 %define _libdir /%{_lib}
41 pwdutils is a collection of utilities to manage the passwd and shadow
42 user information. The difference to the shadow suite is that these
43 utilities can also modify the information stored in NIS, NIS+, or
44 LDAP. PAM is used for user authentication and changing the pasword. It
45 contains passwd, chage, chfn, chsh, and a daemon for changing the
46 password on a remote machine over a secure SSL connection. The daemon
47 also uses PAM so that it can change passwords independent of where
51 pwdutils to zestaw narzêdzi do zarz±dzania informacjami o
52 u¿ytkownikach z passwd i shadow. Ró¿nica w stosunku do pakietu shadow
53 polega na tym, ¿e te narzêdzia mog± tak¿e modyfikowaæ informacje
54 zapisane w bazie NIS, NIS+ lub LDAP. PAM jest u¿ywany do
55 uwierzytelniania u¿ytkowników i zmiany hase³. Zestaw zawiera passwd,
56 chage, chfn, chsh oraz demona do zmiany has³a na zdalnej maszynie po
57 bezpiecznym po³±czeniu SSL. Demon tak¿e u¿ywa PAM, wiêc mo¿na zmieniaæ
58 has³a niezale¿nie od tego, gdzie s± przechowywane.
61 Summary: Remote password update daemon
62 Summary(pl): Demon do zdalnego uaktualniania hase³
63 Group: Applications/System
65 %description -n rpasswdd
66 rpasswdd is a daemon that lets users change their passwords in the
67 presence of a directory service like NIS, NIS+ or LDAP over a secure
68 SSL connection. rpasswdd behaves like the normal passwd(1) program and
69 uses PAM for authentication and changing the password, so it can be
70 configured very flexibel for the local requirements.
72 %description -n rpasswdd -l pl
73 rpasswdd to demon pozwalaj±cy u¿ytkownikom zmieniaæ has³a w obecno¶ci
74 us³ug katalogowych takich jak NIS, NIS+ czy LDAP po bezpiecznym
75 po³±czeniu SSL. rpasswdd zachowuje siê tak, jak normalny program
76 passwd(1) i u¿ywam PAM do uwierzytelniania i zmiany hase³, wiêc mo¿e
77 byæ bardzo elastycznie konfigurowany dla lokalnych wymagañ.
79 %package -n pam-pam_rpasswd
80 Summary: pam_rpasswd - PAM module to change remote password
81 Summary(pl): pam_rpasswd - modu³ PAM do zdalnej zmiany has³a
83 # rpasswd.conf is in base
84 Requires: %{name} = %{version}-%{release}
86 %description -n pam-pam_rpasswd
87 The pam_rpasswd PAM module is for changing the password of user
88 accounts on a remote server over a secure SSL connection. It only
89 provides functionality for one PAM management group: password
92 %description -n pam-pam_rpasswd -l pl
93 Modu³ PAM pam_rpasswd s³u¿y do zmiany hase³ dla kont u¿ytkowników na
94 zdalnym serwerze po bezpiecznym po³±czeniu SSL. Udostêpnia
95 funkcjonalno¶æ tylko dla jednej grupy zarz±dzania PAM: zmiany hase³.
101 sed -i -e 's#EXTRA_CFLAGS=.*#EXTRA_CFLAGS="-W -Wall"#g' configure.in
108 --enable-pam_rpasswd \
118 rm -rf $RPM_BUILD_ROOT
119 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pwdutils,skel}
122 DESTDIR=$RPM_BUILD_ROOT
124 mv $RPM_BUILD_ROOT%{_sbindir}/*.local $RPM_BUILD_ROOT%{_sysconfdir}/pwdutils
125 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd
126 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpasswdd
127 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs
129 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/chage
130 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chfn
131 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chsh
132 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd
133 install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd
134 install %{SOURCE9} $RPM_BUILD_ROOT/etc/pam.d/shadow
136 :> $RPM_BUILD_ROOT/etc/shadow
141 rm -rf $RPM_BUILD_ROOT
144 if [ ! -f /etc/shadow ]; then
149 /sbin/chkconfig --add rpasswdd
150 if [ -f /var/lock/subsys/rpasswdd ]; then
151 /etc/rc.d/init.d/rpasswdd restart 1>&2
153 echo "Run \"/etc/rc.d/init.d/rpasswdd start\" to start rpasswdd daemon."
157 if [ "$1" = "0" ]; then
158 if [ -f /var/lock/subsys/rpasswdd ]; then
159 /etc/rc.d/init.d/rpasswdd stop 1>&2
161 /sbin/chkconfig --del rpasswdd
164 %files -f %{name}.lang
165 %defattr(644,root,root,755)
166 %doc ChangeLog NEWS README THANKS TODO
167 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %ghost %{_sysconfdir}/shadow
168 %attr(750,root,root) %dir %{_sysconfdir}/default
169 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/default/*
170 %attr(750,root,root) %dir %{_sysconfdir}/%{name}
171 %attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/*.local
172 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chage
173 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chfn
174 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chsh
175 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/passwd
176 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/useradd
177 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/shadow
178 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/login.defs
179 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/rpasswd.conf
181 %attr(755,root,root) %{_bindir}/chage
182 %attr(4755,root,root) %{_bindir}/chfn
183 %attr(4755,root,root) %{_bindir}/chsh
184 %attr(4755,root,root) %{_bindir}/expiry
185 %attr(4755,root,root) %{_bindir}/gpasswd
186 %attr(755,root,root) %{_bindir}/newgrp
187 %attr(4755,root,root) %{_bindir}/passwd
188 %attr(755,root,root) %{_bindir}/rpasswd
189 %attr(755,root,root) %{_sbindir}/chpasswd
190 %attr(755,root,root) %{_sbindir}/groupadd
191 %attr(755,root,root) %{_sbindir}/groupdel
192 %attr(755,root,root) %{_sbindir}/groupmod
193 %attr(755,root,root) %{_sbindir}/grpconv
194 %attr(755,root,root) %{_sbindir}/grpck
195 %attr(755,root,root) %{_sbindir}/grpunconv
196 %attr(755,root,root) %{_sbindir}/pwconv
197 %attr(755,root,root) %{_sbindir}/pwck
198 %attr(755,root,root) %{_sbindir}/pwunconv
199 %attr(755,root,root) %{_sbindir}/rpasswdd
200 %attr(755,root,root) %{_sbindir}/useradd
201 %attr(755,root,root) %{_sbindir}/userdel
202 %attr(755,root,root) %{_sbindir}/usermod
203 %attr(755,root,root) %{_sbindir}/vigr
204 %attr(755,root,root) %{_sbindir}/vipw
206 %exclude %{_mandir}/man8/rpasswdd*
207 %exclude %{_mandir}/man8/pam_rpasswd.8*
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_sbindir}/rpasswdd
212 %attr(754,root,root) /etc/rc.d/init.d/rpasswdd
213 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/rpasswd
214 %{_mandir}/man8/rpasswdd*
216 %files -n pam-pam_rpasswd
217 %defattr(644,root,root,755)
218 %attr(755,root,root) /%{_lib}/security/pam_rpasswd.so
219 %{_mandir}/man8/pam_rpasswd.8*