Wrapper around the function we use to check passwords with LDAP which has the function signature required to work with SASL. conn: The Sasl connection struct, which we ignore context: Ignored; always NULL user: The username to authenticate pass: The password to use passlen: The length of pass propctx: Ignored - properties requested Return: SASL_OK on success, SASL_FAIL otherwise
| 397 | // propctx: Ignored - properties requested |
| 398 | // Return: SASL_OK on success, SASL_FAIL otherwise |
| 399 | int SaslLdapCheckPass(sasl_conn_t* conn, void* context, const char* user, |
| 400 | const char* pass, unsigned passlen, struct propctx* propctx) { |
| 401 | return DoLdapCheck(user, pass, passlen) ? SASL_OK : SASL_FAIL; |
| 402 | } |
| 403 | |
| 404 | // Sasl wants a way to ask us about some options, this function provides |
| 405 | // answers. Currently we only support telling Sasl about the log_level; other |
nothing calls this directly
no test coverage detected