def isMember(userid, password, group):
    """Test to see if the given userid/password combo is an authenticated member of group.

    userid: CADC Username (str)
    password: CADC Password (str)
    group: CADC GMS group (str)
    
    """
    try:
        certfile = getCert(userid, password)

        group_url = getGroupsURL(certfile, group)
        logging.debug("group url: %s" % ( group_url))

        con = httplib.HTTPSConnection(_SERVER,
                                      443,
                                      key_file=certfile.name,
                                      cert_file=certfile.name,
                                      timeout=600)

        con.connect()
        con.request("GET", group_url)
        resp = con.getresponse()
        if resp.status == 200:
            return True
    except Exception as e:
        logging.error(str(e))

    #logging.debug(str(resp.status))

    return False
def isMember ( userid , password , group ) : try : certfile = getCert ( userid , password ) group_url = getGroupsURL ( certfile , group ) logging . debug ( "group url: %s" % ( group_url ) ) con = httplib . HTTPSConnection ( _SERVER , 443 , key_file = certfile . name , cert_file = certfile . name , timeout = 600 ) con . connect ( ) con . request ( "GET" , group_url ) resp = con . getresponse ( ) if resp . status == 200 : return True except Exception as e : logging . error ( str ( e ) ) return False
Test to see if the given userid/password combo is an authenticated member of group.

    userid: CADC Username (str)
    password: CADC Password (str)
    group: CADC GMS group (str)