Unfortunately those instructions make the assumption that you are using the native Red Hat/CentOS RPM or a source install. The version of Python shipped with the stack installers does not find the libldap and python-ldap you're using, so it won't work. The easiest route would be to use use the native RPM or source, but to get it working with the stack installer would require using the shipped version of Python to build python-ldap and possibly libldap. If someone wants attempt to get this working and document it, that would be greatly appreciated, but until then it's a known problem with using external libraries with the stack installers.

Thanks,
Matt Ray
Zenoss Community Manager
community.zenoss.com
[EMAIL PROTECTED]



On Jul 23, 2008, at 6:57 PM, jzimmerman wrote:

I have so far been unsuccessful in getting the LDAPUserFolder and LDAPMultiPlugins to even load as explained here: http://www.zenoss.com/community/docs/howtos/how-to-authenticate-via-ldap/ .

I am using the .deb stack installer for ZenOSS 2.2 installed on Ubuntu JeOS 8.04.1 under VMware Server. I have installed python- ldap, python-ldaptor, wget, and openssh-server besides the stack installer. Nothing else besides the dependencies for openssh-server.

My event.log output is below. The two plugins I loaded are failing because it can't find the ldap python libraries. I am assuming I need to pull the system installed libraries into the stack folder, but apparently I can't find the right ones.

Does anyone have LDAP authentication working with ZenOSS 2.2, specifically against Active Diretory? I have also tried the binary stack installer and the "ready to go" VMware download for Linux.

Thanks....


Code:

2008-07-23T18:04:17 INFO ZEO.ClientStorage (4992) Testing connection <ManagedClientConnection ('127.0.0.1', 8100)>
------
2008-07-23T18:04:17 INFO ZEO.zrpc.Connection(C) (localhost:8100) received handshake 'Z303'
------
2008-07-23T18:04:17 INFO ZEO.ClientStorage (4992) Server authentication protocol None
------
2008-07-23T18:04:17 INFO ZEO.ClientStorage (4992) Connected to storage: ('localhost', 8100)
------
2008-07-23T18:04:17 INFO ZEO.ClientStorage (4992) No verification necessary (last_inval_tid up-to-date)
------
2008-07-23T18:04:17 INFO ZEO.ClientStorage (4992) Waiting for cache verification to finish
------
2008-07-23T18:04:17 ERROR Zope Couldn't install Five
Traceback (most recent call last):
File "/usr/local/zenoss/zenoss/lib/python/OFS/Application.py", line 773, in install_product
   initmethod(context)
File "/usr/local/zenoss/zenoss/Products/Five/__init__.py", line 33, in initialize
   zcml.load_site()
File "/usr/local/zenoss/zenoss/Products/Five/zcml.py", line 41, in load_site
   _context = xmlconfig.file(file)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 439, in file
   include(context, name, package)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 375, in include
   processxmlfile(f, context)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 245, in processxmlfile
   parser.parse(src)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 107, in parse
   xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
   self.feed(buffer)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 207, in feed
   self._parser.Parse(data, isFinal)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 348, in end_element_ns
   self._cont_handler.endElementNS(pair, None)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 225, in endElementNS
   self.context.end()
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 518, in end
   self.stack.pop().finish()
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 665, in finish
   actions = self.handler(context, **args)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 375, in include
   processxmlfile(f, context)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 245, in processxmlfile
   parser.parse(src)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 107, in parse
   xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
   self.feed(buffer)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 207, in feed
   self._parser.Parse(data, isFinal)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 348, in end_element_ns
   self._cont_handler.endElementNS(pair, None)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 225, in endElementNS
   self.context.end()
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 518, in end
   self.stack.pop().finish()
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 665, in finish
   actions = self.handler(context, **args)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 375, in include
   processxmlfile(f, context)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 245, in processxmlfile
   parser.parse(src)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 107, in parse
   xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
   self.feed(buffer)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 207, in feed
   self._parser.Parse(data, isFinal)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 348, in end_element_ns
   self._cont_handler.endElementNS(pair, None)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 225, in endElementNS
   self.context.end()
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 518, in end
   self.stack.pop().finish()
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 665, in finish
   actions = self.handler(context, **args)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 375, in include
   processxmlfile(f, context)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 245, in processxmlfile
   parser.parse(src)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 107, in parse
   xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
   self.feed(buffer)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 207, in feed
   self._parser.Parse(data, isFinal)
File "/usr/local/zenoss/python/lib/python2.4/xml/sax/ expatreader.py", line 348, in end_element_ns
   self._cont_handler.endElementNS(pair, None)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ xmlconfig.py", line 225, in endElementNS
   self.context.end()
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 518, in end
   self.stack.pop().finish()
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 664, in finish
   args = toargs(context, *self.argdata)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ config.py", line 1322, in toargs
   args[str(name)] = field.fromUnicode(s)
File "/usr/local/zenoss/zenoss/lib/python/zope/configuration/ fields.py", line 141, in fromUnicode
   raise schema.ValidationError(v)
ZopeXMLConfigurationError: File "/usr/local/zenoss/zenoss/Products/ Five/skel/site.zcml", line 7.2-7.37 ZopeXMLConfigurationError: File "/usr/local/zenoss/zenoss/ Products/Five/configure.zcml", line 4.2-4.30 ZopeXMLConfigurationError: File "/usr/local/zenoss/zenoss/ Products/Five/meta.zcml", line 5.2-5.46 ZopeXMLConfigurationError: File "/usr/local/zenoss/zenoss/ Products/Five/site/meta.zcml", line 7.4-11.9 ConfigurationError: ('Invalid value for', 'handler', "Couldn't import Products.Five.site.metaconfigure, cannot import name adapterImplied")
------
2008-07-23T18:04:17 ERROR Zope Couldn't install LDAPMultiPlugins
Traceback (most recent call last):
File "/usr/local/zenoss/zenoss/lib/python/OFS/Application.py", line 745, in install_product
   global_dict, global_dict, silly)
File "/usr/local/zenoss/zenoss/Products/LDAPMultiPlugins/ __init__.py", line 16, in ?
   from LDAPMultiPlugin import LDAPMultiPlugin, \
File "/usr/local/zenoss/zenoss/Products/LDAPMultiPlugins/ LDAPMultiPlugin.py", line 25, in ?
   from Products.LDAPUserFolder import manage_addLDAPUserFolder
File "/usr/local/zenoss/zenoss/Products/LDAPUserFolder/ __init__.py", line 20, in ?
   from Products.LDAPUserFolder.LDAPUserFolder import LDAPUserFolder
File "/usr/local/zenoss/zenoss/Products/LDAPUserFolder/ LDAPUserFolder.py", line 42, in ?
   from Products.LDAPUserFolder.LDAPDelegate import filter_format
File "/usr/local/zenoss/zenoss/Products/LDAPUserFolder/ LDAPDelegate.py", line 19, in ?
   import ldap
ImportError: No module named ldap
------
2008-07-23T18:04:17 ERROR Zope Couldn't install LDAPUserFolder
Traceback (most recent call last):
File "/usr/local/zenoss/zenoss/lib/python/OFS/Application.py", line 745, in install_product
   global_dict, global_dict, silly)
File "/usr/local/zenoss/zenoss/Products/LDAPUserFolder/ __init__.py", line 20, in ?
   from Products.LDAPUserFolder.LDAPUserFolder import LDAPUserFolder
File "/usr/local/zenoss/zenoss/Products/LDAPUserFolder/ LDAPUserFolder.py", line 42, in ?
   from Products.LDAPUserFolder.LDAPDelegate import filter_format
File "/usr/local/zenoss/zenoss/Products/LDAPUserFolder/ LDAPDelegate.py", line 19, in ?
   import ldap
ImportError: No module named ldap
------
2008-07-23T18:04:18 INFO Zope New disk product detected, determining if we need to fix up any ZClasses.
------
2008-07-23T18:04:18 INFO Zope Ready to handle requests







-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=22839#22839

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to