Calls into the LDAP utils to check the provided user/pass, and the provided group filters.
| 377 | // Calls into the LDAP utils to check the provided user/pass, |
| 378 | // and the provided group filters. |
| 379 | bool DoLdapCheck(const char* user, const char* pass, unsigned passlen) { |
| 380 | ImpalaLdap* ldap = AuthManager::GetInstance()->GetLdap(); |
| 381 | bool success = ldap->LdapCheckPass(user, pass, passlen); |
| 382 | if (!success) { |
| 383 | return false; |
| 384 | } |
| 385 | |
| 386 | return DoLdapCheckFilters(user); |
| 387 | } |
| 388 | |
| 389 | // Wrapper around the function we use to check passwords with LDAP which has the function |
| 390 | // signature required to work with SASL. |
no test coverage detected