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)