<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hello Group<br><br></div>  I have a problem facing with reset option that PAM supports.<br><br></div>  I have a config like this<br>
<br></div>  auth sufficient Module1<br></div>  auth sufficient Module2<br><br></div><div>  account required Module1<br></div><div>  account required Module2<br></div>  account  [success=ok ignore=ignore perm_denied=reset default=ok]     Module_X<br>
<br></div>The problem I am facing is "reset" option is not working. The code flow is observed a s follows<br><br></div>  1) Auth Module1 success<br> <br></div>  2) Account Module1, Module 2 success<br><br></div>
  3) Account Module_X-> fail (note " but reset option was provided in config)<br><br></div>  4) Auth Module2 success<br><br></div>  5) Account Module1, Module2 success<br><br></div>  6) Acount Module-X - > success<br>
<br></div>But the problem is overall authorization/PAM is reporting failure due to step 3.<br><br></div>My understanding is it has to reset the current state but looks like it is maintaining the state across the stack even though reset option is provided<br>
<br></div>Please let me know if I am missing something here<br><br></div>Help is appreciated<br><br>Thanks<br>Praneeth<br></div>