Working on signup workfow
This commit is contained in:
parent
b55fcc0968
commit
199bbd5c4f
1 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,10 @@ func add(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
req.Attribute("description", []string{user.Description})
|
req.Attribute("description", []string{user.Description})
|
||||||
}
|
}
|
||||||
// Add the User
|
// Add the User
|
||||||
err := ldapConn.Add(req)
|
// err := ldapConn.Add(req)
|
||||||
|
// var ldapNewConn *ldap.Conn
|
||||||
|
ldapNewConn, err := openNewUserLdap(config)
|
||||||
|
err = ldapNewConn.Add(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf(fmt.Sprintf("add(User) ldapconn.Add: %v", err))
|
log.Printf(fmt.Sprintf("add(User) ldapconn.Add: %v", err))
|
||||||
log.Printf(fmt.Sprintf("add(User) ldapconn.Add: %v", req))
|
log.Printf(fmt.Sprintf("add(User) ldapconn.Add: %v", req))
|
||||||
|
|
Loading…
Reference in a new issue