On Wed, 2009-05-27 at 20:31 +0200, Jonas Smedegaard wrote:

> >> 
> >> Heh, that's the packaging routines of the "so much nicer" Python that 
> >> is playing tricks: Those are internal paths so irrelevant to document 
> >> for each single Python module package, I believe.
> >> 
> >> Did that change break anything for you, or were you just curious?
> >> 
> >Actually it did.  I have to add one line in auth/ldap_login.py to make 
> >moinmoin authenticate to my ldap at work.  So I had to find where the 
> >file is now with 1.8.3.
> 
> Please provide the content of that auth/ldap_login.py.
> 
I have to add the line between the #bse and #endbse in order to make the
ldap work.  It may not paste too well in the email.  It is all on one
line.  I couldn't figure out another way to make it work.  I asked on
moinmoin upstream if there was another way but they didn't offer much
help.

                # you can use %(username)s and %(password)s here to get
the stuff entered in the form:
                binddn = self.bind_dn % locals()
                bindpw = self.bind_pw % locals()
                #bse
                binddn = l.search_s('ou=bluepages,o=ibm.com',
ldap.SCOPE_SUBTREE, 'mail=%s' % username)[0][0]
                #endbse

                l.simple_bind_s(binddn.encode(coding),
bindpw.encode(coding))
                logging.debug("Bound with binddn %r" % binddn)

Brent

> 
>   - Jonas
> 
> - -- 
> * Jonas Smedegaard - idealist og Internet-arkitekt
> * Tlf.: +45 40843136  Website: http://dr.jones.dk/
> 
>   [x] quote me freely  [ ] ask before reusing  [ ] keep private
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> 
> iEYEAREDAAYFAkodhx4ACgkQn7DbMsAkQLiG6QCgnfiULc0z8a4FDYKY9Q6khWuB
> 6WUAnRXnVpvSI5/4kiNArBpBGeB1E/87
> =LFQt
> -----END PGP SIGNATURE-----





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to