February 24, 2012

yashaswiram yashaswiram
Lab Rat
10 posts

connect database table with the local username id and password of the system

 

how to connect database table with the local username id and password of the system?. When user logs into the machine. opens up the software, he gets only the assets alloted to him. asset information is contained in the database table..anyone has any idea on how to implement this.I’m using mySQLdb with pyqt4.(creating an asset manager, user gets only the assets alloted to him )

1 reply

February 24, 2012

Tobias Hunger Tobias Hunger
Mad Scientist
3130 posts

You should be able to get the local username using system specific APIs, but getting the password will be tricky: The OS does only keep the hash of it, not the actual value so that nobody can retrieve it.

In Linux you could look into PAM (plugable authentication module): Those are triggered during log in (if the admin has configured them) and actually see the password.

 
  ‹‹ QGLWidget error      Adding TreeView ››

You must log in to post a reply. Not a member yet? Register here!