Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37561981
en ru br
Репозитории ALT
S:186-alt1
5.1: 184-alt2
4.1: 184-alt1
4.0: 182-alt2
3.0: 176-alt1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: pam_ldap

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%add_findprov_lib_path /%_lib/security

Name: pam_ldap
Version: 184
Release: alt1

Summary: PAM module for LDAP
Summary(ru_RU.KOI8-R): Модуль PAM для LDAP

License: LGPL
Group: System/Base
Url: http://www.padl.com/

Source0: ftp://ftp.padl.com/pub/%name-%version.tar.gz
Source1:%name-system_auth-alt

Patch0: %name-46-pam_console.patch
Patch1: %name-125-null.patch


Patch100: pam_ldap-180-debug_checkhost-gns.patch
Patch101: pam_ldap-182-debug_checkhost-st1.patch

# Automatically added by buildreq on Wed Aug 31 2005

BuildRequires: libldap-devel libpam-devel libsasl2-devel

%description
Pam_ldap is a module for Linux-PAM that supports password changes, V2
clients, Netscapes SSL, ypldapd, Netscape Directory Server password
policies, access authorization, crypted hashes, etc.

Install %name if you need to run LDAP access clients.

%description -l ru_RU.KOI8-R
Pam_ldap это модуль для Linux-PAM. Поддерживается изменение паролей, протокол LDAP версии 2, Netscapes SSL, ypldapd, Netscape Directory Server политики паролей, авторизация доступа, шифрованные хеши и т.д.

%prep
%setup -q
%patch0 -p1
##%patch1 -p1

%patch101 -p0

### We create example dir for place here examples for ALT Linux

mkdir alt-examples
install -p -m644 %SOURCE1 alt-examples/system_auth

%build
autoreconf -fisv

%configure \
--with-ldap-lib=openldap \
--with-ldap-conf-file=%_sysconfdir/pam_ldap.conf \
--with-ldap-secret-file=%_sysconfdir/pam_ldap.secret \
--libdir=/%_lib


%make_build
%make check

%install
mkdir -p $RPM_BUILD_ROOT{%_sysconfdir,/%_lib,%_libdir}


# Install the nsswitch module.

install -pD -m755 pam_ldap.so $RPM_BUILD_ROOT/%_lib/security/pam_ldap.so
# Install the default configuration file, but change the search bases to
# something generic.
sed -e 's/dc=padl/dc=example/g' ldap.conf >$RPM_BUILD_ROOT%_sysconfdir/pam_ldap.conf
sed -i 's/#timelimit 30/timelimit 5/g' $RPM_BUILD_ROOT%_sysconfdir/pam_ldap.conf
sed -i 's/#bind_timelimit 30/bind_timelimit 5/g' $RPM_BUILD_ROOT%_sysconfdir/pam_ldap.conf
chmod 644 $RPM_BUILD_ROOT%_sysconfdir/pam_ldap.conf
rm -f $RPM_BUILD_ROOT%_sysconfdir/nsswitch.ldap
rm -f $RPM_BUILD_ROOT%_sysconfdir/ldap.conf


%files
/%_lib/security/*
### This file is different from nss_ldap package! It's in TODO for next release
%config(noreplace) %_sysconfdir/pam_ldap.conf
%doc AUTHORS ChangeLog README pam.d ldap.conf
%doc alt-examples

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin