forked from pool/nss-pam-ldapd
Accepting request 402943 from home:jubalh:branches:network:ldap
OBS-URL: https://build.opensuse.org/request/show/402943 OBS-URL: https://build.opensuse.org/package/show/network:ldap/nss-pam-ldapd?expand=0&rev=5
This commit is contained in:
parent
1c403b65d3
commit
9f727145af
@ -1,15 +0,0 @@
|
|||||||
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
|
|
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 17 11:59:06 UTC 2016 - mvetter@suse.com
|
||||||
|
|
||||||
|
- Explicityly disable nslcd-utils otherwise it will auto-enable them
|
||||||
|
if python is present. This can lead to different builds depending on
|
||||||
|
environment. And creation of files %{_datadir}/nslcd-utils/*.py?
|
||||||
|
%{_bindir}/chsh.ldap, %{_bindir}/getent.ldap
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 16 10:46:01 UTC 2016 - mvetter@suse.com
|
||||||
|
|
||||||
|
- Package all installed files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 16 09:17:21 UTC 2016 - mvetter@suse.com
|
||||||
|
|
||||||
|
- Create user and group nslcd.
|
||||||
|
- Remove nslcd-user-conf.dif:
|
||||||
|
It shouldn't be run as root.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 15 12:19:09 UTC 2016 - jengelh@inai.de
|
Wed Jun 15 12:19:09 UTC 2016 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ License: LGPL-2.1+
|
|||||||
Group: Productivity/Networking/LDAP/Clients
|
Group: Productivity/Networking/LDAP/Clients
|
||||||
Url: http://arthurdejong.org/nss-ldapd/
|
Url: http://arthurdejong.org/nss-ldapd/
|
||||||
PreReq: /bin/chmod
|
PreReq: /bin/chmod
|
||||||
|
PreReq: shadow
|
||||||
Conflicts: nss_ldap pam_ldap
|
Conflicts: nss_ldap pam_ldap
|
||||||
Obsoletes: nss-ldapd < %{version}-%{release}
|
Obsoletes: nss-ldapd < %{version}-%{release}
|
||||||
Provides: nss-ldapd = %{version}-%{release}
|
Provides: nss-ldapd = %{version}-%{release}
|
||||||
@ -36,7 +37,6 @@ Source: nss-pam-ldapd-%{version}.tar.gz
|
|||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
Source2: nslcd.service
|
Source2: nslcd.service
|
||||||
Source100: nss-pam-ldapd-rpmlintrc
|
Source100: nss-pam-ldapd-rpmlintrc
|
||||||
Patch0: nslcd-user-conf.dif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -53,14 +53,14 @@ connections, authentication, attribute translation, etc.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{?suse_update_config:%{suse_update_config -f}}
|
%{?suse_update_config:%{suse_update_config -f}}
|
||||||
autoreconf
|
autoreconf
|
||||||
export CPPFLAGS="-I/usr/include/sasl"
|
export CPPFLAGS="-I/usr/include/sasl"
|
||||||
%configure --libdir=/%{_lib} \
|
%configure --libdir=/%{_lib} \
|
||||||
--with-pam-seclib-dir=/%{_lib}/security
|
--with-pam-seclib-dir=/%{_lib}/security \
|
||||||
|
--disable-utils
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -70,6 +70,11 @@ install -p -m644 %{S:2} $RPM_BUILD_ROOT/%{_unitdir}/
|
|||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcnslcd
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcnslcd
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
# creating groupd and user nslcd
|
||||||
|
%{_bindir}/getent group nslcd >/dev/null || %{_sbindir}/groupadd -r nslcd 2>/dev/null
|
||||||
|
%{_bindir}/getent passwd nslcd >/dev/null || \
|
||||||
|
%{_sbindir}/useradd -r -g nslcd -d / -s /sbin/nologin \
|
||||||
|
-c "nslcd ldap user" nslcd
|
||||||
%service_add_pre nslcd.service
|
%service_add_pre nslcd.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Loading…
Reference in New Issue
Block a user