mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-30 05:35:44 +00:00 
			
		
		
		
	fix: fix error message in ldap search result
This commit is contained in:
		| @@ -53,7 +53,7 @@ func (l *LDAP) Search(username string) (string, error) { | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	if len(searchResult.Entries) != 1 { | 	if len(searchResult.Entries) != 1 { | ||||||
| 		return "", fmt.Errorf("user not found or multiple entries found for username: %s", username) | 		return "", fmt.Errorf("err multiple or no entries found for user %s", username) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	// User found, return the distinguished name (DN) | 	// User found, return the distinguished name (DN) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stavros
					Stavros