diff --git a/rhodecode/authentication/plugins/auth_ldap.py b/rhodecode/authentication/plugins/auth_ldap.py --- a/rhodecode/authentication/plugins/auth_ldap.py +++ b/rhodecode/authentication/plugins/auth_ldap.py @@ -444,7 +444,7 @@ class RhodeCodeAuthPlugin(RhodeCodeExter 'lastname': safe_unicode( get_ldap_attr('attr_lastname') or lastname), 'groups': groups, - 'email': get_ldap_attr('attr_email' or email), + 'email': get_ldap_attr('attr_email') or email, 'admin': admin, 'active': active, "active_from_extern": None,