Custom login/lock screen in Mavericks

Discussion in 'Mac Programming' started by skycocker, Feb 5, 2014.

  1. skycocker macrumors newbie

    Joined:
    Feb 5, 2014
    #1
    Hello everyone, I have a little problem with creating an authenication plugin for OS X (I need to modify the lock/login screen like "Knock to unlock" does) - I tried using the NameAndPassword ADC example (https://developer.apple.com/library...doc/uid/DTS10004022-Intro-DontLinkElementID_2), I managed to build it on Mavericks by changing the hardcoded sdk path to the default base sdk in project settings, but even after I put the resulting .bundle file inside "/System/Library/CoreServices/SecurityAgentPlugins/" or "/Library/Security/SecurityAgentPlugins" (tried both) nothing changes.

    I know I need to modify the /etc/authorizations file, but it's no longer present in Mavericks (now there's that auth.db sqlite3 file) and I don't know how to register my plugin there, therefore I'm kind of stuck. I really tried looking everywhere, but even on StackOverflow I didn't find any help (http://stackoverflow.com/questions/21582995/custom-login-lock-screen-in-os-x-mavericks).

    Do you know the right way to modify lock screen in 10.9?

    Best,
    Michał
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    I wouldn't expect a question like this to be answered within 6 hours on StackOverflow - questions that are answered that quickly are the really easy ones where the person has just been up all night and missed a brace somewhere or where the person has <100 hours of programming experience.

    I'd give it 2 days, then put a bounty on it, then give it until the bounty expires a week later before I'd say StackOverflow has failed you. (Putting a bounty on it will necessitate getting 75 rep first - I helped you out by up voting that question. Getting 53 more rep in 2 days shouldn't be too hard, just check the front page of SO every few hours and you should see a few questions which are easy to answer, or failing that, edit* or flag, each of which offers a small rep bump.)

    * Not sure what it takes to propose an edit to an answer or question... I think it might be something you're allowed to do from the get-go? Flagging requires 15 rep, which you're already above.
     
  3. skycocker thread starter macrumors newbie

    Joined:
    Feb 5, 2014
    #3
    I found the right way to edit the auth database:

    Code:
    security authorizationdb read system.login.console > outfile.plist
    modify the resulting file as you wish, and then
    Code:
    security authorizationdb write system.login.console < outfile.plist
    My whole answer to the question is on StackOverflow:
    http://stackoverflow.com/a/21618085/2113110
     

Share This Page