Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devopsbot-mts committed Feb 15, 2019
1 parent f4c1f51 commit 99ed1ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ldap-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ func (lc *LDAPClient) Connect() error {
}

lc.Conn = l
err = lc.Conn.Bind(lc.BindDN, lc.BindPassword)
if err != nil {
return fmt.Errorf("cannot bind to ldap. Reason %s", err)
}
}
err := lc.Conn.Bind(lc.BindDN, lc.BindPassword)
if err != nil {
return fmt.Errorf("cannot bind to ldap. Reason %s", err)
}

return nil
}

Expand Down

0 comments on commit 99ed1ab

Please sign in to comment.