Name: libpam_ldap Version: 186 Release: 1mamba Summary: Ldap interface library to PAM Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.padl.com/OSS/pam_ldap.html Source: http://www.padl.com/download/pam_ldap-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libopenldap-devel BuildRequires: pam-devel ## AUTOBUILDREQ-END Requires: pam BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The pam_ldap module provides the means for Solaris and Linux workstations to authenticate against LDAP directories, and to change their passwords in the directory. %prep [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %setup -q -n pam_ldap-%{version} %build %configure \ --libdir=/lib my_uid=`id -u` my_gid=`id -g` sed -i "s|-o root|-o $my_uid|" Makefile sed -i "s|-g root|-g $my_gid|" Makefile export PATH=$PATH:. %make %install make install DESTDIR=%{buildroot} rm %{buildroot}%{_sysconfdir}/ldap.conf %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) #%config(noreplace) %{_sysconfdir}/ldap.conf %attr(0755,root,root) /lib/security/pam_ldap.so %doc AUTHORS NEWS COPYING COPYING.LIB README ChangeLog pam.d %{_mandir}/man5/* %post if [ $1 -ge 1 ]; then # new install or update grep pam_ldap.so %{_sysconfdir}/pam.d/system-auth >/dev/null || sed -i -e '/%PAM-1.0/a\ auth sufficient pam_ldap.so use_first_pass' %{_sysconfdir}/pam.d/system-auth ldconfig fi exit 0 %postun if [ $1 -eq 0 ]; then # remove package sed -i "/auth.*sufficient.*pam_ldap.so/d" %{_sysconfdir}/pam.d/system-auth fi ldconfig exit 0 %changelog * Tue Nov 09 2010 Automatic Build System 186-1mamba - automatic update by autodist * Fri Feb 05 2010 Silvan Calarco 185-1mamba - update to 185 * Mon Jun 30 2008 Silvan Calarco 184-1mamba - update to 184 * Wed Dec 21 2005 Silvan Calarco 180-1qilnx - update to version 180 by autospec * Thu May 19 2005 Silvan Calarco 178-1qilnx - update to version 178 by autospec * Thu Dec 09 2004 Silvan Calarco 176-2qilnx - fixed make install to build as non-root user * Thu Sep 16 2004 Silvan Calarco 174-1qilnx - new version build * Thu May 27 2004 Silvan Calarco 169-1qilnx - new version build * Fri Jul 07 2003 Silvan Calarco 165-3qilnx - removed ldap.conf (is now in QiLinux main setup package) * Fri Jun 27 2003 Silvan Calarco 165-2qilnx - recompiled against gcc 3.2.3 - ldap.conf treated as configuration file (noreplace) * Tue Jun 03 2003 Silvan Calarco 165-1qilnx - first build