I found a way to edit the database - at first I tried direct changes to /var/private/db/auth.db sqlite, but this did not work, so after a while I managed to make it easier than I thought:
security authorizationdb read system.login.console > outfile.plist
After that, you need to modify the resulting outfile.plist , as it said in the NullAuthPlugin file:
<key>mechanisms</key> <array> <string>NameAndPassword:invoke</string>
(the last line is the one to be added to the file).
Then, to save it to the database:
security authorizationdb write system.login.console < outfile.plist
Then the changes should be visible on any login / lock screen of your system, but be careful!
You cannot authenticate with the current version of the NameAndPassword example!
Be sure to set up a working SSH connection on Mac before that you are modifying in the database, so you can undo the changes using another device (just repeat the db modification process, but this time delete the one you added earlier).
Michał Siwek
source share