Skip to content

Instantly share code, notes, and snippets.

@CoaxVex
Created October 7, 2019 19:23
Show Gist options
  • Save CoaxVex/68a48d444a9e9256ceab892d57db5feb to your computer and use it in GitHub Desktop.
Save CoaxVex/68a48d444a9e9256ceab892d57db5feb to your computer and use it in GitHub Desktop.
git diff src/common/utils/ldap/ldap.go
diff --git a/src/common/utils/ldap/ldap.go b/src/common/utils/ldap/ldap.go
index 512af7618..5afad84cc 100644
--- a/src/common/utils/ldap/ldap.go
+++ b/src/common/utils/ldap/ldap.go
@@ -221,6 +221,7 @@ func (session *Session) SearchUser(username string) ([]models.LdapUser, error) {
u.GroupDNList = groupDNList
}
+ /*
log.Debugf("Searching for nested groups")
nestedGroupDNList := []string{}
nestedGroupFilter := createNestedGroupFilter(ldapEntry.DN)
@@ -240,6 +241,7 @@ func (session *Session) SearchUser(username string) ([]models.LdapUser, error) {
u.GroupDNList = append(u.GroupDNList, nestedGroupDNList...)
log.Debugf("Done searching for nested groups")
+ */
u.DN = ldapEntry.DN
ldapUsers = append(ldapUsers, u)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment