Active Directory client library that allows you to perform basic operations with users and groups: creation, deletion, search, changes to members and composition in groups.
The library is a wrapper around go-ldap/ldap module that provides a more convient client for Active Directory.
Import module in your go app:
import "github.com/dlampsi/adc"
cfg := &adc.Config{
URL: "ldaps://my.ad.site:636",
Bind: &adc.BindAccount{
DN: "CN=admin,DC=company,DC=com",
Password: "***",
},
SearchBase: "OU=default,DC=company,DC=com",
}
cl := adc.New(cfg)
if err := cl.Connect(); err != nil {
// Handle error
}
// Do stuff ...
See examples directory for extended usage examples.
- Fork this repositpry
- Create new PR from
main
branch - Create PR from your fork
- Make sure tests and coverage tests pass
- Request review