From 59f4105b3f9c76abb0017ce6a4834408e32767a4 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 29 Nov 2009 08:48:47 -0500 Subject: [PATCH 1/1] Take advantage of the newly added symbolic names for PTS connection encryption levels. svn path=/trunk/packages/invirt-base/; revision=2572 --- python/invirt/authz/locker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 1.7.9.5