It's unfortunate this (and other) package are living outside the main Zope tree. I understand the reasons, but I wish we could find a way. Could conditionals in zcml help us there ? So that it doesn't get included if ldap is not a python package, but still can be the rest of the time ? Although it depends on non-core product, it's something that really should be part of the main tree IMHO.
On 18 May 2005, at 00:10, Dylan Reinhardt wrote:
I'm getting closer... the reason ldappas is not addable to PAU is that it doesn't implement IContainedPrincipalSource. That was easy enough to fix.
It then needs to implement principalInfo, which I attempted to implement both as a thin wrapper for get() and as a wrapper for get() that returned a PrincipalInfo object similar to the one implemented in PrincipalFolder.
Neither approach worked and either way I'm getting unicode decoding errors in ldapadapter/utility.py, line 151. (UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 3: unexpected code byte).
I'm clearly in over my head at this point... it doesn't appear that the required changes are easily made, or at least not easily made by someone of my skill level. :-)
Florian, is there any kind of bribe I can offer you to help me out? I'm serious.
On 5/17/05, Dylan Reinhardt <[EMAIL PROTECTED]> wrote:
On 5/17/05, Stephan Richter <[EMAIL PROTECTED]> wrote:
On Tuesday 17 May 2005 14:24, Dylan Reinhardt wrote:
If LDAP auth for PAU exists, or if there is a howto or doc explaining
how to do make ldapauth or ldappas work with PAU, I would greatly
appreciate a shove in the right direction.
ldappas was developed for PAU, but Jim made some PAU API changes in February
or March that probably make it fail. The fixes should be pretty shallow.
Thanks for the quick response and inspiration.
I've made some changes that allow ldappas and ldapadapter to load, create compoents and register them, but am a bit stuck after that. Here's what changes I've made:
In ldapadapter/browser/configure.zcml: Line 18: - class="zope.app.utility.browser.AddRegistration" + class="zope.app.component.browser.utility.AddRegistration"
Line 22: - arguments="name interface" + arguments="name" + keyword_arguments="interface"
Line 14 and 19
changed "zope.app.pas.interfaces" to "zope.app.authentication.interfaces"
Lines 26 & 27:
Changed "zope.app.pas.interfaces" to "zope.app.authentication.interfaces"
Those changes allow ldappas and ldapadapter to load and then I'm able to add, configure and register my LDAP adapter and LDAP auth plugin components. It seems to work correctly and the adapter tests OK.
But my pluggable auth utility still can't see the ldap plugin.
I feel like I must be pretty close here... any suggestions greatly appreciated.
-- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]
_______________________________________________ Zope3-users mailing list Zope3email@example.com http://mail.zope.org/mailman/listinfo/zope3-users