Mailinglist Archive: opensuse-commit (1426 mails)

< Previous Next >
commit nss_ldap
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 01 Mar 2007 22:08:32 +0100
  • Message-id: <20070301210833.1E79A678180@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package nss_ldap
checked in at Thu Mar 1 22:08:32 CET 2007.

--------
--- nss_ldap/nss_ldap.changes 2007-01-30 14:13:34.000000000 +0100
+++ /mounts/work_src_done/STABLE/nss_ldap/nss_ldap.changes 2007-03-01 15:03:16.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Mar 1 15:00:54 CET 2007 - rhafer@xxxxxxx
+
+- nss_ldap could crash when no host or uri is configured in
+ /etc/ldap.conf or DNS (Bug #248594)
+
+-------------------------------------------------------------------

New:
----
nss_ldap-empty-host-assert.dif

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nss_ldap.spec ++++++
--- /var/tmp/diff_new_pack.OR7347/_old 2007-03-01 22:07:49.000000000 +0100
+++ /var/tmp/diff_new_pack.OR7347/_new 2007-03-01 22:07:49.000000000 +0100
@@ -17,7 +17,7 @@
PreReq: /usr/bin/grep /usr/bin/sed /bin/mktemp
Autoreqprov: on
Version: 254
-Release: 2
+Release: 6
Summary: NSS LDAP Module
URL: http://www.padl.com/OSS/nss_ldap.html
Source: nss_ldap-%{version}.tar.bz2
@@ -26,6 +26,7 @@
Patch1: sigset.dif
Patch2: group-utf8.dif
Patch3: nss_ldap-parse_ldap_port.dif
+Patch4: nss_ldap-empty-host-assert.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build

%description
@@ -46,6 +47,7 @@
%patch1
%patch2 -p1
%patch3
+%patch4
cp -v %{S:1} .

%build
@@ -103,7 +105,10 @@
%{_libdir}/libnss_ldap.so
%doc %{_mandir}/man5/nss_ldap.5*

-%changelog -n nss_ldap
+%changelog
+* Thu Mar 01 2007 - rhafer@xxxxxxx
+- nss_ldap could crash when no host or uri is configured in
+ /etc/ldap.conf or DNS (Bug #248594)
* Tue Jan 30 2007 - rhafer@xxxxxxx
- Apply the "port" directive correctly if present in ldap.conf
(Bug #224879)

++++++ nss_ldap-empty-host-assert.dif ++++++
diff -ru ldap-nss.c nss_ldap-254/ldap-nss.c
--- ldap-nss.c 2006-12-18 09:12:56.000000000 +0100
+++ ldap-nss.c 2007-03-03 04:48:58.000000000 +0100
@@ -1247,11 +1247,16 @@
{
/* Config was read but no host information specified; try DNS */
stat = _nss_ldap_mergeconfigfromdns (__config, &configbufp, &configbuflen);
+ if (stat != NSS_SUCCESS)
+ {
+ syslog (LOG_ERR, "nss_ldap: could get LDAP server (neither from config nor through DNS)");
+ }
}

if (stat != NSS_SUCCESS)
{
debug ("<== do_init (failed to read config)");
+ __config = NULL;
return NSS_UNAVAIL;
}
}


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread