I enabled localAuthentication and authenticationCallback in confd.conf, For some cases that I need control the user login more flexibly: for example, if an user “test” attempt to login with a wrong password as per local aaa configuration, and in such scenario I still want to do some other check and let it pass. Is it possible to implement this behavior to do something in the registered authentication callback function?
int OcComponent::auth_cb(struct confd_auth_ctx *actx)
{
int ret = CONFD_OK;
// Here I want to fully control the user login with specified logic
//
return ret;
}
Thanks a lot.