Comment on attachment 5457[details]
Proposed patch against master
Please don't re-introduce the getuid() checks. This makes it impossible to test the stuff as non-root.
What might be needed is a separate version of global_sam_sid() that does not panic if it does not work. This might then provide the basis for something like can_access_user_database() or so.
Volker