To check if an Active Directory group exists using Go, you'll need to use the ldap
package to communicate with the Active Directory through LDAP protocol.
Here is an example code that checks if a group exists:
main.go1164 chars53 lines
Make sure to replace the server
, bindDN
, bindPassword
and groupName
with your own values.
gistlibby LogSnag