mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-08 21:30:07 -06:00
dont connect ldap on startup
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
5
changelog/unreleased/dont-connect-ldap-on-startup.md
Normal file
5
changelog/unreleased/dont-connect-ldap-on-startup.md
Normal file
@@ -0,0 +1,5 @@
|
||||
Bugfix: Don't connect to ldap on startup
|
||||
|
||||
This leads to misleading error messages. Instead we connect on first request
|
||||
|
||||
https://github.com/owncloud/ocis/pull/6565
|
||||
@@ -205,10 +205,10 @@ func (c ConnWithReconnect) GetConnection() (*ldap.Conn, error) {
|
||||
}
|
||||
|
||||
func (c ConnWithReconnect) ldapAutoConnect(config Config) {
|
||||
l, err := c.ldapConnect(config)
|
||||
if err != nil {
|
||||
c.logger.Error().Err(err).Msg("autoconnect could not get ldap Connection")
|
||||
}
|
||||
var (
|
||||
l *ldap.Conn
|
||||
err error
|
||||
)
|
||||
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user