Implementing Activate User
This commit is contained in:
parent
6999a109a1
commit
639695d26d
1 changed files with 2 additions and 1 deletions
3
utils.go
3
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)
|
||||
|
|
Loading…
Reference in a new issue