1
0
forked from pool/nss-pam-ldapd

Accepting request 294676 from home:ailin_nemui:nss_pam_ldapd

I think this ldap NSS which is superior and more recent than the PADL nss_ldap should be part of opensuse. It used to be until 12.3 but I'm not sure why it was removed. I'm no expert packager but with a little help I will see what I can do!

OBS-URL: https://build.opensuse.org/request/show/294676
OBS-URL: https://build.opensuse.org/package/show/network:ldap/nss-pam-ldapd?expand=0&rev=1
This commit is contained in:
Howard Guo 2015-09-14 08:01:34 +00:00 committed by Git OBS Bridge
commit 36ef1d0060
9 changed files with 179 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

2
baselibs.conf Normal file
View File

@ -0,0 +1,2 @@
nss-pam-ldapd
supplements "packageand(nss-pam-ldapd:glibc-<targettype>)"

15
nslcd-user-conf.dif Normal file
View File

@ -0,0 +1,15 @@
Index: nss-pam-ldapd-0.7.12/nslcd.conf
===================================================================
--- nss-pam-ldapd-0.7.12.orig/nslcd.conf
+++ nss-pam-ldapd-0.7.12/nslcd.conf
@@ -5,8 +5,8 @@
# See the manual page nslcd.conf(5) for more information.
# The user and group nslcd should run as.
-uid nslcd
-gid nslcd
+#uid nslcd
+#gid nslcd
# The uri pointing to the LDAP server to use for name lookups.
# Multiple entries may be specified. The address that is used

11
nslcd.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Naming services LDAP client daemon.
After=syslog.target network.target named.service dirsrv.target slapd.service
[Service]
Type=forking
PIDFile=/var/run/nslcd/nslcd.pid
ExecStart=/usr/sbin/nslcd
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:49080058d85f60213c1b661a899ffe44e30770b5034e5a6ce48486a8d92bee6c
size 750988

5
nss-pam-ldapd-rpmlintrc Normal file
View File

@ -0,0 +1,5 @@
# Silence rpmlint's warning regarding the shared library policy as
# splitting of a library package for libnss_ldap.so.2 doesn't make much
# sense. The NSS Module doesn't do anything useful with out the nslcd
# daemon
addFilter("shlib-policy-name-error .*")

6
nss-pam-ldapd.changes Normal file
View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Sun Apr 5 00:01:47 UTC 2015 - ailin.nemui@gmail.com
- new upload to the build service after discontinuation in opensuse
12.3

113
nss-pam-ldapd.spec Normal file
View File

@ -0,0 +1,113 @@
#
# spec file for package nss-pam-ldapd
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: nss-pam-ldapd
BuildRequires: automake
BuildRequires: krb5-devel
BuildRequires: openldap2-devel
BuildRequires: pam-devel
BuildRequires: systemd-rpm-macros
Version: 0.9.5
Release: 0
Summary: NSS module and daemon for using LDAP as a naming service
License: LGPL-2.1+
Group: Productivity/Networking/LDAP/Clients
Url: http://arthurdejong.org/nss-ldapd/
PreReq: /bin/chmod
Conflicts: nss_ldap pam_ldap
Obsoletes: nss-ldapd < %{version}-%{release}
Provides: nss-ldapd = %{version}-%{release}
Source: nss-pam-ldapd-%{version}.tar.gz
Source1: baselibs.conf
Source2: nslcd.service
Source100: nss-pam-ldapd-rpmlintrc
Patch0: nslcd-user-conf.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is nss-pam-ldapd which provides a Name Service Switch (NSS)
module that allows your LDAP server to provide user account, group,
host name, alias, netgroup, and basically any other information that
you would normally get from /etc flat files or NIS. It also provides a
Pluggable Authentication Module (PAM) to do authentication to an LDAP
server.
This is implemented using thin NSS and PAM modules which delegate to a
dedicated service (nslcd) that queries the LDAP server with persistent
connections, authentication, attribute translation, etc.
Authors:
--------
Luke Howard <lukeh@padl.com>
West Consulting <info@west.nl>
Arthur de Jong <arthur@arthurdejong.org>
%prep
%setup -q
%patch0 -p1
%build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf
CFLAGS="$RPM_OPT_FLAGS" \
CPPFLAGS="-I/usr/include/sasl" \
./configure --prefix=/usr \
--mandir=%{_mandir} \
--libdir=/%{_lib} \
--with-pam-seclib-dir=/%{_lib}/security \
--sysconfdir=/etc
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}/
install -p -m644 %{S:2} $RPM_BUILD_ROOT/%{_unitdir}/
%clean
rm -fr $RPM_BUILD_ROOT
%pre
%service_add_pre nslcd.service
%post
/sbin/ldconfig
%service_add_post nslcd.service
%preun
%stop_on_removal nslcd
%service_del_preun nslcd.service
%postun
/sbin/ldconfig
%service_del_postun nslcd.service
%restart_on_update nslcd
%insserv_cleanup
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
/%{_lib}/libnss_ldap.so.2
/%{_lib}/security/pam_ldap.so
%doc %{_mandir}/man5/*
%doc %{_mandir}/man8/*
%config(noreplace) %attr(640,root,root) /etc/nslcd.conf
/%{_unitdir}/nslcd.service
/usr/sbin/nslcd
%changelog