Yeah, you're right. I tried to cobble something together to get this
working in the same way in Python 2.7.6 as it works in in Python 3.4.0 to
no avail. Thanks for looking into it, too!


On Mon, May 5, 2014 at 7:23 AM, ragzilla <notifications@github.com> wrote:

> In do_auth.py:
>
> >  import logging
> >  import optparse
> >  import os
> >  import sys
> >  import re
> >  from time import strftime
> > +try:
> > +        from os import getgrouplist as os_getgrouplist
> > +        got_getgrouplist = True
> > +        from pwd import getpwnam as pwd_getpwnam
> > +        from grp import getgrgid as grp_getgrgid
> > +except ImportError:
> > +        got_getgrouplist = False
>
> grp.getgrall will only list groups in the local group database, it won't
> pull all nss (ldap, nis) groups, not sure how to handle this gracefully
> without potentially misleading users about what group sources are actually
> being used.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jathanism/do_auth/pull/3/files#r12280462>
> .
>



-- 
Jathan.
--