security agent plugins and autologin
security agent plugins and autologin
- Subject: security agent plugins and autologin
- From: Jonathan Guy <email@hidden>
- Date: Tue, 25 Aug 2015 15:01:13 +0100
Hi all
Not sure if this is the right place to post this but thought I’d give it a try.
I have a security notice which is presented to users when they login. The notice window is generated by a security agent plugin and an entry is added to the mechanisms in the authorization database (just after the authentication mechanism). This works fine while autologin is turned off, the notice pops up fine and the user can choose to accept or decline to continue to login. When autologin is turned on the window containing the notice does not appear and the login hangs.
What I think is happening is at the point at which the notice window is told to makekeyandorderfront the window server is not running (or some kind of context issue) and so the notice window never appears. The plugin then runs modal for the window while waiting for the user to click the “accept” or “decline” button but this will never happen as the window is not there (hope this is making sense) and so the login process hangs.
The mechanism is running without privilege (non-root).
We also tried running the notice as the last mechanism (after loginwindow finished) but made no difference.
We cannot go down the PolicyBanner route as the user needs to have the opportunity to “decline” and stop the login process which the PolicyBanner does not support.
Is there any way we can get this to work?
It obviously can be done as this is what the PolicyBanner does.
Thanks for any help.
Jonathan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden