From owner-freebsd-ports@FreeBSD.ORG Wed Jun 22 18:13:48 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C16016A41C for ; Wed, 22 Jun 2005 18:13:48 +0000 (GMT) (envelope-from ahze@ahze.net) Received: from imf16aec.mail.bellsouth.net (imf16aec.mail.bellsouth.net [205.152.59.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id C864D43D4C for ; Wed, 22 Jun 2005 18:13:47 +0000 (GMT) (envelope-from ahze@ahze.net) Received: from ibm56aec.bellsouth.net ([68.209.163.3]) by imf16aec.mail.bellsouth.net with ESMTP id <20050622181347.ZSHZ885.imf16aec.mail.bellsouth.net@ibm56aec.bellsouth.net> for ; Wed, 22 Jun 2005 14:13:47 -0400 Received: from [192.168.1.5] (really [68.209.163.3]) by ibm56aec.bellsouth.net with ESMTP id <20050622181346.WNFB11957.ibm56aec.bellsouth.net@[192.168.1.5]>; Wed, 22 Jun 2005 14:13:46 -0400 In-Reply-To: <66624106@srv.sem.ipt.ru> References: <66624106@srv.sem.ipt.ru> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <81034115-1E0E-4DDE-AAF9-7790C795986A@ahze.net> Content-Transfer-Encoding: 7bit From: Michael Johnson Date: Wed, 22 Jun 2005 14:13:41 -0400 To: Boris Samorodov X-Mailer: Apple Mail (2.730) Cc: freebsd-ports@freebsd.org Subject: Re: net/py-ldap2 and SASL X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 18:13:48 -0000 On Jun 22, 2005, at 12:49 PM, Boris Samorodov wrote: > Hi! > > > I'm going to file a PR to get use of SASL libraries with net/py-ldap2 > port. But before doing it I have a couple of questions. > > Can anybody recall why was SASL support abandoned at the port? Were > there problems with building or using? Please resend patch as an attachment > > Next patch was good for me: > > --- Makefile.orig Wed Jun 22 17:20:17 2005 > +++ Makefile Wed Jun 22 19:43:19 2005 > @@ -6,6 +6,7 @@ > > PORTNAME= ldap2 > PORTVERSION= 2.0.8 > +PORTREVISON= 1 > CATEGORIES= net > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR= python-ldap > @@ -20,10 +21,56 @@ > USE_OPENLDAP= yes > USE_REINPLACE= yes > > + > +.include > + > + > +.if defined(WANT_OPENLDAP_SASL) && !defined(WITHOUT_SASL) > +WITH_SASL= yes > +.endif > + > + > +.if defined(WITH_SASL) > +LIB_DEPENDS= ldap_r-2.2.7:${PORTSDIR}/net/openldap22-sasl-client > +.endif > + > + > +pre-everything:: > + @${ECHO} ${WANT_OPENLDAP_SASL}, ${WITHOUT_SASL}, ${WITH_SASL} > + @${ECHO} > "=============================================================" > + @${ECHO} > + @${ECHO} "You can build ${PKGNAME} with the following options:" > + @${ECHO} > +.if defined(WANT_OPENLDAP_SASL) > + @${ECHO} "WITHOUT_SASL without (Cyrus) SASL2 support" > +.else > + @${ECHO} "WITH_SASL with (Cyrus) SASL2 support" > + > +.endif > + @${ECHO} > + @${ECHO} > "=============================================================" > + @${ECHO} > + > + > do-configure: > - @${REINPLACE_CMD} -e "s=/opt/openldap-OPENLDAP_REL_ENG_2_2/lib= > ${LOCALBASE}/lib=" \ > +.if defined(WITH_SASL) && !defined(WITHOUT_SASL) > + @${ECHO} > + @${ECHO} Configuring ${PKGNAME} with SASL support > + @${ECHO} > + @${REINPLACE_CMD} -e "s=/opt/openldap-OPENLDAP_REL_ENG_2_2/lib= > ${LOCALBASE}/lib ${LOCALBASE}/lib/sasl2=" \ > + -e "s=/usr/include/sasl=${LOCALBASE}/include/sasl=" \ > -e "s=/opt/openldap-OPENLDAP_REL_ENG_2_2/include=$ > {LOCALBASE}/include=" \ > + ${WRKSRC}/setup.cfg > +.else > + @${ECHO} > + @${ECHO} Configuring ${PKGNAME} without SASL support > + @${ECHO} > + @${REINPLACE_CMD} -e "s=/opt/openldap-OPENLDAP_REL_ENG_2_2/lib= > ${LOCALBASE}/lib=" \ > -e "s=ldap_r lber ssl crypto sasl2=ldap_r lber ssl crypto=" \ > + -e "s=/opt/openldap-OPENLDAP_REL_ENG_2_2/include /usr/ > include/sasl=${LOCALBASE}/include=" \ > ${WRKSRC}/setup.cfg > +.endif > + > + > +.include > > -.include > > I tried to use SASL auth with www/web2ldap (which depends on > net/py-ldap2) but got an error with diagnostic message someting like > "SASL authentication is not implemented". > > After applying the patch and rebuilding/reinstalling I managed to auth > using SASL plain mechanism. > > If anybody is interested in applying the patch a feedback is > appreciated. > > > WBR > -- > bsam > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports- > unsubscribe@freebsd.org"