cmd/cli: use wmi to get AD domain

Since using syscall.NetGetJoinInformation won't return the full domain
name.

Discovered while investigating issue with SRV ldap check.
This commit is contained in:
Cuong Manh Le
2025-01-23 19:09:10 +07:00
committed by Cuong Manh Le
parent 7ed6733fb7
commit 69e0aab73e
3 changed files with 19 additions and 9 deletions

1
go.mod
View File

@@ -58,6 +58,7 @@ require (
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/pprof v0.0.0-20240409012703-83162a5b38cd // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jsimonetti/rtnetlink v1.4.0 // indirect