diff --git a/src/common/const.go b/src/common/const.go index 82be6df84..bf6ed85f6 100644 --- a/src/common/const.go +++ b/src/common/const.go @@ -21,9 +21,9 @@ const ( UAAAuth = "uaa_auth" ProCrtRestrEveryone = "everyone" ProCrtRestrAdmOnly = "adminonly" - LDAPScopeBase = 1 - LDAPScopeOnelevel = 2 - LDAPScopeSubtree = 3 + LDAPScopeBase = 0 + LDAPScopeOnelevel = 1 + LDAPScopeSubtree = 2 RoleProjectAdmin = 1 RoleDeveloper = 2 diff --git a/src/ui/api/ldap.go b/src/ui/api/ldap.go index e39b491ed..43e192288 100644 --- a/src/ui/api/ldap.go +++ b/src/ui/api/ldap.go @@ -51,7 +51,9 @@ func (l *LdapAPI) Prepare() { // Ping ... func (l *LdapAPI) Ping() { - var ldapConfs models.LdapConf + var ldapConfs = models.LdapConf{ + LdapConnectionTimeout: 5, + } var err error var ldapSession *ldapUtils.Session