I know that to integrate my module with the
passwd command all I need to do is add the following line to the
password sufficient mymodule.so
My question is I want my module only to be called if the user calling logged in using my module, otherwise I want the common-password to be called.. How can I do this?
I have another configuration file that calls the service authentication from my module..
My issue is to know whether the person calling
passwd has logged in using my module, or another one in order to call ( or not ) my module for the password service..