From 879517abcad3f3f1b09f8687054d51054322a1f5 Mon Sep 17 00:00:00 2001 From: Thomas Krahn Date: Mon, 6 Jul 2020 19:59:07 +0200 Subject: [PATCH] LDAP: Fix wrong attribute name UseSubtree -> UserSubtree --- ldap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap.go b/ldap.go index 3aa4cb0..b3d1c15 100644 --- a/ldap.go +++ b/ldap.go @@ -33,7 +33,6 @@ type LDAP struct { Port uint `json:"port"` Protocol string `json:"protocol"` SearchBase string `json:"searchBase"` - UseSubtree bool `json:"userSubtree,omitempty"` UseTrustStore bool `json:"useTrustStore,omitempty"` UserBaseDN string `json:"userBaseDn,omitempty"` UserEmailAddressAttribute string `json:"userEmailAddressAttribute,omitempty"` @@ -43,6 +42,7 @@ type LDAP struct { UserObjectClass string `json:"userObjectClass,omitempty"` UserPasswordAttribute string `json:"userPasswordAttribute,omitempty"` UserRealNameAttribute string `json:"userRealNameAttribute,omitempty"` + UserSubtree bool `json:"userSubtree,omitempty"` } func (c *client) LDAPList() ([]LDAP, error) {