Index: trunk/packages/invirt-web/code/getafsgroups.py
===================================================================
--- trunk/packages/invirt-web/code/getafsgroups.py	(revision 2118)
+++ trunk/packages/invirt-web/code/getafsgroups.py	(revision 2119)
@@ -2,4 +2,5 @@
 import pprint
 import subprocess
+from invirt.config import structs as config
 
 # import ldap
@@ -29,6 +30,10 @@
 
 def getAfsGroupMembers(group, cell):
+    encrypt = True
+    for c in config.authz:
+        if c.type == 'afs' and c.cell == cell and hasattr(c, 'auth'):
+            encrypt = c.auth
     subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-    p = subprocess.Popen(["pts", "membership", "-encrypt", group, '-c', cell],
+    p = subprocess.Popen(["pts", "membership", "-encrypt" if encrypt else '-noauth', group, '-c', cell],
                          stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     err = p.stderr.read()
