There is no supported API for this, and even if you find a workaround, your application will most likely be rejected from the Mac App Store to request a password from the user.
, , . , . , , (, ), .
, " ", , , . , , . , , , , -, , .
- , , (. http://www.defenceindepth.net/2011/09/cracking-os-x-lion-passwords.html). , , root, .
, . API- , , . API-, .
Apple , API . , .
Apple API, , , , , . , API , , , API.