[Zope] python question/ LDAPAdapter product bug
Phil Harris
phil.harris@zope.co.uk
Mon, 31 Jan 2000 23:07:56 -0000
Try:
name,password=tuple(string.split(decodestring(string.split(auth)[-1]),
':',1))
This should only return 2 elements
HTH
Phil
phil.harris@zope.co.uk
----- Original Message -----
From: "Dennis Moore" <rainking@feeding.frenzy.com>
To: <zope@zope.org>
Sent: Monday, January 31, 2000 10:59 PM
Subject: [Zope] python question/ LDAPAdapter product bug
> We discovered a problem with the LDAP Adapter product. It seems that
> because of this line:
>
> name,password=tuple(string.split(decodestring(string.split(auth)[-1]),
':'))
>
> we get a ValueError (unpack tuple of wrong size) when the password
> contains a colon (:). does anyone know of a workaround for this?
>
> --
> pity this busy monster, manunkind, | Dennis Moore |
Sarah
> not. Progress is a comfortable disease. | rainking@frenzy.com |
McLachlan
> -e.e. cummings: One Times One | archon on the irc |
"Black"
> If I cried me a river of all my confessions would I drown in my shallow
regret?
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>