Closed Varbin closed 3 years ago
Thanks for the contribution!
Will need some time to check it out.
On second look it still looks pretty good. Thanks again for the excellent effort!
The token based enumeration is definitely the preferred way, so in a future major release will consider deprecating the ServerName
config field and the GetUserGroups()
func altogether.
To use the "new" method, set
Config.ServerName
to an empty string whenConfig.EnumerateGroups
is set; to continue asking another server setConfig.ServerName
to a valid server name.Closes #1.
The set of groups returned from the new method are quite different from the old one, but should roughly return the same results as
whoami /groups
: