mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 09:44:21 +00:00 
			
		
		
		
	implicated error for ldap dial
This commit is contained in:
		@@ -54,9 +54,8 @@ func LoginUser(name, passwd string) (a string, r bool) {
 | 
			
		||||
// searchEntry : search an LDAP source if an entry (name, passwd) is valide and in the specific filter
 | 
			
		||||
func (ls Ldapsource) SearchEntry(name, passwd string) (string, bool) {
 | 
			
		||||
	l, err := ldapDial(ls)
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Debug("LDAP Connect error, disabled source %s", ls.Host)
 | 
			
		||||
		log.Error("LDAP Connect error, %s:%v", ls.Host, err)
 | 
			
		||||
		ls.Enabled = false
 | 
			
		||||
		return "", false
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user