fix: broken validation for custom LDAP server
This commit is contained in:
parent
39da0b89b1
commit
4fb22d0f34
1 changed files with 2 additions and 2 deletions
|
|
@ -45,8 +45,8 @@ class LDAPSettings(Document):
|
|||
title=_("Misconfigured"))
|
||||
|
||||
if self.ldap_directory_server.lower() == 'custom':
|
||||
if not self.ldap_group_member_attribute or not self.ldap_group_mappings_section:
|
||||
frappe.throw(_("Custom LDAP Directoy Selected, please ensure 'LDAP Group Member attribute' and 'LDAP Group Mappings' are entered"),
|
||||
if not self.ldap_group_member_attribute or not self.ldap_group_objectclass:
|
||||
frappe.throw(_("Custom LDAP Directoy Selected, please ensure 'LDAP Group Member attribute' and 'Group Object Class' are entered"),
|
||||
title=_("Misconfigured"))
|
||||
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue