summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-03-26 16:45:06 -0400
committerRob Crittenden <rcritten@redhat.com>2008-03-26 16:45:06 -0400
commitc3a14e978ce39b1bbef5e7b6f76e6a84f0fc7df6 (patch)
treeb95d4533b40af9519ebad172b78f7c24a1cf6ea0 /ipa-server/ipa-gui
parent79db4c3aa21400762f9341cc5fb636dcf3c63662 (diff)
downloadfreeipa-c3a14e978ce39b1bbef5e7b6f76e6a84f0fc7df6.tar.gz
freeipa-c3a14e978ce39b1bbef5e7b6f76e6a84f0fc7df6.tar.xz
freeipa-c3a14e978ce39b1bbef5e7b6f76e6a84f0fc7df6.zip
Don't error out if the user isn't in any groups.
438222
Diffstat (limited to 'ipa-server/ipa-gui')
-rw-r--r--ipa-server/ipa-gui/ipagui/proxyprovider.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/ipagui/proxyprovider.py b/ipa-server/ipa-gui/ipagui/proxyprovider.py
index 5299091d2..2c55a131f 100644
--- a/ipa-server/ipa-gui/ipagui/proxyprovider.py
+++ b/ipa-server/ipa-gui/ipagui/proxyprovider.py
@@ -47,6 +47,9 @@ class IPA_User(object):
user = client.get_user_by_principal(user_name, ['dn', 'memberof'])
self.groups = []
memberof = user.getValues('memberof')
+ if memberof is None:
+ # the user isn't in any groups
+ return
if isinstance(memberof, str):
memberof = [memberof]
for mo in memberof: