Results 1 to 3 of 3

Thread: Client side password management

  1. #1
    Join Date
    Nov 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Client side password management

    Hi all

    I will be writing a client GUI application in Qt which will be used at different organizations around around the world. This GUI needs to connect to our own SQL server which stores all business data.

    Users of this GUI can either login as superusers (whom can add other users and do administrative taksk) or login as normal users which have more restriced access.

    I am thinking what is the best way to handle user authentication on the client side, I don't want to hard code the connection (username/password) information into the client executable, but I also dont want to store an unencrypted password on the client side either.

    I was thinking that maybe the best and easiest way was to create two database roles, one superuser_role, and one normal_role. When a new organzation wants to use this application, we (ourselves) will manually create a database user with the superuser_role. Then the organization can login using that user and inside the GUI they can add any number of normal users, which can then use the application.

    Does this seem reasonable approach to handle user management on the client side? Has someone here done anything similar?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Client side password management

    Simply store encrypted logins and passwords using standard QSettings. First login and password for superuser You can can create on installation process or on first run of application.

  3. #3
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Client side password management

    Write first a small Autetifications - Server like
    cd %QTDIR%/examples/network/fortuneserver on port 8080 any organizations other server.

    Or a remote php file form POST or SOA

    If sender user/pass/organizations is one table server or php file resend the SQL read or write connection params, encripted by own function.

    if client having the correct params and access-level it can admin or redonly SQL data.

Similar Threads

  1. password problem with client and server
    By mate in forum Qt Programming
    Replies: 1
    Last Post: 19th July 2008, 18:20

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.