views:

37

answers:

1

I have an OS X Python application that uses wxPython for it's GUI controls. I'm looking to prompt the user for administrative rights (akin to using the Authorization Service API in Objective-C) before starting a network service.

The closest library I have found is Bob Ippolito's Authorization library but it is fairly outdated and has compatibility issues with Snow Leopard (OS X 10.6.4 / Python 2.6.4).

My workaround would be to create an Objective-C launcher that runs the python application with administrative rights but that feels fairly kludgy.

Thanks for the help!

A: 

You might want to check the answer to another question posted here: http://stackoverflow.com/questions/3123055/what-kind-of-api-should-i-use-to-elevate-user-privilege-to-super-user-in-a-mac-os

EOL
There aren't Python bindings that I could find, but I think I can use ctypes and launchd(8) to accomplish what I'm looking for. Thanks!
Erik Karulf
That's also my impression. :)
EOL