Skip site navigation (1)Skip section navigation (2)
Date:      31 Mar 2002 17:45:39 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Kris Kennaway <kris@obsecurity.org>, current@FreeBSD.ORG
Subject:   Re: Ports broken by OpenPAM
Message-ID:  <1017614739.266.117.camel@gyros.marcuscom.com>
In-Reply-To: <xzpg02or8tp.fsf@flood.ping.uio.no>
References:  <20020325095032.F47578-100000@shumai.marcuscom.com>  <xzpg02or8tp.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-NYZbZeDp03Nf/lxhjne+
Content-Type: multipart/mixed; boundary="=-qn1F44AkQ6viw60E58EG"


--=-qn1F44AkQ6viw60E58EG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2002-03-25 at 10:00, Dag-Erling Smorgrav wrote:
> Joe Clarke <marcus@marcuscom.com> writes:
> > Really?  I never received it.  Please send it again.  Thanks.
>=20
> Here's an updated (but untested) version.
>=20

I think I found why pam_ldap wouldn't work with OpenPAM on -CURRENT.=20
Attached is my proposed patch to OpenPAM.  With this applied, pam_ldap
works like a champ.

Joe

--=20
PGP Key: http://www.marucscom.com/pgp.asc

--=-qn1F44AkQ6viw60E58EG
Content-Disposition: attachment; filename=openpam.diff
Content-Type: text/plain; name=openpam.diff; charset=ISO8859-1
Content-Transfer-Encoding: quoted-printable

Index: lib/pam_set_data.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/contrib/openpam/lib/pam_set_data.c,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 pam_set_data.c
--- lib/pam_set_data.c	14 Mar 2002 20:42:06 -0000	1.1.1.4
+++ lib/pam_set_data.c	31 Mar 2002 22:43:21 -0000
@@ -77,8 +77,10 @@
 		free(data);
 		return (PAM_BUF_ERR);
 	}
+	dp->data =3D data;
+	dp->cleanup =3D cleanup
 	dp->next =3D pamh->module_data;
-	pamh->module_data =3D data;
+	pamh->module_data =3D dp;
 	return (PAM_SUCCESS);
 }
=20

--=-qn1F44AkQ6viw60E58EG--

--=-NYZbZeDp03Nf/lxhjne+
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEABECAAYFAjynkZMACgkQb2iPiv4Uz4dJkACfaOUew+WBRC/MKtXGA8uU69dl
k/0AnRMzftdjK+dZJzczDFvidvicQsKr
=AsK5
-----END PGP SIGNATURE-----

--=-NYZbZeDp03Nf/lxhjne+--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1017614739.266.117.camel>