[Zope3-dev] RE: [Zope3-Users] LDAP support -- current status?
Roger Ineichen
dev at projekt01.ch
Tue May 17 18:41:10 EDT 2005
Hi Florent
> -----Original Message-----
> From: zope3-users-bounces at zope.org
> [mailto:zope3-users-bounces at zope.org] On Behalf Of Florent Guillaume
> Sent: Wednesday, May 18, 2005 12:29 AM
> To: Dylan Reinhardt
> Cc: zope3-users at zope.org
> Subject: Re: [Zope3-Users] LDAP support -- current status?
>
> I haven't work on ldappas since the last sprint, but I'll start
> working again with LDAP in Zope 3 soon. I'll try to look at that
> tomorrow, but I can't promise anything.
>
> 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.
I agree,
such a important standard addon for the PAU should be included in
the distribution for the future.
Regards
Roger Ineichen
> Florent
>
> 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.
> >
> > Dylan
> >
> >
> >
> >
> > On 5/17/05, Dylan Reinhardt <dylanreinhardt at gmail.com> wrote:
> >
> >> On 5/17/05, Stephan Richter <srichter at cosmos.phy.tufts.edu> 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"
> >>
> >> In ldappas/configure.zcml:
> >> Line 14 and 19
> >> changed "zope.app.pas.interfaces" to
> >> "zope.app.authentication.interfaces"
> >>
> >> In ldappas/authentication.py
> >> 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.
> >>
> >> Thanks,
> >>
> >> Dylan
> >>
> >
>
> --
> Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D
> +33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
>
>
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
More information about the Zope3-dev
mailing list