From: Evan Broder Date: Sun, 29 Nov 2009 13:48:47 +0000 (-0500) Subject: Take advantage of the newly added symbolic names for PTS connection X-Git-Tag: 0.0.26~2 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-base.git/commitdiff_plain/59f4105b3f9c76abb0017ce6a4834408e32767a4 Take advantage of the newly added symbolic names for PTS connection encryption levels. svn path=/trunk/packages/invirt-base/; revision=2572 --- diff --git a/python/invirt/authz/locker.py b/python/invirt/authz/locker.py index cf33d5e..7982f8d 100644 --- a/python/invirt/authz/locker.py +++ b/python/invirt/authz/locker.py @@ -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: