|
From: Art V. <ar...@rt...> - 2001-10-17 14:51:06
|
Following the advice on the list to delete the references to 'ufn' in modules/LDAPObject.c I have been able to get the module to compile and it imports without criticism. However, web2ldap (which is the only program presently using pytjon-ldap) no longer works. When a user tries to connect, the following error message is generated in the apache log: [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: ------------------------------------------------------------ [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: Unhandled error at 2001-10-17T04:28:39Z [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: LDAPSession instance: <LDAPSession: host:u'rtv.AWOLart.com:389',dn:u''> [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: DOCUMENT_ROOT: "/usr/local/apache_1.3.20/htdocs" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: EMBPERL_DEBUG: "2285" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: GATEWAY_INTERFACE: "CGI/1.1" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_ACCEPT: "text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, text/css, */*;q=0.1" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_ACCEPT_CHARSET: "ISO-8859-1, utf-8;q=0.66, *;q=0.66" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_ACCEPT_ENCODING: "gzip, deflate, compress;q=0.9" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_ACCEPT_LANGUAGE: "en-us" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_CONNECTION: "keep-alive" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_HOST: "rtv.awolart.com" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_KEEP_ALIVE: "300" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_REFERER: "http://rtv.awolart.com/web2ldap-fcgi/web2ldap.py" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: HTTP_USER_AGENT: "Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4) Gecko/20010915" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: PATH: "/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/etc" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: PATH_INFO: "/searchform" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: PATH_TRANSLATED: "/usr/local/apache_1.3.20/htdocs/searchform" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: QUERY_STRING: "host=rtv.AWOLart.com%3A389" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: REMOTE_ADDR: "207.103.199.116" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: REMOTE_PORT: "36896" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: REQUEST_METHOD: "GET" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: REQUEST_URI: "/web2ldap-fcgi/web2ldap.py/searchform?host=rtv.AWOLart.com%3A389" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SCRIPT_FILENAME: "/usr/local/web2ldap/fcgi/web2ldap.py" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SCRIPT_NAME: "/web2ldap-fcgi/web2ldap.py" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SERVER_ADDR: "207.103.199.116" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SERVER_ADMIN: "ar...@rt..." [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SERVER_NAME: "rtv.AWOLart.com" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SERVER_PORT: "80" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SERVER_PROTOCOL: "HTTP/1.1" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SERVER_SIGNATURE: "<ADDRESS>Apache/1.3.20 Server at <A HREF="mailto:ar...@rt...">rtv.AWOLart.com</A> Port 80</ADDRESS> [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: " [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: SERVER_SOFTWARE: "Apache/1.3.20 (Unix) mod_fastcgi/2.2.10 PHP/4.0.6 AuthMySQL/2.20 mod_perl/1.26 mod_ssl/2.8.4 OpenSSL/0.9.6b" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: TZ: "US/Eastern" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: UNIQUE_ID: "O80I989nx3QAADyCOaA" [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: Traceback (most recent call last): [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: File "./pylib/w2lapp/handler.py", line 351, in HandleHTTPRequest [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: File "/usr/local/web2ldap/pylib/ldapsession.py", line 425, in set_option [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: setattr(self._l,name,value) [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: File "/usr/local/lib/python2.2/site-packages/ldapthreadlock.py", line 60, in __setattr__ [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: setattr(self._l,name,value) [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: server "/usr/local/web2ldap/fcgi/web2ldap.py" stderr: NameError: cannot set that field [Wed Oct 17 00:28:39 2001] [error] [client 207.103.199.116] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/web2ldap/fcgi/web2ldap.py" Obviously, most of this data is environmental data, but the last several lines indicate a setoption or __setattr__ problem. I am using web2ldap-0.9.6 with Python-2.2 and Openldap-2.0.15. For the record, this problem also occurs when I use Python-2.0 and Python-2.1.1. Any help is appreciated. -- The information contained in this message is privileged and confi- dential. If you have received this message in error, please notify the sender at the address or the telephone number set forth below. Arthur E. Vossberg III 1100 Buckingham Way Yardley, PA 19067 Telephone: +1 215 295 8207 For secure transmissions over the Internet, please use the sender's gpg public key: -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.0.6 (SunOS) Comment: Issued by ar...@rt... mQGiBDurtG8RBACLL+gvAe9pkG4a45rxCAbPW+Zn+Oy0wdWy/6dQFZ91bbQsf0KM XFm0EN/9IEqEl2H7xafjUtw4MDNVeYrKM6ikujq9zRIEP3JLCUpxX7DAQ7uK0Yq4 2+WhciR2XxQsMnUnZfd5WcNuC3MmgP6BM1h7mUjhImrxzP+jgYn3Phu+wwCgl5da e8+JWgAJwM1Pkgi387U7s8sD/2eLgzaTLpCfJ9yFDLT6ItbtYz28LszfNCkSJRYR pgaXaKnravHvts66PlB3Y96UAh8HMTeLHtytWS0m6UCMIDXAS9QR3JaEk2ig9Oxx uAXgnSypCGYb5gk29AuDNNOzZfvEeGN2aUPT/TbUom7BkuraxF5WGwX3DuaSlNEE hpAuA/4+sndzENT1uJ50A1kL2/L6Tf2u7dGgSQyKiEEeegCUWEgNS3bdmWoKzfCi Sg2ZHFtm0k1xZTCG2lLeuZAzYv5elzk4/4op8dXJcV8qh2eClDwhDaYomLeNdWod u3QiSDgycx+VPB+Xg35XHRw81ceNvRiAJJFPM1EX50OoiDuQprQsQXJ0IFZvc3Ni ZXJnIChncGdVc2VyKSA8YXJ0QHJ0di5BV09MYXJ0LmNvbT6IXQQTEQIAHQUCO6u0 bwUJBaOagAULBwoDBAMVAwIDFgIBAheAAAoJELq8qjjqxHt4xEEAn3hp9PXriwv5 mAiDXgi95sq4spg/AJ46P7IMM0NkXs4yV7+47l2UFoeysrkBDQQ7q7UzEAQAuIJc v9Zjl1qB7+lfZoaqk7FpCRO9MddH2BRkvRvCgfZUDwx8cCYtPE6HcElB06rHGVcn y8bPbNvrZAHB058/xX46PNTH3XGkUWpwyC6y1XGbGGaNS6QaGWRGJGqFCagMg8Qf wu6qeyYrc5pldiS0wQOnDz+Ck9gme/UzlJh1yb8AAwcD/jos272U+F5WGvwZ15jo ic/6wF3LAZBzGEw6oyacY/qR0sesGO9PPDBvvD+93n4OB9FKjwFTeaE8IifO1nXe TTDPqDy+eGKKCIBROtAU6SqBCzUvwfKWTs2De0z7Orru1fdruZnDW3VhKFeCD+f4 iXWSp1zGa0ZoRkjgobXNE4VziEwEGBECAAwFAjurtTMFCQWjmoAACgkQuryqOOrE e3ilmgCcDqtqLyPmb0OOWaWP5O6FRxiZVJYAn2xHATJorP9M+TLxtrOaZV0v8NWG =HpkW -----END PGP PUBLIC KEY BLOCK----- |
|
From: Michael <mi...@st...> - 2001-10-17 18:00:31
|
Art Vossberg wrote: > [..] > Traceback (most recent call last): > [..] > NameError: cannot set that field > [..] > Obviously, most of this data is environmental data, but the last several > lines indicate a setoption or __setattr__ problem. FYI: With web2ldap I already try to handle differences of python-ldap built against different versions of the OpenLDAP libs. This works fairly well with the patches exposing the "version" attribute. I take the presence of the "version" attribute as indicator that the OpenLDAP 2 libs are used. However if the python-ldap was built against OpenLDAP 2 libs with patches which does not expose the "version" attribute it is assumed that the OpenLDAP 1 libs are in place and setting the LDAP connection options via attribute "options" obviously fails. For those of you interested in the gory details check out module ldapsession.py shipped with web2ldap. Ciao, Michael. |
|
From: Michael <mi...@st...> - 2001-10-19 12:37:49
|
Michael Ströder wrote: > > Art Vossberg wrote: > > [..] > > Traceback (most recent call last): > > [..] > > NameError: cannot set that field > > [..] > > Obviously, most of this data is environmental data, but the last several > > lines indicate a setoption or __setattr__ problem. > > FYI: With web2ldap I already try to handle differences of > python-ldap built against different versions of the OpenLDAP libs. BTW: I think python-ldap should expose the following constants: LDAP_API_VERSION LDAP_VENDOR_NAME LDAP_VENDOR_VERSION This would make it possible that an application can check more precise the API vendor and version. Other constants might be interesting as well: LDAP_API_FEATURE_* Ciao, Michael. |
|
From: Konstantin C. <Kon...@da...> - 2001-10-19 13:29:32
|
Michael StrЖder wrote:
> Michael StrЖder wrote:
> >
> BTW: I think python-ldap should expose the following constants:
>
> LDAP_API_VERSION
> LDAP_VENDOR_NAME
> LDAP_VENDOR_VERSION
>
It's not quite clear, because python-ldap is itself an API :-)
Maybe LDAP_C_API_VERSION or simpler: LDAP_C_API_NAME.
Currently supported versions are OPENLDAP_1 and OPENLDAP_2...
--
* * Konstantin Chuguev Francis House
* * Application Engineer 112 Hills Road
* Tel: +44 1223 302992 Cambridge CB2 1PQ
D A N T E WWW: http://www.dante.net United Kingdom
|
|
From: Michael <mi...@st...> - 2001-10-19 13:39:04
|
Konstantin Chuguev wrote: > > Michael Ströder wrote: > > > Michael Ströder wrote: > > > > > BTW: I think python-ldap should expose the following constants: > > > > LDAP_API_VERSION > > LDAP_VENDOR_NAME > > LDAP_VENDOR_VERSION > > > > It's not quite clear, because python-ldap is itself an API :-) Obviously you're right. ;-) > Maybe LDAP_C_API_VERSION or simpler: LDAP_C_API_NAME. > Currently supported versions are OPENLDAP_1 and OPENLDAP_2... But I'd really like to have a more fine-grained versioning. How about: C_API_VENDOR_NAME C_API_VENDOR_VERSION Since the OpenLDAP 2 API seems to be the only one coming with such constants we have no problems following their naming and versioning scheme and setting values to reasonable defaults in case of OpenLDAP 1. Ciao, Michael. |