get memberOf
This commit is contained in:
3
main.go
3
main.go
@@ -92,7 +92,8 @@ func GetGroupsOfUser(username string, baseDN string, conn *ldap.Conn) ([]string,
|
|||||||
sr.PrettyPrint(2)
|
sr.PrettyPrint(2)
|
||||||
|
|
||||||
for _, entry := range sr.Entries {
|
for _, entry := range sr.Entries {
|
||||||
entry.PrettyPrint(2)
|
//entry.PrettyPrint(2)
|
||||||
|
fmt.Println(entry.GetAttributeValue("memberOf"))
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user