| 
						
						
							
								
							
						
						
					 | 
					@ -96,7 +96,7 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: ClientIp) -> JsonResult | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // Attempt to bind to ldap with these credentials
 | 
					 | 
					 | 
					        // Attempt to bind to ldap with these credentials
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        match LdapConn::new(CONFIG.ldap_host().as_str()) { | 
					 | 
					 | 
					        match LdapConn::new(CONFIG.ldap_host().as_str()) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            Ok(ldap) => { | 
					 | 
					 | 
					            Ok(ldap) => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                let bind_dn = format!("uid={},{}", ldap_username, CONFIG.ldap_search_base_dn()); | 
					 | 
					 | 
					                let bind_dn = format!("uid={}", ldap_username); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                let bind = ldap.simple_bind(bind_dn.as_ref(), password)?.success(); | 
					 | 
					 | 
					                let bind = ldap.simple_bind(bind_dn.as_ref(), password)?.success(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                if bind.is_err() { | 
					 | 
					 | 
					                if bind.is_err() { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |