Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. India
  4. Connect database table with the local username id and password of the system

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

Scheduled Pinned Locked Moved India
2 Posts 2 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yashaswiram
    wrote on 23 Feb 2012, 23:16 last edited by
    #1

    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 Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 24 Feb 2012, 07:24 last edited by
      #2

      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.

      1 Reply Last reply
      0

      2/2

      24 Feb 2012, 07:24

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved