Blame SPECS/nss-pam-ldapd.spec

bdd351
%if 0%{?fedora} > 15 || 0%{?rhel} > 6
bdd351
%global systemd 1
bdd351
%global sysvinit 0
bdd351
%else
bdd351
%global systemd 0
bdd351
%global sysvinit 1
bdd351
%endif
bdd351
bdd351
# Fedora had these in F18, but we didn't cut over to use them until after F18
bdd351
# was frozen, so pretend it didn't happen until F19.
bdd351
%if 0%{?fedora} > 18 || 0%{?rhel} > 6
bdd351
%global systemd_macros 1
bdd351
%else
bdd351
%global systemd_macros 0
bdd351
%endif
bdd351
bdd351
%if 0%{?fedora} > 14 || 0%{?rhel} > 6
bdd351
%global tmpfiles 1
bdd351
%else
bdd351
%global tmpfiles 0
bdd351
%endif
bdd351
bdd351
# Fedora had it in F17, but moving things around in already-released versions
bdd351
# is a bad idea, so pretend it didn't happen until F19.
bdd351
%if 0%{?fedora} > 18 || 0%{?rhel} > 6
bdd351
%global separate_usr 0
bdd351
%global nssdir %{_libdir}
bdd351
%global pamdir %{_libdir}/security
bdd351
%else
bdd351
%global separate_usr 1
bdd351
%global nssdir /%{_lib}
bdd351
%global pamdir /%{_lib}/security
bdd351
%endif
bdd351
bdd351
# For distributions that support it, build with RELRO
bdd351
%if (0%{?fedora} > 15 || 0%{?rhel} >= 7)
bdd351
%define _hardened_build 1
bdd351
%endif
bdd351
bdd351
Name:		nss-pam-ldapd
bdd351
Version:	0.8.13
602a75
Release:	22%{?dist}.1
bdd351
Summary:	An nsswitch module which uses directory servers
bdd351
Group:		System Environment/Base
bdd351
License:	LGPLv2+
bdd351
URL:		http://arthurdejong.org/nss-pam-ldapd/
bdd351
Source0:	http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-%{version}.tar.gz
bdd351
Source1:	http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-%{version}.tar.gz.sig
bdd351
Source2:	nslcd.init
bdd351
Source3:	nslcd.tmpfiles
bdd351
Source4:	nslcd.service
bdd351
Patch1:		nss-pam-ldapd-0.8.12-validname.patch
bdd351
Patch2:         nss-pam-ldapd-0.8.12-In-nslcd-log-EPIPE-only-on-debug-level.patch
bdd351
Patch3:		nss-pam-ldapd-0.8.12-uid-overflow.patch
bdd351
Patch4:		nss-pam-ldapd-0.8.12-Use-a-timeout-when-skipping-remaining-result-data.patch
bdd351
Patch5:		nss-pam-ldapd-0.8.12-fix-buffer-overflow-on-interrupted-read-thanks-John-.patch
c82b94
Patch6:		nss-pam-ldapd-rh-msgs-in-tests.patch
c82b94
Patch7:         nss-pam-ldapd-0.8.13-Fix-use-after-free-in-read_hostent-and-read_netent.patch
c82b94
Patch8:         nss-pam-ldapd-0.8.13-Use-right-h_errnop-for-retrying-with-larger-buffer.patch
20b078
Patch9:         nss-pam-ldapd-exitcode.patch
20b078
Patch10:        nss-pam-ldapd-0.8.12-str-cmp.patch
20b078
Patch11:        nss-pam-ldapd-0.8.13-avoid-lockout-on-bad-password.patch
20b078
Patch12:        nss-pam-ldapd-0.8.13-password-longer-than-64-chars.patch
20b078
Patch13:        nss-pam-ldapd-0.8.13-uri-man-fix.patch
20b078
Patch14:        nss-pam-ldapd-0.8.13-uid_formatting.patch
99ea7a
Patch15:        nss-pam-ldapd-bz1676861-Increase-size-of-config-file-token.patch
602a75
# rhbz#1612543 - Password expiration notification is not sent if the LDAP user doesn't have the objectClass shadowAccount.
db96ff
Patch16:        0016-Backport-of-request-and-parse-password-policy-contro.patch
db96ff
Patch17:        0017-Backport-of-passing-expiration-controls-back-to-PAM-.patch
db96ff
Patch18:        0018-Also-extract-policy-controls-on-BIND-failure.patch
db96ff
Patch19:        0019-Fix-password-policy-expiration-warnings.patch
db96ff
Patch20:        0020-Simplify-password-policy-message-handling.patch
db96ff
Patch21:        0021-backport-the-pam_authc_ppolicy-option.patch
db96ff
Patch22:        0022-Backport-the-human-readable-password-policy-reply.patch
db96ff
Patch23:        0023-Backport-typo-fixes-in-password-expiration-warnings.patch
db96ff
Patch24:        0024-Allow-logging-longer-lines.patch
db96ff
# rhbz#1618558 - AD authentication on RHEL using nslcd fails with error "pwdLastSet: password changed in the future"
db96ff
Patch25:        0025-Backport-of-Update-shadow.c-to-resolve-pwdLastSet-is.patch
602a75
# rhbz#1612543 - Password expiration notification is not sent if the LDAP user doesn't have the objectClass shadowAccount.
db96ff
Patch26:        0026-RHEL-specific-Disable-the-password-policies-unless-e.patch
db96ff
Patch27:        0027-RHEL-specific-document-the-ppolicy-option-default.patch
602a75
Patch28:        0028-increase-password-buffer-size.patch
c82b94
bdd351
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bdd351
BuildRequires:	openldap-devel, krb5-devel
bdd351
BuildRequires:	autoconf, automake
bdd351
BuildRequires:	pam-devel
bdd351
Obsoletes:	nss-ldapd < 0.7
bdd351
Provides:	nss-ldapd = %{version}-%{release}
bdd351
bdd351
# Obsolete PADL's nss_ldap
bdd351
Provides:       nss_ldap = 265-12
bdd351
Obsoletes:      nss_ldap < 265-11
bdd351
bdd351
%if 0%{?fedora} > 18 || 0%{?rhel} > 6
bdd351
# Obsolete PADL's pam_ldap
bdd351
Provides:       pam_ldap = 185-15
bdd351
Obsoletes:      pam_ldap < 185-15
bdd351
%global         build_pam_ldap 1
bdd351
%else
bdd351
# Pull in the pam_ldap module, which is its own package in F14 and later, to
bdd351
# keep upgrades from removing the module.  We used to disable nss-pam-ldapd's
bdd351
# own pam_ldap.so when it wasn't mature enough.
bdd351
Requires:       pam_ldap%{?_isa}
bdd351
%global         build_pam_ldap 0
bdd351
%endif
bdd351
bdd351
# Pull in nscd, which is recommended.
bdd351
Requires:	nscd
bdd351
%if %{sysvinit}
bdd351
Requires(post):		/sbin/ldconfig, chkconfig, grep, sed
bdd351
Requires(preun):	chkconfig, initscripts
bdd351
Requires(postun):	/sbin/ldconfig, initscripts
bdd351
%endif
bdd351
%if %{systemd}
bdd351
BuildRequires:	systemd-units
bdd351
Requires(post):	systemd-units
bdd351
Requires(preun):	systemd-units
bdd351
Requires(postun):	systemd-units
bdd351
Requires(post):	systemd-sysv
bdd351
%endif
bdd351
bdd351
%description
bdd351
The nss-pam-ldapd daemon, nslcd, uses a directory server to look up name
bdd351
service information (users, groups, etc.) on behalf of a lightweight
bdd351
nsswitch module.
bdd351
bdd351
%prep
bdd351
%setup -q
bdd351
%patch1 -p0 -b .validname
bdd351
%patch2 -p1 -b .epipe
bdd351
%patch3 -p1 -b .overflow
bdd351
%patch4 -p1 -b .skiptimeout
bdd351
%patch5 -p1 -b .readall
c82b94
%patch6 -p1 -b .test_msgs
c82b94
%patch7 -p1 -b .use_after_free
c82b94
%patch8 -p1 -b .errnop_val
20b078
%patch9 -p1 -b .exit_code
20b078
%patch10 -p1 -b .str_cmp
20b078
%patch11 -p1 -b .avoid_lockout_on_bad_password
20b078
%patch12 -p1 -b .long_password
20b078
%patch13 -p1 -b .uri_list
20b078
%patch14 -p1 -b .uid_formatting
99ea7a
%patch15 -p1 -b .config_token_size
db96ff
%patch16 -p1 -b .backport_policy_control_daemon
db96ff
%patch17 -p1 -b .backport_policy_control_pam
db96ff
%patch18 -p1 -b .ppolicy_bind_failure
db96ff
%patch19 -p1 -b .fix_expiration_warnings
db96ff
%patch20 -p1 -b .simplify_msg_handling
db96ff
%patch21 -p1 -b .ppolicy_option
db96ff
%patch22 -p1 -b .ppolicy_human_readable
db96ff
%patch23 -p1 -b .ppolicy_typos
db96ff
%patch24 -p1 -b .long_log_lines
db96ff
%patch25 -p1 -b .pwd_last_set
db96ff
%patch26 -p1 -b .ppolicy_default
db96ff
%patch27 -p1 -b .ppolicy_default_man
602a75
%patch28 -p1 -b .password_buffer_length
bdd351
autoreconf -f -i
bdd351
bdd351
%build
bdd351
CFLAGS="$RPM_OPT_FLAGS -fPIC" ; export CFLAGS
bdd351
%configure --libdir=%{nssdir} \
bdd351
%if %{build_pam_ldap}
bdd351
	--with-pam-seclib-dir=%{pamdir}
bdd351
%else
bdd351
	--disable-pam
bdd351
%endif
bdd351
make %{?_smp_mflags}
bdd351
bdd351
%check
bdd351
make check
bdd351
bdd351
%install
bdd351
rm -rf $RPM_BUILD_ROOT
bdd351
make install DESTDIR=$RPM_BUILD_ROOT
bdd351
mkdir -p $RPM_BUILD_ROOT/{%{_initddir},%{_libdir},%{_unitdir}}
bdd351
%if %{sysvinit}
bdd351
install -p -m755 %{SOURCE2} $RPM_BUILD_ROOT/%{_initddir}/nslcd
bdd351
%endif
bdd351
%if %{systemd}
bdd351
install -p -m644 %{SOURCE4} $RPM_BUILD_ROOT/%{_unitdir}/
bdd351
%endif
bdd351
bdd351
%if 0%{?fedora} > 13 || 0%{?rhel} > 5
bdd351
%if %{separate_usr}
bdd351
# Follow glibc's convention and provide a .so symlink so that people who know
bdd351
# what to expect can link directly with the module.
bdd351
if test %{_libdir} != /%{_lib} ; then
bdd351
	touch $RPM_BUILD_ROOT/rootfile
bdd351
	relroot=..
bdd351
	while ! test -r $RPM_BUILD_ROOT/%{_libdir}/$relroot/rootfile ; do
bdd351
		relroot=../$relroot
bdd351
	done
bdd351
	ln -s $relroot/%{_lib}/libnss_ldap.so.2 \
bdd351
		$RPM_BUILD_ROOT/%{_libdir}/libnss_ldap.so
bdd351
	rm $RPM_BUILD_ROOT/rootfile
bdd351
fi
bdd351
%else
bdd351
ln -s libnss_ldap.so.2 $RPM_BUILD_ROOT/%{nssdir}/libnss_ldap.so
bdd351
%endif
bdd351
%endif
bdd351
bdd351
sed -i -e 's,^uid.*,uid nslcd,g' -e 's,^gid.*,gid ldap,g' \
bdd351
$RPM_BUILD_ROOT/%{_sysconfdir}/nslcd.conf
bdd351
touch -r nslcd.conf $RPM_BUILD_ROOT/%{_sysconfdir}/nslcd.conf
bdd351
mkdir -p -m 0755 $RPM_BUILD_ROOT/var/run/nslcd
bdd351
%if %{tmpfiles}
20b078
mkdir -p -m 0755 $RPM_BUILD_ROOT/%{_tmpfilesdir}
20b078
install -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf
bdd351
%endif
bdd351
bdd351
%clean
bdd351
rm -rf $RPM_BUILD_ROOT
bdd351
bdd351
%files
bdd351
%defattr(-,root,root)
bdd351
%doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO
bdd351
%{_sbindir}/*
bdd351
%{nssdir}/*.so.*
bdd351
%if %{build_pam_ldap}
bdd351
%{pamdir}/pam_ldap.so
bdd351
%endif
bdd351
%{_mandir}/*/*
bdd351
%attr(0600,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/nslcd.conf
bdd351
%if %{tmpfiles}
20b078
%attr(0644,root,root) %config(noreplace) %{_tmpfilesdir}/%{name}.conf
bdd351
%endif
bdd351
%if %{sysvinit}
bdd351
%attr(0755,root,root) %{_initddir}/nslcd
bdd351
%endif
bdd351
%if %{systemd}
bdd351
%config(noreplace) %{_unitdir}/*
bdd351
%endif
bdd351
%attr(0755,nslcd,root) /var/run/nslcd
bdd351
%if 0%{?fedora} > 13 || 0%{?rhel} > 5
bdd351
# This would be the only thing in the -devel subpackage, so we include it.  It
bdd351
# will conflict with nss_ldap, so only include it for releases where pam_ldap is
bdd351
# its own package.
bdd351
/%{_libdir}/*.so
bdd351
%endif
bdd351
bdd351
%pre
bdd351
getent group  ldap  > /dev/null || \
bdd351
/usr/sbin/groupadd -r -g 55 ldap
bdd351
getent passwd nslcd > /dev/null || \
bdd351
/usr/sbin/useradd -r -g ldap -c 'LDAP Client User' \
bdd351
    -u 65 -d / -s /sbin/nologin nslcd 2> /dev/null || :
bdd351
bdd351
%post
bdd351
# The usual stuff.
bdd351
%if %{sysvinit}
bdd351
/sbin/chkconfig --add nslcd
bdd351
%endif
bdd351
%if %{systemd}
bdd351
%if %{systemd_macros}
bdd351
%systemd_post nslcd.service
bdd351
%else
bdd351
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
bdd351
%endif
bdd351
%endif
bdd351
/sbin/ldconfig
bdd351
# Import important non-default settings from nss_ldap or pam_ldap configuration
bdd351
# files, but only the first time this package is installed.
bdd351
comment="This comment prevents repeated auto-migration of settings."
bdd351
if test -s /etc/nss-ldapd.conf ; then
bdd351
	source=/etc/nss-ldapd.conf
bdd351
elif test -s /etc/nss_ldap.conf ; then
bdd351
	source=/etc/nss_ldap.conf
bdd351
elif test -s /etc/pam_ldap.conf ; then
bdd351
	source=/etc/pam_ldap.conf
bdd351
else
bdd351
	source=/etc/ldap.conf
bdd351
fi
bdd351
target=/etc/nslcd.conf
bdd351
if test "$1" -eq "1" && ! grep -q -F "# $comment" $target 2> /dev/null ; then
bdd351
	# Try to make sure we only do this the first time.
bdd351
	echo "# $comment" >> $target
bdd351
	if grep -E -q '^uri[[:blank:]]' $source 2> /dev/null ; then
bdd351
		# Comment out the packaged default host/uri and replace it...
bdd351
		sed -i -r -e 's,^((host|uri)[[:blank:]].*),# \1,g' $target
bdd351
		# ... with the uri.
bdd351
		grep -E '^uri[[:blank:]]' $source >> $target
bdd351
	elif grep -E -q '^host[[:blank:]]' $source 2> /dev/null ; then
bdd351
		# Comment out the packaged default host/uri and replace it...
bdd351
		sed -i -r -e 's,^((host|uri)[[:blank:]].*),# \1,g' $target
bdd351
		# ... with the "host" reformatted as a URI.
bdd351
		scheme=ldap
bdd351
		# check for 'ssl on', which means we want to use ldaps://
bdd351
		if grep -E -q '^ssl[[:blank:]]+on$' $source 2> /dev/null ; then
bdd351
			scheme=ldaps
bdd351
		fi
bdd351
		grep -E '^host[[:blank:]]' $source |\
bdd351
		sed -r -e "s,^host[[:blank:]](.*),uri ${scheme}://\1/,g" >> $target
bdd351
	fi
bdd351
	# Base doesn't require any special logic.
bdd351
	if grep -E -q '^base[[:blank:]]' $source 2> /dev/null ; then
bdd351
		# Comment out the packaged default base and replace it.
bdd351
		sed -i -r -e 's,^(base[[:blank:]].*),# \1,g' $target
bdd351
		grep -E '^base[[:blank:]]' $source >> $target
bdd351
	fi
bdd351
	# Pull in these settings, if they're set, directly.
bdd351
	grep -E '^(binddn|bindpw|port|scope|ssl|pagesize)[[:blank:]]' $source 2> /dev/null >> $target
bdd351
	grep -E '^(tls_)' $source 2> /dev/null >> $target
bdd351
	grep -E '^(timelimit|bind_timelimit|idle_timelimit)[[:blank:]]' $source 2> /dev/null >> $target
bdd351
fi
bdd351
# If this is the first time we're being installed, and the system is already
bdd351
# configured to use LDAP as a naming service, enable the daemon, but don't
bdd351
# start it since we can never know if that's a safe thing to do.  If this
bdd351
# is an upgrade, leave the user's runlevel selections alone.
bdd351
if [ "$1" -eq "1" ]; then
bdd351
	if grep -E -q '^USELDAP=yes$' /etc/sysconfig/authconfig 2> /dev/null ; then
bdd351
%if %{sysvinit}
bdd351
		/sbin/chkconfig nslcd on
bdd351
%endif
bdd351
%if %{systemd}
bdd351
		/bin/systemctl --no-reload enable nslcd.service >/dev/null 2>&1 ||:
bdd351
%endif
bdd351
	fi
bdd351
fi
bdd351
# Earlier versions of 0.7.6 of this package would have included both 'gid
bdd351
# nslcd' (a group which doesn't exist) and 'gid ldap' (which we ensure exists).
bdd351
# If we detect both, fix the configuration.
bdd351
if grep -q '^gid nslcd' $target ; then
bdd351
	if grep -q '^gid ldap' $target ; then
bdd351
		sed -i -e 's,^gid nslcd$,# gid nslcd,g' $target
bdd351
	fi
bdd351
fi
bdd351
# In 0.8.4, the name of the attribute which was expected to contain the DNs of
bdd351
# a group's members changed from "uniqueMember" to "member".  Change any
bdd351
# instances of "map group uniqueMember ..." to "map group member ...", unless
bdd351
# "member" is already being mapped, in which case attempting this would
bdd351
# probably just confuse things further.
bdd351
if grep -E -q "^[[:blank:]]*map[[:blank:]]+group[[:blank:]]+uniqueMember[[:blank:]]" $target ; then
bdd351
	if ! grep -E -q "^[[:blank:]]*map[[:blank:]]+group[[:blank:]]+member[[:blank:]]" $target ; then
bdd351
		sed -i -r -e "s,^[[:blank:]]*map[[:blank:]]+group[[:blank:]]+uniqueMember[[:blank:]](.*),map group member \1,g" $target
bdd351
	fi
bdd351
fi
bdd351
# Create the daemon's /var/run directory if it isn't there.
bdd351
if ! test -d /var/run/nslcd ; then
bdd351
	mkdir -p -m 0755 /var/run/nslcd
bdd351
fi
bdd351
exit 0
bdd351
bdd351
%preun
bdd351
if [ "$1" -eq "0" ]; then
bdd351
%if %{sysvinit}
bdd351
	/sbin/service nslcd stop >/dev/null 2>&1
bdd351
	/sbin/chkconfig --del nslcd
bdd351
%endif
bdd351
%if %{systemd}
bdd351
%if %{systemd_macros}
bdd351
%systemd_preun nslcd.service
bdd351
%else
bdd351
	/bin/systemctl --no-reload disable nslcd.service > /dev/null 2>&1 || :
bdd351
	/bin/systemctl stop nslcd.service > /dev/null 2>&1 || :
bdd351
%endif
bdd351
%endif
bdd351
fi
bdd351
exit 0
bdd351
bdd351
%postun
bdd351
/sbin/ldconfig
bdd351
%if %{sysvinit}
bdd351
if [ "$1" -ge "1" ]; then
bdd351
	/etc/rc.d/init.d/nslcd condrestart >/dev/null 2>&1
bdd351
fi
bdd351
%endif
bdd351
%if %{systemd}
bdd351
%if %{systemd_macros}
bdd351
%systemd_postun_with_restart nslcd.service
bdd351
%else
bdd351
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
bdd351
if [ "$1" -ge "1" ]; then
bdd351
	/bin/systemctl try-restart nslcd.service >/dev/null 2>&1
bdd351
fi
bdd351
%endif
bdd351
%endif
bdd351
exit 0
bdd351
bdd351
%if %{systemd}
bdd351
%triggerun -- nss-pam-ldapd < 0.7.13-6
bdd351
# Save the current service runlevel info, in case the user wants to apply
bdd351
# the enabled status manually later, by running
bdd351
#   "systemd-sysv-convert --apply nslcd".
bdd351
%{_bindir}/systemd-sysv-convert --save nslcd >/dev/null 2>&1 ||:
bdd351
# Do this because the old package's %%postun doesn't know we need to do it.
bdd351
/sbin/chkconfig --del nslcd >/dev/null 2>&1 || :
bdd351
# Do this because the old package's %%postun wouldn't have tried.
bdd351
/bin/systemctl try-restart nslcd.service >/dev/null 2>&1 || :
bdd351
exit 0
bdd351
%endif
bdd351
bdd351
%changelog
602a75
* Tue Mar 31 2020 Tomas Halman <thalman@redhat.com> - 0.8.13-22.1
602a75
- Extend password buffer length to allow modern hashes
602a75
- Resolves: rhbz#1819648 - Truncated shadowPasswords in nslcd 0.8.13
602a75
db96ff
* Tue Sep 17 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-22
db96ff
- Do not enable the password expiration controls by default
db96ff
- Document the option and its default
db96ff
- Resolves: rhbz#1612543 - Password expiration notification is not sent
db96ff
                           if the LDAP user doesn't have the objectClass
db96ff
                           shadowAccount.
db96ff
db96ff
* Fri Aug 30 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-21
db96ff
- Resolves: rhbz#1618558 - AD authentication on RHEL using nslcd fails
db96ff
                           with error "pwdLastSet: password changed in the
db96ff
                           future"
db96ff
db96ff
* Tue Aug 27 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-20
db96ff
- Resolves: rhbz#1714763 - [RHEL7] Correct startup dependencies for cgcred service for nslcd/LDAP clients
db96ff
db96ff
* Thu Aug 22 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-19
db96ff
- Resolves: rhbz#1559524 - nslcd only prints 200 characters in error message
db96ff
db96ff
* Wed Aug 21 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-18
db96ff
- Resolves: rhbz#1612543 - Password expiration notification is not sent if
db96ff
                           the LDAP user doesn't have the objectClass shadowAccount.
db96ff
db96ff
* Thu Mar 14 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-17
db96ff
- Resolves: rhbz#1676861 - nslcd fails to connect to ldap if fqdn is large
99ea7a
20b078
* Tue Oct 24 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-16
20b078
- Resolves: rhbz#1151675 - NSLCD WRAPS LDAP USER UIDNUMBER > 2^31 SO UID
20b078
                           IS WRONG (AND A NEGATIVE NUMBER)
20b078
20b078
* Tue Oct 24 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-15
20b078
- Resolves: rhbz#1204202 - fix doc to describe actual uri format in
20b078
                           nslcd.conf
20b078
20b078
* Tue Oct 24 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-14
20b078
- Resolves: rhbz#1288429 - /etc/tmpfiles.d/nss-pam-ldapd.conf shipped when
20b078
                           /etc/tmpfiles.d is reserved for the local
20b078
                           administrator
20b078
20b078
* Tue Oct 24 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-13
20b078
- Resolves: rhbz#1312297 - nslcd.service does not restart on failure
20b078
20b078
* Tue Oct 24 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-12
20b078
- Resolves: rhbz#1425790 - Unable to authenticate with 64 character password
20b078
                           using nss-pam-ldapd
20b078
20b078
* Tue Oct 24 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-11
20b078
- Resolves: rhbz#1497761 - Incorrect password tries to bind to all domain
20b078
                           controllers and locks user out
20b078
20b078
* Mon Oct 23 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-10
20b078
- Resolves: rhbz#1357493 - In RHEL 7, authentication failing when using
20b078
                           nslcd + pam_ldap where user has different in
20b078
                           nis/passwd and ldap.
20b078
20b078
* Mon Oct 23 2017 Jakub Hrozek <jhrozek@redhat.com> - 0.8.13-9
20b078
- Resolves: rhbz#1420576 - 'systemctl status nslcd' always returns FAILURE
20b078
                           status even though the service is stopped with
20b078
                           'systemctl stop nslcd
20b078
c82b94
* Wed Jan 29 2014 Jakub Hrozek <jhrozek@redhat.com>  0.8.13-8
c82b94
- Fix a potential use-after-free in nsswitch module
c82b94
- Resolves: rhbz#1036030 - New defect found in nss-pam-ldapd-0.8.13-4.el7
c82b94
c82b94
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.8.13-7
c82b94
- Mass rebuild 2014-01-24
c82b94
c82b94
* Mon Jan 20 2014 Jakub Hrozek <jhrozek@redhat.com>  0.8.13-6
c82b94
- Change the error messages the tests expect to those printed on RH based
c82b94
  systems
c82b94
- Resolves: rhbz#1044482
c82b94
c82b94
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.8.13-5
c82b94
- Mass rebuild 2013-12-27
c82b94
bdd351
* Fri Oct 18 2013 Nalin Dahyabhai <nalin@redhat.com>  0.8.13-4
bdd351
- compile nslcd/log.c with -fPIC instead of the current hardened-build default
bdd351
  of -fPIE, which doesn't seem to avoid relocations for its thread-local
bdd351
  variables on s390x (#1002834)
bdd351
bdd351
* Sat Oct 05 2013 Jakub Hrozek <jhrozek@redhat.com>  0.8.13-3
bdd351
- Suppress Broken Pipe messages when requesting a large groupo
bdd351
- Resolves: rhbz#1002829
bdd351
bdd351
* Wed Jul 31 2013 Jakub Hrozek <jhrozek@redhat.com>  0.8.13-2
bdd351
- Build with _hardened_build macro
bdd351
bdd351
* Mon May  6 2013 Nalin Dahyabhai <nalin@redhat.com> 0.8.13-1
bdd351
- update to 0.8.13
bdd351
- correct a syntax error in the fix that was added for #832706
bdd351
bdd351
* Tue Apr 30 2013 Nalin Dahyabhai <nalin@redhat.com> 0.8.12-4
bdd351
- in %%post, attempt to rewrite any instances of "map group uniqueMember ..."
bdd351
  to be "map group member ..." in nslcd.conf, as the attribute name changed
bdd351
  in 0.8.4 (via freeipa ticket #3589)
bdd351
bdd351
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.12-3
bdd351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bdd351
bdd351
* Fri Jan 18 2013 Nalin Dahyabhai <nalin@redhat.com> 0.8.12-2
bdd351
- drop local patch to make the client flush some more read buffers
bdd351
bdd351
* Fri Jan 18 2013 Nalin Dahyabhai <nalin@redhat.com> 0.8.12-1
bdd351
- update to 0.8.12 (#846793)
bdd351
- make building pam_ldap conditional on the targeted release
bdd351
- add "After=named.service dirsrv.target slapd.service" to nslcd.service,
bdd351
  to make sure that nslcd is started after them if they're to be started
bdd351
  on the local system (#832706)
bdd351
- alter the versioned Obsoletes: on pam_ldap to include the F18 package
bdd351
- use %%{_unitdir} when deciding where to put systemd configuration, based
bdd351
  on patch from Václav Pavlín (#850232)
bdd351
- use new systemd macros for scriptlet hooks, when available, based on
bdd351
  patch from Václav Pavlín (#850232)
bdd351
bdd351
* Sun Sep 09 2012 Jakub Hrozek <jhrozek@redhat.com> 0.7.17-1
bdd351
- new upstream release 0.7.17
bdd351
bdd351
* Sun Aug 05 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.7.16-5
bdd351
- Obsolete PADL's nss_ldap
bdd351
bdd351
* Sat Aug 04 2012 Jakub Hrozek <jhrozek@redhat.com> - 0.7.16-4
bdd351
- Build the PAM module, obsoletes PADL's pam-ldap (#856006)
bdd351
bdd351
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.16-3
bdd351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bdd351
bdd351
* Mon May 14 2012 Jakub Hrozek <jhrozek@redhat.com> 0.7.16-2
bdd351
- backport upstream revision r1659 related to broken pipe when
bdd351
  requesting a large group
bdd351
- use grep -E instead of egrep to avoid rpmlint warnings
bdd351
bdd351
* Sat Apr 28 2012 Jakub Hrozek <jhrozek@redhat.com> 0.7.16-1
bdd351
- new upstream release 0.7.16
bdd351
bdd351
* Thu Mar 15 2012 Jakub Hrozek <jhrozek@redhat.com> 0.7.15-2
bdd351
- Do not print "Broken Pipe" error message when requesting a large group
bdd351
bdd351
* Fri Mar 9 2012 Jakub Hrozek <jhrozek@redhat.com> 0.7.15-1
bdd351
- new upstream release 0.7.15
bdd351
bdd351
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.14-3
bdd351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bdd351
bdd351
* Fri Dec 16 2011 Jakub Hrozek <jhrozek@redhat.com> 0.7.14-2
bdd351
- Do not overflow large UID/GID values on 32bit architectures
bdd351
bdd351
* Mon Nov 28 2011 Nalin Dahyabhai <nalin@redhat.com>
bdd351
- use the same conditional test for deciding when to create the .so symlink as
bdd351
  we do later on for deciding when to include it in the package (#757004)
bdd351
bdd351
* Fri Sep 23 2011 Jakub Hrozek <jhrozek@redhat.com> 0.7.14-1
bdd351
- new upstream release 0.7.14
bdd351
- obsoletes nss-pam-ldapd-0.7.x-buffers.patch
bdd351
bdd351
* Wed Aug 24 2011 Nalin Dahyabhai <nalin@redhat.com> 0.7.13-8
bdd351
- include backported enhancement to take URIs in the form "dns:DOMAIN" in
bdd351
  addition to the already-implemented "dns" (#730309)
bdd351
bdd351
* Thu Jul 14 2011 Nalin Dahyabhai <nalin@redhat.com> 0.7.13-7
bdd351
- switch to only munging the contents of /etc/nslcd.conf on the very first
bdd351
  install (#706454)
bdd351
- make sure that we have enough space to parse any valid GID value when
bdd351
  parsing a user's primary GID (#716822)
bdd351
- backport support for the "validnames" option from SVN and use it to allow
bdd351
  parentheses characters by modifying the default setting (#690870), then
bdd351
  modify the default again to also allow shorter and shorter names to pass
bdd351
  muster (#706860)
bdd351
bdd351
* Wed Jul 13 2011 Nalin Dahyabhai <nalin@redhat.com> 0.7.13-6
bdd351
- convert to systemd-native startup (#716997)
bdd351
bdd351
* Mon Jun 13 2011 Nalin Dahyabhai <nalin@redhat.com> 0.7.13-5
bdd351
- change the file path Requires: we have for pam_ldap into a package name
bdd351
  Requires: (#601931)
bdd351
bdd351
* Wed Mar 30 2011 Nalin Dahyabhai <nalin@redhat.com> 0.7.13-4
bdd351
- tag nslcd.conf with %%verify(not md5 size mtime), since we always tweak
bdd351
  it in %%post (#692225)
bdd351
bdd351
* Tue Mar  1 2011 Nalin Dahyabhai <nalin@redhat.com> 0.7.13-3
bdd351
- add a tmpfiles configuration to ensure that /var/run/nslcd is created when
bdd351
  /var/run is completely empty at boot (#656643)
bdd351
bdd351
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.13-2
bdd351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bdd351
bdd351
* Mon Dec 13 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.13-1
bdd351
- update to 0.7.13
bdd351
bdd351
* Fri Oct 29 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.12-1
bdd351
- update to 0.7.12
bdd351
bdd351
* Fri Oct 15 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.11-1
bdd351
- update to 0.7.11
bdd351
bdd351
* Wed Sep 29 2010 jkeating - 0.7.10-2
bdd351
- Rebuilt for gcc bug 634757
bdd351
bdd351
* Fri Sep 24 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.10-1
bdd351
- update to 0.7.10
bdd351
bdd351
* Thu Sep 23 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.9-2
bdd351
- when creating /var/run/nslcd in the buildroot, specify that 0755 is a
bdd351
  permissions value and not another directory name (#636880)
bdd351
bdd351
* Mon Aug 30 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.9-1
bdd351
- update to 0.7.9
bdd351
bdd351
* Wed Aug 18 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.8-1
bdd351
- update to 0.7.8
bdd351
bdd351
* Wed Jul  7 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.7-1
bdd351
- update to 0.7.7
bdd351
bdd351
* Mon Jun 28 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.6-3
bdd351
- don't accidentally set multiple 'gid' settings in nslcd.conf, and try to
bdd351
  clean up after older versions of this package that did (#608314)
bdd351
bdd351
* Thu May 27 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.6-2
bdd351
- make inclusion of the .so symlink conditional on being on a sufficiently-
bdd351
  new Fedora where pam_ldap isn't part of the nss_ldap package, so having
bdd351
  this package conflict with nss_ldap doesn't require that pam_ldap be
bdd351
  removed (#596691)
bdd351
bdd351
* Thu May 27 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.6-1
bdd351
- update to 0.7.6
bdd351
bdd351
* Mon May 17 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.5-3
bdd351
- switch to the upstream patch for #592411
bdd351
bdd351
* Fri May 14 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.5-2
bdd351
- don't return an uninitialized buffer as the value for an optional attribute
bdd351
  that isn't present in the directory server entry (#592411)
bdd351
bdd351
* Fri May 14 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.5-1
bdd351
- update to 0.7.5
bdd351
bdd351
* Fri May 14 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.4-1
bdd351
- update to 0.7.4
bdd351
- stop trying to migrate retry timeout parameters from old ldap.conf files
bdd351
- add an explicit requires: on nscd to make sure it's at least available on
bdd351
  systems that are using nss-pam-ldapd; otherwise it's usually optional
bdd351
bdd351
* Tue Mar 23 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.3-1
bdd351
- update to 0.7.3
bdd351
bdd351
* Thu Feb 25 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.2-2
bdd351
- bump release for post-review commit
bdd351
bdd351
* Thu Feb 25 2010 Nalin Dahyabhai <nalin@redhat.com> 0.7.2-1
bdd351
- add comments about why we have a .so link at all, and not a -devel subpackage
bdd351
bdd351
* Wed Jan 13 2010 Nalin Dahyabhai <nalin@redhat.com>
bdd351
- obsolete/provides nss-ldapd
bdd351
- import configuration from nss-ldapd.conf, too
bdd351
bdd351
* Tue Jan 12 2010 Nalin Dahyabhai <nalin@redhat.com>
bdd351
- rename to nss-pam-ldapd
bdd351
- also check for import settings in /etc/nss_ldap.conf and /etc/pam_ldap.conf
bdd351
bdd351
* Thu Sep 24 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.11-2
bdd351
- rebuild
bdd351
602a75
* Wed Sep 16 2009 Nalin Dahyabhai <nalin@redhat.com>
bdd351
- apply Mitchell Berger's patch to clean up the init script, use %%{_initddir},
bdd351
  and correct the %%post so that it only thinks about turning on nslcd when
bdd351
  we're first being installed (#522947)
bdd351
- tell status() where the pidfile is when the init script is called for that
bdd351
bdd351
* Tue Sep  8 2009 Nalin Dahyabhai <nalin@redhat.com>
bdd351
- fix typo in a comment, capitalize the full name for "LDAP Client User" (more
bdd351
  from #516049)
bdd351
bdd351
* Wed Sep  2 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.11-1
bdd351
- update to 0.6.11
bdd351
bdd351
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.10-4
bdd351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bdd351
bdd351
* Thu Jun 18 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.10-3
bdd351
- update URL: and Source:
bdd351
bdd351
* Mon Jun 15 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.10-2
bdd351
- add and own /var/run/nslcd
bdd351
- convert hosts to uri during migration
bdd351
bdd351
* Thu Jun 11 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.10-1
bdd351
- update to 0.6.10
bdd351
bdd351
* Fri Apr 17 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.8-1
bdd351
- bump release number to 1 (part of #491767)
bdd351
- fix which group we check for during %%pre (part of #491767)
bdd351
bdd351
* Tue Mar 24 2009 Nalin Dahyabhai <nalin@redhat.com>
bdd351
- require chkconfig by package rather than path (Jussi Lehtola, part of #491767)
bdd351
bdd351
* Mon Mar 23 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.8-0.1
bdd351
- update to 0.6.8
bdd351
bdd351
* Mon Mar 23 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.7-0.1
bdd351
- start using a dedicated user
bdd351
bdd351
* Wed Mar 18 2009 Nalin Dahyabhai <nalin@redhat.com> 0.6.7-0.0
bdd351
- initial package (#445965)