def load_nc(self, samdb):
        attrs = [ "objectGUID",
                  "objectSid" ]
        try:
            res = samdb.search(base=self.nc_dnstr,
                               scope=ldb.SCOPE_BASE, attrs=attrs)

        except ldb.LdbError, (enum, estr):
            raise Exception("Unable to find naming context (%s)" %
                            (self.nc_dnstr, estr))
        msg = res[0]
        if msg in "objectGUID":
            self.nc_guid = misc.GUID(samdb.schema_format_value("objectGUID",
                                     msg["objectGUID"][0]))
        if "objectSid" in msg:
            self.nc_sid = msg["objectSid"][0]

        assert self.nc_guid is not None
dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/kcc_utils.py/NamingContext.load_nc/swapped operands of `in`