Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2002 11:36:26 -0400 (EDT)
From:      Julian Dunn <jdunn@verticalscope.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38423: web2ldap does not work with the version of py-ldap2 in ports
Message-ID:  <20020522153626.CDEC61891@jedi.office.verticalscope.com>

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

>Number:         38423
>Category:       ports
>Synopsis:       web2ldap does not work with the version of py-ldap2 in ports
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 22 08:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Julian Dunn
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
VerticalScope Inc.
>Environment:
System: FreeBSD jedi.office.verticalscope.com 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #10: Thu May 9 11:17:36 EDT 2002 jdunn@jedi.office.verticalscope.com:/usr/obj/usr/src/sys/YODA i386


	
>Description:
	The version of web2ldap in ports/www/web2ldap is incompatible with the
	revision of the python ldap bindings in ports (in net/py-ldap2)
	because some of the function interfaces have changed.

>How-To-Repeat:
	Install web2ldap in fastCGI mode. The following errors occur:

[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: Traceback (most recent call last):
[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr:
   File "/usr/local/web2ldap/pylib/w2lapp/handler.py", line 406, in HandleHTTPRequest
[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr:
     ls.open(host,startTLS=0)
[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr:
   File "/usr/local/web2ldap/pylib/ldapsession.py", line 200, in open
[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr:
     self.l = self._retryConnect(
[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr:
   File "/usr/local/web2ldap/pylib/ldapsession.py", line 93, in _retryConnect
[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: server "/usr/loc
al/web2ldap/fcgi/web2ldap.py" stderr:     l = ldap.open(host,port,trace_level,trace_file)
[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr:
 TypeError: too many arguments; expected 3, got 4
[Wed May 22 10:35:53 2002] [error] [client 10.10.10.7] FastCGI: incomplete headers (0 bytes) received from server "/u
sr/local/web2ldap/fcgi/web2ldap.py"

>Fix:

	Upgrade the py-ldap2 port to the latest released revision as in this patch:

diff -Nur py-ldap2/Makefile ../verticalscope/py-ldap2/Makefile
--- py-ldap2/Makefile   Tue Apr 30 15:27:24 2002
+++ ../verticalscope/py-ldap2/Makefile  Wed May 22 11:35:35 2002
@@ -5,12 +5,12 @@
 # $FreeBSD: ports/net/py-ldap2/Makefile,v 1.14 2002/04/29 18:31:58 ijliao Exp $
 
 PORTNAME=      ldap2
-PORTVERSION=   CVS200201041716
+PORTVERSION=   2.0.0pre04
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=    python-ldap
 PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME=      Python-LDAP-${PORTVERSION}
+DISTNAME=      python-ldap-${PORTVERSION}
 
 MAINTAINER=    dinoex@FreeBSD.org
 
diff -Nur py-ldap2/distinfo ../verticalscope/py-ldap2/distinfo
--- py-ldap2/distinfo   Thu Feb 28 03:27:36 2002
+++ ../verticalscope/py-ldap2/distinfo  Wed May 22 10:42:47 2002
@@ -1 +1 @@
-MD5 (Python-LDAP-CVS200201041716.tar.gz) = 2ab1887f971fdbfac1c58d343398f674
+MD5 (python-ldap-2.0.0pre04.tar.gz) = 4c0f4e6f59b41a02f50493f02012c9ac
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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