From 639695d26d816a52fd610c5c41845feeeb3cfd9c Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Fri, 21 Jul 2023 09:23:45 +0200 Subject: [PATCH] Implementing Activate User --- utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 2c87db0..401a0ef 100644 --- a/utils.go +++ b/utils.go @@ -42,7 +42,8 @@ func suggestPassword() string { func addNewUser(newUser NewUser, config *ConfigFile) bool { log.Printf(fmt.Sprint("Adding New User")) - + l, _ := ldap.DialURL(config.LdapServerAddr) + l.Bind(config.NewUserDN, config.NewUserPassword) // l.Bind(config.) dn := newUser.DN req := ldap.NewAddRequest(dn, nil)