mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	fixup: group filters
This commit is contained in:
		
							parent
							
								
									e0b1cd8781
								
							
						
					
					
						commit
						81b31cef28
					
				@ -1102,10 +1102,13 @@ mod tests {
 | 
				
			|||||||
        let mut ldap_handler = setup_bound_handler(mock).await;
 | 
					        let mut ldap_handler = setup_bound_handler(mock).await;
 | 
				
			||||||
        let request = make_search_request(
 | 
					        let request = make_search_request(
 | 
				
			||||||
            "ou=groups,dc=example,dc=com",
 | 
					            "ou=groups,dc=example,dc=com",
 | 
				
			||||||
 | 
					            LdapFilter::And(vec![
 | 
				
			||||||
                LdapFilter::Equality(
 | 
					                LdapFilter::Equality(
 | 
				
			||||||
                    "uniqueMember".to_string(),
 | 
					                    "uniqueMember".to_string(),
 | 
				
			||||||
                    "cn=bob,ou=people,dc=example,dc=com".to_string(),
 | 
					                    "cn=bob,ou=people,dc=example,dc=com".to_string(),
 | 
				
			||||||
                ),
 | 
					                ),
 | 
				
			||||||
 | 
					                LdapFilter::Equality("objectclass".to_string(), "groupOfUniqueNames".to_string()),
 | 
				
			||||||
 | 
					            ]),
 | 
				
			||||||
            vec!["cn"],
 | 
					            vec!["cn"],
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        assert_eq!(
 | 
					        assert_eq!(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user