rpms/nss_ldap/devel pam_ldap-184-broken-sasl-rebind.patch, NONE, 1.1 .cvsignore, 1.41, 1.42 nss_ldap.spec, 1.99, 1.100

Nalin Dahyabhai nalin at fedoraproject.org
Wed Oct 29 18:29:12 UTC 2008


Author: nalin

Update of /cvs/pkgs/rpms/nss_ldap/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20180

Modified Files:
	.cvsignore nss_ldap.spec 
Added Files:
	pam_ldap-184-broken-sasl-rebind.patch 
Log Message:
- pam_ldap: don't crash when we have to follow a referral while looking up
  information about the authenticating user and we're using SASL (patch from
  Paul P Komkoff Jr, #469061)


pam_ldap-184-broken-sasl-rebind.patch:

--- NEW FILE pam_ldap-184-broken-sasl-rebind.patch ---
diff --git a/pam_ldap.c b/pam_ldap.c
index 6de0ced..73e94f2 100644
--- a/pam_ldap.c
+++ b/pam_ldap.c
@@ -1683,7 +1683,7 @@ _rebind_proc (LDAP * ld, LDAP_CONST char *url, int request, ber_int_t msgid)
   userpw.bv_len = (userpw.bv_val != 0) ? strlen (userpw.bv_val) : 0;
 
   rc =
-    ldap_sasl_bind (session->ld, session->info->userdn, LDAP_SASL_SIMPLE,
+    ldap_sasl_bind (session->ld, who, LDAP_SASL_SIMPLE,
                     &userpw, psrvctrls, 0, &msgid);
   if ( rc != LDAP_SUCCESS ) {
     return rc;


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/nss_ldap/devel/.cvsignore,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- .cvsignore	16 Jul 2008 18:22:25 -0000	1.41
+++ .cvsignore	29 Oct 2008 18:28:42 -0000	1.42
@@ -28,3 +28,4 @@
 nss_ldap-257.tar.gz
 nss_ldap-259.tar.gz
 nss_ldap-261.tar.gz
+nss_ldap-262.tar.gz


Index: nss_ldap.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nss_ldap/devel/nss_ldap.spec,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- nss_ldap.spec	17 Oct 2008 19:37:55 -0000	1.99
+++ nss_ldap.spec	29 Oct 2008 18:28:42 -0000	1.100
@@ -2,7 +2,7 @@
 Summary: NSS library and PAM module for LDAP
 Name: nss_ldap
 Version: 261
-Release: 4%{?dist}
+Release: 5%{?dist}
 Source0: ftp://ftp.padl.com/pub/nss_ldap-%{version}.tar.gz
 Source1: ftp://ftp.padl.com/pub/pam_ldap-%{pam_ldap_version}.tar.gz
 Source3: nss_ldap.versions
@@ -24,6 +24,7 @@
 Patch16: pam_ldap-184-referral-passwd2.patch
 Patch17: nss_ldap-259-res_init.patch
 Patch18: nss_ldap-253-netgroups.patch
+Patch19: pam_ldap-184-broken-sasl-rebind.patch
 
 URL: http://www.padl.com/
 License: LGPLv2+
@@ -76,6 +77,7 @@
 %patch7 -p1 -b .manpointer
 %patch13 -p1 -b .exop-modify
 %patch16 -p1 -b .referral-passwd2
+%patch19 -p1 -b .broken-sasl-rebind
 autoreconf -f -i
 popd
 
@@ -190,6 +192,11 @@
 %doc pam_ldap-%{pam_ldap_version}/ns-pwd-policy.schema
 
 %changelog
+* Wed Oct 29 2008 Nalin Dahyabhai <nalin at redhat.com> - 261-5
+- pam_ldap: don't crash when we have to follow a referral while looking up
+  information about the authenticating user and we're using SASL (patch from
+  Paul P Komkoff Jr, #469061)
+
 * Fri Oct 17 2008 Nalin Dahyabhai <nalin at redhat.com> - 261-4
 - add missing local-to-network conversion on port numbers when looking up
   services (#450634)




More information about the scm-commits mailing list