Re: virtual user with "dot" int he username fail
Stephen Warren <[email protected]> Sun, 25 Feb 2007 11:18:57 -0700
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dennis Kavadas wrote: > works perfectly, many thanks... !!! > > On 2/23/07, Stephen Warren <[email protected]> wrote: > > Index: vmailmgr1.py > =================================================================== > --- vmailmgr1.py (revision 2144) > +++ vmailmgr1.py (working copy) > @@ -25,7 +25,7 @@ > for Line in List: > Parts = Line.split(":") > if (Parts[0] == User): > - return Parts[1], Parts[2], Parts[3] > + return ':'.join(Parts[1:-2]), Parts[-2], Parts[-1] > > # User does not exist > raise KeyError The above patch has been tested and works as Dennis notes above. I believe it's safe, because only the home-dir field is likely to actually contains a colon. So, I'll checkin to SVN soon unless somebody sees any problems. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF4dMRhk3bo0lNTrURAjlQAKC6sXnabfe6i9bx4HmH36IYsGwlbgCg8fYq U8ipFcSpq3zHyyMzP2w9c+0= =ral1 -----END PGP SIGNATURE-----