Take advantage of the newly added symbolic names for PTS connection
authorEvan Broder <broder@mit.edu>
Sun, 29 Nov 2009 13:48:47 +0000 (08:48 -0500)
committerEvan Broder <broder@mit.edu>
Sun, 29 Nov 2009 13:48:47 +0000 (08:48 -0500)
encryption levels.

svn path=/trunk/packages/invirt-base/; revision=2572

python/invirt/authz/locker.py

index cf33d5e..7982f8d 100644 (file)
@@ -110,7 +110,8 @@ def _expandGroup(name, cell=None, auth=False):
     to retrieve its membership, we assume it's empty.
     """
     try:
-        ent = pts.PTS(cell, 3 if auth else 0).getEntry(name)
+        ent = pts.PTS(cell, pts.PTS_ENCRYPT if auth else pts.PTS_UNAUTH).\
+            getEntry(name)
         if ent.id > 0:
             return set([ent.name])
         else: