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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to