site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com On Aug 5, 2008, at 1:08 AM, Mateusz Łapsa-Malawski wrote: Hi, I have to add disclaimer message accept/decline mechanism to login process on Leopard. So far I've found two possible approaches. 1. /Developer/Examples/Security/bannersample Which is pretty cool but I'd rather prefer user to authenticate earlier before he accepts the disclaimer notice. - what I like is that app executed in login hook has root privileges. - moreover loginwindow waits for the app to close before it goes with further login process - starts Finder, Dock The only problem is that I have no idea how to refuse login. It looks like that returning error code from app doesn't work (i.e. int main() { return 1;}). Loginwindow ignores it. Sending events like kAEReallyLogOut, kAEShutDown to loginwindow is useless because loginwindow is not responding to them at boot. A possible issue with login hook is that you can only have one. like being off-topic AFAIK for this mailing-list? like killing the loginwindow process? _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 2. Login hook in loginwindow Which was exactly what I was looking for but I haven't yet managed it to work. Am I doing something wrong or there is some other way to force loginwindow to cancel login process. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stéphane Sudre