mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Merge pull request #3974 from stonezdj/ldap_ping_timeout
Setting timeout for ldap ping
This commit is contained in:
commit
ec173305a3
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user