commit nss_ldap for openSUSE:Factory

2018-03-24 Thread root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2018-03-24 16:15:44

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is "nss_ldap"

Sat Mar 24 16:15:44 2018 rev:44 rq:590345 version:265

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2017-10-09 
19:49:03.137392173 +0200
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2018-03-24 
16:16:03.070046130 +0100
@@ -1,0 +2,5 @@
+Wed Mar 21 14:24:49 UTC 2018 - vark...@suse.com
+
+- bsc#1081768 missing nss_ldap and pam_ldap packages (plus dependencies)
+
+---



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.cXAB1H/_old  2018-03-24 16:16:03.790020177 +0100
+++ /var/tmp/diff_new_pack.cXAB1H/_new  2018-03-24 16:16:03.794020033 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nss_ldap
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,8 +22,8 @@
 Summary:NSS LDAP Module
 License:LGPL-2.1+
 Group:  Productivity/Networking/LDAP/Clients
-URL:http://www.padl.com/OSS/nss_ldap.html
-Source: http://www.padl.com/download/nss_ldap-%{version}.tar.gz
+Url:http://www.padl.com/OSS/nss_ldap.html
+Source: %{name}-%{version}.tar.gz
 Source1:README.SUSE
 Source2:baselibs.conf
 Source3:ldap.conf




commit nss_ldap for openSUSE:Factory

2017-10-09 Thread root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2017-10-09 19:48:05

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is "nss_ldap"

Mon Oct  9 19:48:05 2017 rev:43 rq:532829 version:265

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2017-01-25 
23:33:14.429191246 +0100
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2017-10-09 
19:49:03.137392173 +0200
@@ -1,0 +2,6 @@
+Mon Oct  9 15:19:27 UTC 2017 - dims...@opensuse.org
+
+- Add nss_ldap-perl-5.26.patch: Fix build with perl 5.26. $cwd is
+  no longer part of @INC.
+
+---

New:

  nss_ldap-perl-5.26.patch



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.RK13yD/_old  2017-10-09 19:49:04.053351917 +0200
+++ /var/tmp/diff_new_pack.RK13yD/_new  2017-10-09 19:49:04.053351917 +0200
@@ -22,7 +22,7 @@
 Summary:NSS LDAP Module
 License:LGPL-2.1+
 Group:  Productivity/Networking/LDAP/Clients
-Url:http://www.padl.com/OSS/nss_ldap.html
+URL:http://www.padl.com/OSS/nss_ldap.html
 Source: http://www.padl.com/download/nss_ldap-%{version}.tar.gz
 Source1:README.SUSE
 Source2:baselibs.conf
@@ -45,6 +45,7 @@
 Patch11:0011-When-invoked-via-glibc-the-input-buffer-is-enlarged.patch
 # PATCH-FIX-TO-UPSTREAM -- is not opensuse specific
 Patch12:reproducible.patch
+Patch13:nss_ldap-perl-5.26.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  db-devel
@@ -55,7 +56,6 @@
 Requires(pre):  /bin/mktemp
 Requires(pre):  coreutils
 Requires(pre):  sed
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 Nss_ldap is a glibc NSS module that allows X.500 and LDAP directory
@@ -78,6 +78,7 @@
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
+%patch13 -p1
 cp -v %{SOURCE1} .
 
 %build

++ nss_ldap-perl-5.26.patch ++
Index: nss_ldap-265/vers_string
===
--- nss_ldap-265.orig/vers_string
+++ nss_ldap-265/vers_string
@@ -5,7 +5,7 @@
 # Implementation of SGS vers_string which uses CVSVersionInfo.txt.
 
 use POSIX qw(strftime);
-require "cvslib.pl";
+require "./cvslib.pl";
 
 $OUTFILE = (-f "version.h") ? "version.h" : "vers.c";
 $AUTHOR = `whoami`;



commit nss_ldap for openSUSE:Factory

2017-01-25 Thread root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2017-01-25 23:33:12

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is "nss_ldap"

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2016-08-29 
15:43:03.0 +0200
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2017-01-25 
23:33:14.429191246 +0100
@@ -1,0 +2,5 @@
+Mon Jan 23 09:35:26 UTC 2017 - bwiedem...@suse.com
+
+- Add reproducible.patch to allow for reproducible builds
+
+---

New:

  reproducible.patch



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.79U9Gi/_old  2017-01-25 23:33:15.085092406 +0100
+++ /var/tmp/diff_new_pack.79U9Gi/_new  2017-01-25 23:33:15.085092406 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nss_ldap
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -43,6 +43,8 @@
 Patch9: 0009-fix-for-BUG-412-don-t-close-nested-contexts.patch
 Patch10:0010-initialize-context-in-_nss_ldap_getbyname.patch
 Patch11:0011-When-invoked-via-glibc-the-input-buffer-is-enlarged.patch
+# PATCH-FIX-TO-UPSTREAM -- is not opensuse specific
+Patch12:reproducible.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  db-devel
@@ -75,6 +77,7 @@
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
 cp -v %{SOURCE1} .
 
 %build

++ reproducible.patch ++
could not be sent upstream. http://bugzilla.padl.com is broken
and support at padl.com returns User unknown

make build reproducible

see https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/ for the definition 
of this variable

Index: nss_ldap-265/vers_string
===
--- nss_ldap-265.orig/vers_string
+++ nss_ldap-265/vers_string
@@ -4,6 +4,7 @@
 #
 # Implementation of SGS vers_string which uses CVSVersionInfo.txt.
 
+use POSIX qw(strftime);
 require "cvslib.pl";
 
 $OUTFILE = (-f "version.h") ? "version.h" : "vers.c";
@@ -13,7 +14,8 @@ $HEADER = '$Id: vers_string,v 2.1 2009/1
 if ($ENV{'PROGRAM'}) { $PROGRAM = $ENV{'PROGRAM'}; }
 
 chop($AUTHOR);
-chop($DATE=`date -u`);
+$AUTHOR = "reproducible" if $ENV{SOURCE_DATE_EPOCH};
+$DATE = strftime("%Y-%m-%d %T", gmtime($ENV{SOURCE_DATE_EPOCH} || time));
 chop($CWD=`pwd`);
 
 ($PROJECT, $VERSION) = split(/\-/, ());



commit nss_ldap for openSUSE:Factory

2016-08-29 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2016-08-29 15:40:09

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is "nss_ldap"

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2015-09-08 
17:44:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2016-08-29 
15:43:03.0 +0200
@@ -1,0 +2,23 @@
+Fri Aug 26 09:49:48 UTC 2016 - h...@suse.com
+
+- Relabel patches:
+nss_ldap.dif -> -nss_ldap.dif
+group-utf8.dif -> 0001-group-utf8.dif
+nss_ldap-ldapconn-leak-bug418.dif ->
+   0002-nss_ldap-ldapconn-leak-bug418.dif
+nss_ldap-getent-retry.dif -> 0003-nss_ldap-getent-retry.dif
+nss_ldap-getent-skip-invalid-uidgidnumber.dif ->
+  0004-nss_ldap-getent-skip-invalid-uidgidnumber.dif
+nss_ldap-265-glibc-2.16.patch -> 0005-nss_ldap-265-glibc-2.16.patch
+nss_ldap-265-pthread.patch -> 0006-nss_ldap-265-pthread.patch
+bnc#842120.dif -> 0007-bnc#842120.dif
+bnc#866763.dif -> 0008-bnc#866763.dif
+- Add patches:
+  * Resolve a connection management issue in oneshot operation mode &
+Fix bad variable initialisation (bsc#93)
+0009-fix-for-BUG-412-don-t-close-nested-contexts.patch
+0010-initialize-context-in-_nss_ldap_getbyname.patch
+  * Fix buffer management issue between glibc and LDAP (bsc#986858)
+0011-When-invoked-via-glibc-the-input-buffer-is-enlarged.patch
+
+---

Old:

  bnc#842120.dif
  bnc#866763.dif
  group-utf8.dif
  nss_ldap-265-glibc-2.16.patch
  nss_ldap-265-pthread.patch
  nss_ldap-getent-retry.dif
  nss_ldap-getent-skip-invalid-uidgidnumber.dif
  nss_ldap-ldapconn-leak-bug418.dif
  nss_ldap.dif

New:

  -nss_ldap.dif
  0001-group-utf8.dif
  0002-nss_ldap-ldapconn-leak-bug418.dif
  0003-nss_ldap-getent-retry.dif
  0004-nss_ldap-getent-skip-invalid-uidgidnumber.dif
  0005-nss_ldap-265-glibc-2.16.patch
  0006-nss_ldap-265-pthread.patch
  0007-bnc#842120.dif
  0008-bnc#866763.dif
  0009-fix-for-BUG-412-don-t-close-nested-contexts.patch
  0010-initialize-context-in-_nss_ldap_getbyname.patch
  0011-When-invoked-via-glibc-the-input-buffer-is-enlarged.patch



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.AfjDmS/_old  2016-08-29 15:43:07.0 +0200
+++ /var/tmp/diff_new_pack.AfjDmS/_new  2016-08-29 15:43:07.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nss_ldap
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,19 +27,22 @@
 Source1:README.SUSE
 Source2:baselibs.conf
 Source3:ldap.conf
-Patch0: nss_ldap.dif
-Patch1: group-utf8.dif
-Patch2: nss_ldap-ldapconn-leak-bug418.dif
-Patch3: nss_ldap-getent-retry.dif
-Patch4: nss_ldap-getent-skip-invalid-uidgidnumber.dif
+Patch0: -nss_ldap.dif
+Patch1: 0001-group-utf8.dif
+Patch2: 0002-nss_ldap-ldapconn-leak-bug418.dif
+Patch3: 0003-nss_ldap-getent-retry.dif
+Patch4: 0004-nss_ldap-getent-skip-invalid-uidgidnumber.dif
 # Upstream issue with glibc-2.16 http://bugzilla.padl.com/show_bug.cgi?id=445
-Patch5: nss_ldap-265-glibc-2.16.patch
+Patch5: 0005-nss_ldap-265-glibc-2.16.patch
 # Fix also issue with threads on glibc-2.16 
http://bugzilla.padl.com/show_bug.cgi?id=446
-Patch6: nss_ldap-265-pthread.patch
+Patch6: 0006-nss_ldap-265-pthread.patch
 # SIGPIPE handling atfork
-Patch7: bnc#842120.dif
+Patch7: 0007-bnc#842120.dif
 # reverse ipv6 host lookups fail when ldap is used
-Patch8: bnc#866763.dif
+Patch8: 0008-bnc#866763.dif
+Patch9: 0009-fix-for-BUG-412-don-t-close-nested-contexts.patch
+Patch10:0010-initialize-context-in-_nss_ldap_getbyname.patch
+Patch11:0011-When-invoked-via-glibc-the-input-buffer-is-enlarged.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  db-devel
@@ -69,6 +72,9 @@
 %patch6
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
 cp -v %{SOURCE1} .
 
 %build

++ -nss_ldap.dif ++
Index: nss_ldap-265/ldap-nss.c
===
--- nss_ldap-265.orig/ldap-nss.c
+++ nss_ldap-265/ldap-nss.c
@@ -2640,7 +2640,8 @@ do_with_reconnect (const char *base, int
   * If a soft reconnect policy is specified, then do not
   * 

commit nss_ldap for openSUSE:Factory

2015-09-08 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2015-09-08 17:39:32

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is "nss_ldap"

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2014-11-10 
17:29:09.0 +0100
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2015-09-08 
17:44:06.0 +0200
@@ -1,0 +2,11 @@
+Wed Sep  2 11:01:16 UTC 2015 - mplus...@suse.com
+
+- Use %configure macro
+- Remove unrecognized configure options
+  * --enable-schema-mapping,
+  * --enable-xad
+- Use url for source
+- Update dependencies on autotools
+- Use Requires(pre) in spec file
+
+---

Old:

  nss_ldap-265.tar.bz2

New:

  nss_ldap-265.tar.gz



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.3TU06i/_old  2015-09-08 17:44:07.0 +0200
+++ /var/tmp/diff_new_pack.3TU06i/_new  2015-09-08 17:44:07.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nss_ldap
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,27 +17,17 @@
 
 
 Name:   nss_ldap
-BuildRequires:  automake
-BuildRequires:  db-devel
-BuildRequires:  krb5-devel
-BuildRequires:  openldap2-devel
-PreReq: sed coreutils /usr/bin/grep /bin/mktemp
-# bug437293
-%ifarch ppc64
-Obsoletes:  nss_ldap-64bit
-%endif
-#
 Version:265
 Release:0
 Summary:NSS LDAP Module
 License:LGPL-2.1+
 Group:  Productivity/Networking/LDAP/Clients
 Url:http://www.padl.com/OSS/nss_ldap.html
-Source: nss_ldap-%{version}.tar.bz2
+Source: http://www.padl.com/download/nss_ldap-%{version}.tar.gz
 Source1:README.SUSE
 Source2:baselibs.conf
 Source3:ldap.conf
-Patch:  nss_ldap.dif
+Patch0: nss_ldap.dif
 Patch1: group-utf8.dif
 Patch2: nss_ldap-ldapconn-leak-bug418.dif
 Patch3: nss_ldap-getent-retry.dif
@@ -50,6 +40,16 @@
 Patch7: bnc#842120.dif
 # reverse ipv6 host lookups fail when ldap is used
 Patch8: bnc#866763.dif
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  db-devel
+BuildRequires:  krb5-devel
+BuildRequires:  libtool
+BuildRequires:  openldap2-devel
+Requires(pre):  %{_bindir}/grep
+Requires(pre):  /bin/mktemp
+Requires(pre):  coreutils
+Requires(pre):  sed
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -60,7 +60,7 @@
 
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
@@ -69,48 +69,39 @@
 %patch6
 %patch7 -p1
 %patch8 -p1
-cp -v %{S:1} .
+cp -v %{SOURCE1} .
 
 %build
 autoreconf -fiv
-CFLAGS="$RPM_OPT_FLAGS" \
-CPPFLAGS="-I/usr/include/sasl -DINET6" \
-./configure --prefix=/usr \
---mandir=%{_mandir} \
+CPPFLAGS="-I/usr/include/sasl -DINET6"
+%configure \
--enable-rfc2307bis \
-   --enable-schema-mapping \
-   --enable-xad \
--enable-paged-results \
 --enable-configurable-krb5-ccname-gssapi \
-   --libdir=%{_libdir} \
-   --sysconfdir=/etc \
-   --x-libraries=/usr/X11R6/%{_lib}
-make
+   --x-libraries=%{_prefix}/X11R6/%{_lib}
+make %{?_smp_mflags}
 
 %install
-mkdir -p $RPM_BUILD_ROOT/%{_lib}
-mkdir -p $RPM_BUILD_ROOT%{_libdir}
-install -m 755 nss_ldap.so $RPM_BUILD_ROOT/%{_lib}/libnss_ldap.so.2
-install -d 755 $RPM_BUILD_ROOT/%{_sysconfdir}/
-install -m 644 %{S:3} $RPM_BUILD_ROOT/%{_sysconfdir}/
-make DESTDIR=$RPM_BUILD_ROOT install-man
-
-%clean
-rm -fr $RPM_BUILD_ROOT
+mkdir -p %{buildroot}/%{_lib}
+mkdir -p %{buildroot}%{_libdir}
+install -m 755 nss_ldap.so %{buildroot}/%{_lib}/libnss_ldap.so.2
+install -d 755 %{buildroot}/%{_sysconfdir}/
+install -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/
+make DESTDIR=%{buildroot} install-man
 
 %pre
 # If we have a /etc/ldap.conf.rpmsave, and no /etc/ldap.conf,
 # backup the rpmsave file and use that later instead of our
 # own version. This fixes the problem that the file was moved
 # from pwdutils to nss_ldap and else the changes would go lost.
-if [ ! -e /etc/ldap.conf -a -f /etc/ldap.conf.rpmsave ]; then
-   cp -p /etc/ldap.conf.rpmsave /etc/...ldap.conf.pwdutils
+if [ ! -e %{_sysconfdir}/ldap.conf -a -f %{_sysconfdir}/ldap.conf.rpmsave ]; 
then
+   cp -p %{_sysconfdir}/ldap.conf.rpmsave %{_sysconfdir}/...ldap.conf.pwdutils
 fi
 
 %post
 /sbin/ldconfig
 

commit nss_ldap for openSUSE:Factory

2014-11-10 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2014-11-10 17:28:49

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is nss_ldap

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2014-09-06 
16:59:50.0 +0200
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2014-11-10 
17:29:09.0 +0100
@@ -1,0 +2,6 @@
+Mon Nov  3 13:01:12 UTC 2014 - dims...@opensuse.org
+
+- Call autoreconf -fiv in place of autoreconf: ensure that
+  autoreconf is successful in newer versions too.
+
+---



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.oqtrZO/_old  2014-11-10 17:29:10.0 +0100
+++ /var/tmp/diff_new_pack.oqtrZO/_new  2014-11-10 17:29:10.0 +0100
@@ -72,7 +72,7 @@
 cp -v %{S:1} .
 
 %build
-autoreconf
+autoreconf -fiv
 CFLAGS=$RPM_OPT_FLAGS \
 CPPFLAGS=-I/usr/include/sasl -DINET6 \
 ./configure --prefix=/usr \

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nss_ldap for openSUSE:Factory

2014-09-06 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2014-09-06 12:18:38

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is nss_ldap

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2014-08-05 
21:11:29.0 +0200
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2014-09-06 
16:59:50.0 +0200
@@ -2 +2,17 @@
-Fri Aug  1 20:13:18 UTC 2014 - vark...@suse.com
+Fri Aug 15 11:28:44 CEST 2014 - ku...@suse.de
+
+- Save old ldap.conf from pwdutils to not lose ldap configuration
+  [bnc#891585]
+
+---
+Fri Aug  8 09:49:19 UTC 2014 - vark...@suse.com
+
+- added bnc#842120.dif  bnc#866763.dif
+- bnc#879368 - Bug in ldap_nss prevents Nomachine NX server to start 
+- bnc#866763 - reverse ipv6 host lookups fail when ldap is used
+  * bnc#866763.dif
+- bnc#842120 - nss_ldap crashes when running atfork() hooks
+  * bnc#842120.dif
+
+---
+Fri Aug  1 20:10:52 UTC 2014 - vark...@suse.com

New:

  bnc#842120.dif
  bnc#866763.dif



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.FGzntK/_old  2014-09-06 16:59:51.0 +0200
+++ /var/tmp/diff_new_pack.FGzntK/_new  2014-09-06 16:59:51.0 +0200
@@ -46,6 +46,10 @@
 Patch5: nss_ldap-265-glibc-2.16.patch
 # Fix also issue with threads on glibc-2.16 
http://bugzilla.padl.com/show_bug.cgi?id=446
 Patch6: nss_ldap-265-pthread.patch
+# SIGPIPE handling atfork
+Patch7: bnc#842120.dif
+# reverse ipv6 host lookups fail when ldap is used
+Patch8: bnc#866763.dif
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -63,6 +67,8 @@
 %patch4 -p1
 %patch5
 %patch6
+%patch7 -p1
+%patch8 -p1
 cp -v %{S:1} .
 
 %build
@@ -92,8 +98,19 @@
 %clean
 rm -fr $RPM_BUILD_ROOT
 
+%pre
+# If we have a /etc/ldap.conf.rpmsave, and no /etc/ldap.conf,
+# backup the rpmsave file and use that later instead of our
+# own version. This fixes the problem that the file was moved
+# from pwdutils to nss_ldap and else the changes would go lost.
+if [ ! -e /etc/ldap.conf -a -f /etc/ldap.conf.rpmsave ]; then
+   cp -p /etc/ldap.conf.rpmsave /etc/...ldap.conf.pwdutils
+fi
+
 %post
 /sbin/ldconfig
+# If we backuped ldap.conf, move now the backup in place
+test -f /etc/...ldap.conf.pwdutils  mv /etc/...ldap.conf.pwdutils 
/etc/ldap.conf ||:
 
 %postun -p /sbin/ldconfig
 

++ bnc#842120.dif ++
Index: nss_ldap-262/ldap-nss.c
===
--- nss_ldap-262.orig/ldap-nss.c
+++ nss_ldap-262/ldap-nss.c
@@ -121,6 +121,7 @@ extern int ldap_ld_free (LDAP * ld, int
 #endif /* HAVE_LDAP_LD_FREE */
 
 NSS_LDAP_DEFINE_LOCK (__lock);
+NSS_LDAP_DEFINE_LOCK (__child_atfork_lock);
 
 /*
  * the configuration is read by the first call to do_open().
@@ -532,11 +533,35 @@ do_atfork_parent (void)
   debug (== do_atfork_parent);
 }
 
+static int
+_nss_ldap_need_deferred_close_no_unbind;
+
+static void
+do_deferred_close_no_unbind (void)
+{
+  sigset_t unblock, mask;
+  debug (== do_deferred_close_no_unbind);
+
+  sigemptyset(unblock);
+  sigaddset(unblock, SIGPIPE);
+  sigprocmask(SIG_UNBLOCK, unblock, mask);
+  do_close_no_unbind ();
+  sigprocmask(SIG_SETMASK, mask, NULL);
+  debug (== do_deferred_close_no_unbind);
+}
+
 static void
 do_atfork_child (void)
 {
+  int sd = -1;
+
   debug (== do_atfork_child);
-  do_close_no_unbind ();
+
+  NSS_LDAP_LOCK (__child_atfork_lock);
+  _nss_ldap_need_deferred_close_no_unbind = 1;
+  if (do_get_our_socket (sd))
+fcntl (sd, F_SETFD, FD_CLOEXEC);
+  NSS_LDAP_UNLOCK (__child_atfork_lock);
   _nss_ldap_leave ();
   debug (== do_atfork_child);
 }
@@ -600,6 +625,14 @@ _nss_ldap_enter (void)
   __sigpipe_handler = signal (SIGPIPE, SIG_IGN);
 #endif /* HAVE_SIGSET */
 
+  NSS_LDAP_LOCK (__child_atfork_lock);
+  if (_nss_ldap_need_deferred_close_no_unbind)
+{
+  do_deferred_close_no_unbind ();
+  _nss_ldap_need_deferred_close_no_unbind = 0;
+}
+  NSS_LDAP_UNLOCK (__child_atfork_lock);
+
   debug (== _nss_ldap_enter);
 }
 
@@ -823,6 +856,8 @@ do_get_our_socket(int *sd)
   peernamelen);
}
 }
+  else
+isOurSocket = 0;
 #endif /* HAVE_LDAPSSL_CLIENT_INIT */
   return isOurSocket;
 }
++ bnc#866763.dif ++
diff -Naur nss_ldap-265/ldap-hosts.c nss_ldap-265-new/ldap-hosts.c
--- nss_ldap-265/ldap-hosts.c   2009-11-06 11:28:08.0 +0100
+++ nss_ldap-265-new/ldap-hosts.c   2014-03-05 19:28:43.377519356 +0100
@@ -354,14 +357,26 @@
 {
   

commit nss_ldap for openSUSE:Factory

2014-08-05 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2014-08-05 21:11:19

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is nss_ldap

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2013-03-18 
07:09:24.0 +0100
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2014-08-05 
21:11:29.0 +0200
@@ -1,0 +2,5 @@
+Fri Aug  1 20:13:18 UTC 2014 - vark...@suse.com
+
+- bnc#889015 - Package 'nss_ldap' contains 'SuSE' spelling in a filename 
and/or SPEC file 
+
+---

Old:

  README.SuSE

New:

  README.SUSE



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.CdZtuT/_old  2014-08-05 21:11:30.0 +0200
+++ /var/tmp/diff_new_pack.CdZtuT/_new  2014-08-05 21:11:30.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nss_ldap
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -34,7 +34,7 @@
 Group:  Productivity/Networking/LDAP/Clients
 Url:http://www.padl.com/OSS/nss_ldap.html
 Source: nss_ldap-%{version}.tar.bz2
-Source1:README.SuSE
+Source1:README.SUSE
 Source2:baselibs.conf
 Source3:ldap.conf
 Patch:  nss_ldap.dif
@@ -100,7 +100,7 @@
 %files
 %defattr(-,root,root)
 %config(noreplace) %{_sysconfdir}/ldap.conf
-%doc ANNOUNCE AUTHORS COPYING ChangeLog NEWS README README.SuSE nsswitch.ldap 
ldap.conf doc/README.paged
+%doc ANNOUNCE AUTHORS COPYING ChangeLog NEWS README README.SUSE nsswitch.ldap 
ldap.conf doc/README.paged
 /%{_lib}/libnss_ldap.so.2
 %doc %{_mandir}/man5/nss_ldap.5*
 

++ README.SUSE ++
To use the nss_ldap module, you need to do the following:

Edit /etc/nsswitch.conf and add the ldap service, or copy
/usr/share/doc/packages/nss_ldap/nsswitch.ldap to /etc/nsswitch.config
and edit it.

If you don't have an /etc/ldap.conf file from another packages, copy
/usr/doc/packages/nss_ldap/ldap.conf into the /etc/ directory and edit this
configuration file.

You can also use the YaST2 ldap module to configure a LDAP client.

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nss_ldap for openSUSE:Factory

2013-03-18 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2013-03-18 07:09:23

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is nss_ldap, Maintainer is rha...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2013-01-29 
14:26:11.0 +0100
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2013-03-18 
07:09:24.0 +0100
@@ -1,0 +2,7 @@
+Fri Mar 15 10:17:59 UTC 2013 - rha...@suse.com
+
+- ldap.conf is now part of nss_ldap since pwdutils was dropped
+  (bnc#809245)
+- removed no longer needed %post scriptlet
+
+---

New:

  ldap.conf



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.qn9CA7/_old  2013-03-18 07:09:26.0 +0100
+++ /var/tmp/diff_new_pack.qn9CA7/_new  2013-03-18 07:09:26.0 +0100
@@ -16,7 +16,6 @@
 #
 
 
-
 Name:   nss_ldap
 BuildRequires:  automake
 BuildRequires:  db-devel
@@ -37,6 +36,7 @@
 Source: nss_ldap-%{version}.tar.bz2
 Source1:README.SuSE
 Source2:baselibs.conf
+Source3:ldap.conf
 Patch:  nss_ldap.dif
 Patch1: group-utf8.dif
 Patch2: nss_ldap-ldapconn-leak-bug418.dif
@@ -85,6 +85,8 @@
 mkdir -p $RPM_BUILD_ROOT/%{_lib}
 mkdir -p $RPM_BUILD_ROOT%{_libdir}
 install -m 755 nss_ldap.so $RPM_BUILD_ROOT/%{_lib}/libnss_ldap.so.2
+install -d 755 $RPM_BUILD_ROOT/%{_sysconfdir}/
+install -m 644 %{S:3} $RPM_BUILD_ROOT/%{_sysconfdir}/
 make DESTDIR=$RPM_BUILD_ROOT install-man
 
 %clean
@@ -92,26 +94,12 @@
 
 %post
 /sbin/ldconfig
-if [ ${1:-0} -gt 1 ] ; then
-if ! /usr/bin/grep -q ^bind_policy /etc/ldap.conf; then
-if grep -q -e ^#[[:space:]]\*bind_policy /etc/ldap.conf; then
-LDAP_ORIG=`mktemp /tmp/ldap.conf.XX`
-cp /etc/ldap.conf $LDAP_ORIG
-sed -e 's;^#[[:space:]]*bind_policy.*$;bind_policy soft;' \
-$LDAP_ORIG  /etc/ldap.conf
-rm $LDAP_ORIG
-else
-echo -e \n\
-#Don't try forever if the LDAP server is not reacheable\n\
-bind_policy soft  /etc/ldap.conf
-fi
-fi
-fi
 
 %postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
+%config(noreplace) %{_sysconfdir}/ldap.conf
 %doc ANNOUNCE AUTHORS COPYING ChangeLog NEWS README README.SuSE nsswitch.ldap 
ldap.conf doc/README.paged
 /%{_lib}/libnss_ldap.so.2
 %doc %{_mandir}/man5/nss_ldap.5*

++ ldap.conf ++
#
# This is the configuration file for the LDAP nameservice
# switch library and the LDAP PAM module.
#

# Your LDAP server. Must be resolvable without using LDAP.
# Multiple hosts may be specified, each separated by a 
# space. How long nss_ldap takes to failover depends on
# whether your LDAP client library supports configurable
# network or connect timeouts (see bind_timelimit).
host 127.0.0.1

# The distinguished name of the search base.
base dc=example,dc=com

# Another way to specify your LDAP server is to provide an
# uri with the server name. This allows to use
# Unix Domain Sockets to connect to a local LDAP Server.
#uri ldap://127.0.0.1/
#uri ldaps://127.0.0.1/   
#uri ldapi://%2fvar%2frun%2fldapi_sock/
# Note: %2f encodes the '/' used as directory separator

# The LDAP version to use (defaults to 3
# if supported by client library)
#ldap_version 3

# The distinguished name to bind to the server with.
# Optional: default is to bind anonymously.
#binddn cn=proxyuser,dc=example,dc=com

# The credentials to bind with. 
# Optional: default is no credential.
#bindpw secret

# The distinguished name to bind to the server with
# if the effective user ID is root. Password is
# stored in /etc/ldap.secret (mode 600)
#rootbinddn cn=manager,dc=example,dc=com

# The port.
# Optional: default is 389.
#port 389

# The search scope.
#scope sub
#scope one
#scope base

# Search timelimit
#timelimit 30

# Bind/connect timelimit
#bind_timelimit 30

# Reconnect policy:
#  hard_open: reconnect to DSA with exponential backoff if
# opening connection failed
#  hard_init: reconnect to DSA with exponential backoff if
# initializing connection failed
#  hard:  alias for hard_open
#  soft:  return immediately on server failure
bind_policy soft

# Connection policy:
#  persist:   DSA connections are kept open (default)
#  oneshot:   DSA connections destroyed after request
#nss_connect_policy persist

# Idle timelimit; client will close connections
# (nss_ldap only) if the server has not been contacted
# for the number of seconds specified below.
#idle_timelimit 3600

# Use paged rseults
#nss_paged_results yes

# Pagesize: when 

commit nss_ldap for openSUSE:Factory

2013-01-29 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2013-01-29 14:26:10

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is nss_ldap, Maintainer is rha...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2012-11-05 
15:00:12.0 +0100
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2013-01-29 
14:26:11.0 +0100
@@ -1,0 +2,8 @@
+Mon Jan 28 12:46:47 UTC 2013 - tchva...@suse.com
+
+- Fix segfault when using with glibc-2.16 and linking with pthread.
+  * adds patches:
+nss_ldap-265-glibc-2.16.patch (PADL-Bug#445)
+nss_ldap-265-pthread.patch (PADL-Bug#446)
+
+---

New:

  nss_ldap-265-glibc-2.16.patch
  nss_ldap-265-pthread.patch



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.vIRa6L/_old  2013-01-29 14:26:12.0 +0100
+++ /var/tmp/diff_new_pack.vIRa6L/_new  2013-01-29 14:26:12.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nss_ldap
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# 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
@@ -16,6 +16,7 @@
 #
 
 
+
 Name:   nss_ldap
 BuildRequires:  automake
 BuildRequires:  db-devel
@@ -41,6 +42,10 @@
 Patch2: nss_ldap-ldapconn-leak-bug418.dif
 Patch3: nss_ldap-getent-retry.dif
 Patch4: nss_ldap-getent-skip-invalid-uidgidnumber.dif
+# Upstream issue with glibc-2.16 http://bugzilla.padl.com/show_bug.cgi?id=445
+Patch5: nss_ldap-265-glibc-2.16.patch
+# Fix also issue with threads on glibc-2.16 
http://bugzilla.padl.com/show_bug.cgi?id=446
+Patch6: nss_ldap-265-pthread.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -56,6 +61,8 @@
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5
+%patch6
 cp -v %{S:1} .
 
 %build

++ nss_ldap-265-glibc-2.16.patch ++
--- ldap-nss.c.orig 2012-10-17 12:32:03.908730283 +
+++ ldap-nss.c  2012-10-17 12:38:10.906767283 +
@@ -148,7 +148,7 @@
  */
 static ldap_session_t __session = { NULL, NULL, 0, LS_UNINITIALIZED };
 
-#if defined(HAVE_PTHREAD_ATFORK) || defined(HAVE_LIBC_LOCK_H) || 
defined(HAVE_BITS_LIBC_LOCK_H)
+#if defined(HAVE_PTHREAD_ATFORK) || defined(HAVE___LIBC_ONCE)
 static pthread_once_t __once = PTHREAD_ONCE_INIT;
 #endif
 
@@ -168,7 +168,7 @@
 static int __ssl_initialized = 0;
 #endif /* HAVE_LDAPSSL_CLIENT_INIT */
 
-#if defined(HAVE_PTHREAD_ATFORK) || defined(HAVE_LIBC_LOCK_H) || 
defined(HAVE_BITS_LIBC_LOCK_H)
+#if defined(HAVE_PTHREAD_ATFORK) || defined(HAVE___LIBC_ONCE)
 /*
  * Prepare for fork(); lock mutex.
  */
@@ -519,7 +519,7 @@
 }
 #endif /* HAVE_NSSWITCH_H */
 
-#if defined(HAVE_PTHREAD_ATFORK) || defined(HAVE_LIBC_LOCK_H) || 
defined(HAVE_BITS_LIBC_LOCK_H)
+#if defined(HAVE_PTHREAD_ATFORK) || defined(HAVE___LIBC_ONCE)
 static void
 do_atfork_prepare (void)
 {
@@ -553,7 +553,7 @@
 #ifdef HAVE_PTHREAD_ATFORK
   (void) pthread_atfork (do_atfork_prepare, do_atfork_parent,
 do_atfork_child);
-#elif defined(HAVE_LIBC_LOCK_H) || defined(HAVE_BITS_LIBC_LOCK_H)
+#elif defined(HAVE___LIBC_ATFORK)
   (void) __libc_atfork (do_atfork_prepare, do_atfork_parent, do_atfork_child);
 #endif
 
@@ -1119,7 +1119,7 @@
 }
 
 #ifndef HAVE_PTHREAD_ATFORK
-#if defined(HAVE_LIBC_LOCK_H) || defined(HAVE_BITS_LIBC_LOCK_H)
+#if defined(HAVE___LIBC_ONCE)
   /*
* This bogosity is necessary because Linux uses different
* PIDs for different threads (like IRIX, which we don't
@@ -1151,7 +1151,7 @@
 pid = -1;  /* linked against libpthreads, don't care */
 #else
   pid = getpid ();
-#endif /* HAVE_LIBC_LOCK_H || HAVE_BITS_LIBC_LOCK_H */
+#endif /* HAVE___LIBC_ONCE */
 #endif /* HAVE_PTHREAD_ATFORK */
 
   euid = geteuid ();
@@ -1161,7 +1161,7 @@
   syslog (LOG_DEBUG,
  nss_ldap: __session.ls_state=%d, __session.ls_conn=%p, __euid=%i, 
euid=%i,
  __session.ls_state, __session.ls_conn, __euid, euid);
-#elif defined(HAVE_LIBC_LOCK_H) || defined(HAVE_BITS_LIBC_LOCK_H)
+#elif defined(HAVE___LIBC_ONCE)
   syslog (LOG_DEBUG,
  nss_ldap: libpthreads=%s, __session.ls_state=%d, 
__session.ls_conn=%p, __pid=%i, pid=%i, __euid=%i, euid=%i,
  ((__pthread_once == NULL || __pthread_atfork == NULL) ? FALSE : 
TRUE),
@@ -1185,11 +1185,11 @@
 }
   else
 #ifndef HAVE_PTHREAD_ATFORK
-#if defined(HAVE_LIBC_LOCK_H) || defined(HAVE_BITS_LIBC_LOCK_H)
+#if 

commit nss_ldap for openSUSE:Factory

2012-11-05 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2012-11-05 15:00:10

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is nss_ldap, Maintainer is rha...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2012-01-09 
11:16:09.0 +0100
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2012-11-05 
15:00:12.0 +0100
@@ -1,0 +2,5 @@
+Thu Oct 18 19:58:57 UTC 2012 - co...@suse.com
+
+- fix build with possix correctly set (added to nss_ldap.dif)
+
+---



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.3UUibh/_old  2012-11-05 15:00:15.0 +0100
+++ /var/tmp/diff_new_pack.3UUibh/_new  2012-11-05 15:00:15.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nss_ldap
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -49,12 +49,6 @@
 hosts, networks, protocol, users, RPCs, services, and shadow passwords
 (instead of or in addition to using flat files or NIS).
 
-
-
-Authors:
-
-Luke Howard lu...@padl.com
-
 %prep
 %setup -q
 %patch -p1

++ nss_ldap.dif ++
--- /var/tmp/diff_new_pack.3UUibh/_old  2012-11-05 15:00:15.0 +0100
+++ /var/tmp/diff_new_pack.3UUibh/_new  2012-11-05 15:00:15.0 +0100
@@ -12,3 +12,14 @@
hard = 0;
  
  ++tries;
+Index: nss_ldap-265/Makefile.am
+===
+--- nss_ldap-265.orig/Makefile.am
 nss_ldap-265/Makefile.am
+@@ -109,5 +109,5 @@ uninstall-local:
+   @$(NORMAL_UNINSTALL)
+ 
+ vers.c: $(top_srcdir)/CVSVersionInfo.txt
+-  CVSVERSIONDIR=$(top_srcdir) vers_string -v
++  CVSVERSIONDIR=$(top_srcdir) ./vers_string -v
+ 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nss_ldap for openSUSE:Factory

2012-01-09 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2012-01-09 11:16:06

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is nss_ldap, Maintainer is rha...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2011-10-28 
19:59:32.0 +0200
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2012-01-09 
11:16:09.0 +0100
@@ -1,0 +2,10 @@
+Wed Dec 21 10:31:41 UTC 2011 - co...@suse.com
+
+- remove call to suse_update_config (very old work around)
+
+---
+Fri Dec  2 15:56:43 UTC 2011 - co...@suse.com
+
+- add automake as buildrequire to avoid implicit dependency
+
+---



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.6y7tXX/_old  2012-01-09 11:16:10.0 +0100
+++ /var/tmp/diff_new_pack.6y7tXX/_new  2012-01-09 11:16:10.0 +0100
@@ -15,23 +15,23 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:   nss_ldap
-BuildRequires:  db-devel krb5-devel openldap2-devel
-License:LGPLv2.1+
-Group:  Productivity/Networking/LDAP/Clients
+BuildRequires:  automake
+BuildRequires:  db-devel
+BuildRequires:  krb5-devel
+BuildRequires:  openldap2-devel
 PreReq: sed coreutils /usr/bin/grep /bin/mktemp
-AutoReqProv:on
 # bug437293
 %ifarch ppc64
 Obsoletes:  nss_ldap-64bit
 %endif
 #
 Version:265
-Release:7
+Release:0
 Summary:NSS LDAP Module
+License:LGPL-2.1+
+Group:  Productivity/Networking/LDAP/Clients
 Url:http://www.padl.com/OSS/nss_ldap.html
 Source: nss_ldap-%{version}.tar.bz2
 Source1:README.SuSE
@@ -65,7 +65,6 @@
 cp -v %{S:1} .
 
 %build
-%{?suse_update_config:%{suse_update_config -f}}
 autoreconf
 CFLAGS=$RPM_OPT_FLAGS \
 CPPFLAGS=-I/usr/include/sasl -DINET6 \

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nss_ldap for openSUSE:Factory

2011-10-28 Thread h_root
Hello community,

here is the log from the commit of package nss_ldap for openSUSE:Factory 
checked in at 2011-10-28 19:38:40

Comparing /work/SRC/openSUSE:Factory/nss_ldap (Old)
 and  /work/SRC/openSUSE:Factory/.nss_ldap.new (New)


Package is nss_ldap, Maintainer is rha...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/nss_ldap/nss_ldap.changes2011-09-23 
02:14:49.0 +0200
+++ /work/SRC/openSUSE:Factory/.nss_ldap.new/nss_ldap.changes   2011-10-28 
19:59:32.0 +0200
@@ -1,0 +2,6 @@
+Fri Oct 28 10:19:49 UTC 2011 - rha...@suse.de
+
+- Entries with invalid (or too large) uidNumber/gidNumber attributes
+  could crash nss_ldap (bnc#726393)
+
+---

New:

  nss_ldap-getent-skip-invalid-uidgidnumber.dif



Other differences:
--
++ nss_ldap.spec ++
--- /var/tmp/diff_new_pack.Z5SO5G/_old  2011-10-28 19:59:55.0 +0200
+++ /var/tmp/diff_new_pack.Z5SO5G/_new  2011-10-28 19:59:55.0 +0200
@@ -40,6 +40,7 @@
 Patch1: group-utf8.dif
 Patch2: nss_ldap-ldapconn-leak-bug418.dif
 Patch3: nss_ldap-getent-retry.dif
+Patch4: nss_ldap-getent-skip-invalid-uidgidnumber.dif
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -60,6 +61,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 cp -v %{S:1} .
 
 %build

++ nss_ldap-getent-skip-invalid-uidgidnumber.dif ++
Index: nss_ldap-265/ldap-pwd.c
===
--- nss_ldap-265.orig/ldap-pwd.c
+++ nss_ldap-265/ldap-pwd.c
@@ -121,7 +121,17 @@ _nss_ldap_parse_pw (LDAPMessage * e,
   stat =
 _nss_ldap_assign_attrval (e, AT (uidNumber), uid, tmp, tmplen);
   if (stat != NSS_SUCCESS)
-return stat;
+{
+  /*
+   * uidNumber is to large to fit into the fixed size tmpbuf buffer,
+   * handle this as if it was a Schema violation to skip this entry,
+   * such large ids aren't valid
+   */
+  if ( stat == NSS_TRYAGAIN )
+   stat = NSS_NOTFOUND;
+  return stat;
+}
+
   if (*uid == '\0')
 pw-pw_uid = UID_NOBODY;
   else
@@ -138,7 +148,16 @@ _nss_ldap_parse_pw (LDAPMessage * e,
 _nss_ldap_assign_attrval (e, ATM (LM_PASSWD, gidNumber), gid, tmp,
   tmplen);
   if (stat != NSS_SUCCESS)
-return stat;
+{
+  /*
+   * gidNumber is to large to fit into the fixed size tmpbuf buffer,
+   * handle this as if it was a Schema violation to skip this entry,
+   * such large ids aren't valid
+   */
+  if ( stat == NSS_TRYAGAIN )
+   stat = NSS_NOTFOUND;
+  return stat;
+}
   if (*gid == '\0')
 pw-pw_gid = GID_NOBODY;
   else
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org