From 5fc5ee4d356bb987be39d22b0ff2084a1c702c12 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Mon, 10 Apr 2017 17:16:17 +0200 Subject: [PATCH] auth-plugins: define unsafe settings --- rhodecode/authentication/plugins/auth_crowd.py | 1 + rhodecode/authentication/plugins/auth_ldap.py | 1 + 2 files changed, 2 insertions(+) diff --git a/rhodecode/authentication/plugins/auth_crowd.py b/rhodecode/authentication/plugins/auth_crowd.py index c4bca529..3db5251c 100644 --- a/rhodecode/authentication/plugins/auth_crowd.py +++ b/rhodecode/authentication/plugins/auth_crowd.py @@ -189,6 +189,7 @@ class CrowdServer(object): class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin): + _settings_unsafe_keys = ['app_password'] def includeme(self, config): config.add_authn_plugin(self) diff --git a/rhodecode/authentication/plugins/auth_ldap.py b/rhodecode/authentication/plugins/auth_ldap.py index 9951c71f..1eaaac6e 100644 --- a/rhodecode/authentication/plugins/auth_ldap.py +++ b/rhodecode/authentication/plugins/auth_ldap.py @@ -334,6 +334,7 @@ class AuthLdap(object): class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin): # used to define dynamic binding in the DYNAMIC_BIND_VAR = '$login' + _settings_unsafe_keys = ['dn_pass'] def includeme(self, config): config.add_authn_plugin(self)