# HG changeset patch # User Denis Blanchette # Date 2015-01-23 17:06:06 # Node ID c81379d100e00c2922773fc5acd504378cb5cd95 # Parent 21fdc69bd446bca27c65b5fd51b37048d7934cd4 pull request: fix user automatically activated with LDAP authentication (Issue #78) diff --git a/kallithea/lib/auth_modules/auth_ldap.py b/kallithea/lib/auth_modules/auth_ldap.py --- a/kallithea/lib/auth_modules/auth_ldap.py +++ b/kallithea/lib/auth_modules/auth_ldap.py @@ -334,7 +334,7 @@ class KallitheaAuthPlugin(auth_modules.K # old attrs fetched from Kallithea database admin = getattr(userobj, 'admin', False) - active = getattr(userobj, 'active', True) + active = getattr(userobj, 'active', self.user_activation_state()) email = getattr(userobj, 'email', '') firstname = getattr(userobj, 'firstname', '') lastname = getattr(userobj, 'lastname', '')