From: sudhi n. <lak...@ya...> - 2005-04-15 10:33:13
|
Hello, I have installed openldap2.2.24 successfully and now i want install python-ldap interface, so that i can access LDAP server(In Redhat 9) from Plone using LDAPUserFolder.At this instance i got struck with an error which as follows:- [root@intranet1 python-ldap-2.0.2]# /usr/local/src/Zope-2.7.2-0/bin/python Python 2.3.3 (#1, Apr 14 2005, 11:06:41) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ldap Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/ldap/__init__.py", line 46, in ? from functions import open,initialize,init,explode_dn,explode_rdn,get_option,set_option File "/usr/local/lib/python2.3/site-packages/ldap/functions.py", line 34, in ? from ldap.ldapobject import LDAPObject File "/usr/local/lib/python2.3/site-packages/ldap/ldapobject.py", line 43, in ? class SimpleLDAPObject: File "/usr/local/lib/python2.3/site-packages/ldap/ldapobject.py", line 192, in SimpleLDAPObject def sasl_interactive_bind_s(self,who,auth,serverctrls=None,clientctrls=None,sasl_flags=ldap.SASL_QUIET): AttributeError: 'module' object has no attribute 'SASL_QUIET' >>> Help me..................Got struck with this...... Thanks in advance Bye Sudhindra L A Mail me to sud...@ka... ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony |
From: sudhindra a. <sud...@ya...> - 2005-04-18 06:34:24
|
Hello, I am configuring LDAPuserfolder with Zope in order to access LDAP server running at RedHat Linux 9.0......during startup of ZOPE server.....i got the following error....help me to tackle the issue The error is as follows:- [root@intranet1 bin]# ./runzope ------ 2005-04-18T12:03:36 INFO(0) ZServer HTTP server started at Mon Apr 18 12:03:36 2005 Hostname: intranet1 Port: 8080 ------ 2005-04-18T12:03:36 INFO(0) ZServer FTP server started at Mon Apr 18 12:03:36 2005 Hostname: intranet1 Port: 8021 ------ 2005-04-18T12:03:36 INFO(0) Zope Set effective user to "zope" ------ 2005-04-18T12:03:38 INFO(0) IngeniWeb NOTICE global_symbols.py:20:Mon Apr 18 12:03:38 2005: 'Starting /opt/zope/instance0/Products/GroupUserFolder at 4 debug level' ------ 2005-04-18T12:03:38 ERROR(200) Zope Could not import Products.LDAPUserFolder Traceback (most recent call last): File "/opt/zope/Zope2.7.2/lib/python/OFS/Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/zope/Zope2.7.2/lib/python/Products/LDAPUserFolder/__init__.py", line 15, in ? from LDAPUserFolder import addLDAPUserFolderForm, \ File "/opt/zope/Zope2.7.2/lib/python/Products/LDAPUserFolder/LDAPUserFolder.py", line 27, in ? from LDAPUser import LDAPUser File "/opt/zope/Zope2.7.2/lib/python/Products/LDAPUserFolder/LDAPUser.py", line 23, in ? from utils import _verifyUnicode, encoding File "/opt/zope/Zope2.7.2/lib/python/Products/LDAPUserFolder/utils.py", line 25, in ? import ldap File "/opt/python23/lib/python2.3/site-packages/ldap/__init__.py", line 21, in ? from _ldap import * ImportError: libldap_r-2.2.so.7: cannot open shared object file: No such file or directory Traceback (most recent call last): File "/opt/zope/Zope2.7.2/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/opt/zope/Zope2.7.2/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/opt/zope/Zope2.7.2/lib/python/Zope/Startup/__init__.py", line 51, in start_zope starter.startZope() File "/opt/zope/Zope2.7.2/lib/python/Zope/Startup/__init__.py", line 230, in startZope Zope.startup() File "/opt/zope/Zope2.7.2/lib/python/Zope/__init__.py", line 47, in startup _startup() File "/opt/zope/Zope2.7.2/lib/python/Zope/App/startup.py", line 45, in startup OFS.Application.import_products() File "/opt/zope/Zope2.7.2/lib/python/OFS/Application.py", line 637, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/opt/zope/Zope2.7.2/lib/python/OFS/Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/zope/Zope2.7.2/lib/python/Products/LDAPUserFolder/__init__.py", line 15, in ? from LDAPUserFolder import addLDAPUserFolderForm, \ File "/opt/zope/Zope2.7.2/lib/python/Products/LDAPUserFolder/LDAPUserFolder.py", line 27, in ? from LDAPUser import LDAPUser File "/opt/zope/Zope2.7.2/lib/python/Products/LDAPUserFolder/LDAPUser.py", line 23, in ? from utils import _verifyUnicode, encoding File "/opt/zope/Zope2.7.2/lib/python/Products/LDAPUserFolder/utils.py", line 25, in ? import ldap File "/opt/python23/lib/python2.3/site-packages/ldap/__init__.py", line 21, in ? from _ldap import * ImportError: libldap_r-2.2.so.7: cannot open shared object file: No such file or directory Reply me Thanks in advance Bye Sudhindra L A ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony |
From: <mi...@st...> - 2005-04-18 18:35:58
|
sudhindra aswathanarayana wrote: > > ImportError: libldap_r-2.2.so.7: cannot open shared > object file: No such file or directory Similar to item 11. on http://python-ldap.sourceforge.net/faq.shtml Ciao, Michael. |
From: <mi...@st...> - 2005-04-16 09:40:55
|
sudhi ndra wrote: > > I have installed openldap2.2.24 successfully Did you compile OpenLDAP with SASL support. Please post the output of ldd <path to OpenLDAP libs>/libldap_r > def > sasl_interactive_bind_s(self,who,auth,serverctrls=None,clientctrls=None,sasl_flags=ldap.SASL_QUIET): > > AttributeError: 'module' object has no attribute > 'SASL_QUIET' Can you also please post your setup.cfg? Ciao, Michael. |