There’s nothing fundamentally wrong with the code itself, but various environmental factors make it harder to use. You’ve figure one out already (the fact that you have to use the
security
tool to modify the authorisation database) and now you’re stuck on another (seeing your logging).
This is actually easier than the current NullAuthPlugin docs would have you believe, it’s just that I didn’t understand ASL properly back when I wrote NullAuthPlugin )-: The trick is:
continue to log your output at debug level (preferably with ASL rather than
syslog
, and thus using ASL_LEVEL_DEBUG
)change the ASL master filter mask to show debug messages
$ sudo syslog -c 0 -d
IMPORTANT Don’t forget the
sudo
. If you do, ASL doesn't print an error, it simply fails to adjust the mask (r. 18200871).watch the log
$ syslog -w
As always, it's a good idea to run this last command over an SSH connection so that you can see these log messages show up in real time.
Finally, you can reset the master filter mask with the command shown below.
$ sudo syslog -c 0 off
Share and Enjoy
—
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"