diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-03-26 16:45:06 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-03-26 16:45:06 -0400 |
commit | c3a14e978ce39b1bbef5e7b6f76e6a84f0fc7df6 (patch) | |
tree | b95d4533b40af9519ebad172b78f7c24a1cf6ea0 /ipa-server/ipa-gui | |
parent | 79db4c3aa21400762f9341cc5fb636dcf3c63662 (diff) | |
download | freeipa-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.py | 3 |
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: |