From e4d613ae4e8470160bf6dff2babcba6dab5ed13f Mon Sep 17 00:00:00 2001 From: Sam Firke Date: Tue, 3 Oct 2023 07:56:29 -0400 Subject: [PATCH] docs(typo): "preform" -> "perform" x4 (#2123) * preform -> perform * preform -> perform --- docs/security.rst | 2 +- flask_appbuilder/security/manager.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/security.rst b/docs/security.rst index c5ef982dc7..03c01175af 100644 --- a/docs/security.rst +++ b/docs/security.rst @@ -90,7 +90,7 @@ This method will authenticate the user's credentials against an LDAP server. WARNING: To use LDAP you need to install `python-ldap `_. -For a typical Microsoft AD setup (where all users can preform LDAP searches):: +For a typical Microsoft AD setup (where all users can perform LDAP searches):: AUTH_TYPE = AUTH_LDAP AUTH_LDAP_SERVER = "ldap://ldap.example.com" diff --git a/flask_appbuilder/security/manager.py b/flask_appbuilder/security/manager.py index ae4fbe96a2..bf15c69a2d 100644 --- a/flask_appbuilder/security/manager.py +++ b/flask_appbuilder/security/manager.py @@ -954,7 +954,7 @@ def _search_ldap(self, ldap, con, username): if len(self.auth_roles_mapping) > 0: request_fields.append(self.auth_ldap_group_field) - # preform the LDAP search + # perform the LDAP search log.debug( "LDAP search for '%s' with fields %s in scope '%s'", filter_str, @@ -1137,7 +1137,7 @@ def auth_user_ldap(self, username, password): user_attributes = {} # Flow 1 - (Indirect Search Bind): - # - in this flow, special bind credentials are used to preform the + # - in this flow, special bind credentials are used to perform the # LDAP search # - in this flow, AUTH_LDAP_SEARCH must be set if self.auth_ldap_bind_user: @@ -1173,7 +1173,7 @@ def auth_user_ldap(self, username, password): # Flow 2 - (Direct Search Bind): # - in this flow, the credentials provided by the end-user are used - # to preform the LDAP search + # to perform the LDAP search # - in this flow, we only search LDAP if AUTH_LDAP_SEARCH is set # - features like AUTH_USER_REGISTRATION & AUTH_ROLES_SYNC_AT_LOGIN # will only work if AUTH_LDAP_SEARCH is set