Results 1 to 9 of 9

Thread: Password storing strategy

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Password storing strategy

    Quote Originally Posted by wysota View Post
    How about making a small dedicated application for changing settings which you can protect without touching the main application? Would that help?
    That is exactly my plan, but the problem is more theoretical where and how to store the db access data...

    I'm not sure what you're after precisely.
    Ok, my thought are also still a bit confuse, but the main points are:
    1. I have a MySQL database on a server, of whom I don't know the url, port, user and password at the compilation time of my program.
    2. The program must not ask the user for any detail of the connection. It should be possible to open the program and use it right away.
    3. So the configuration (DB access) of the program must be done by the system operators.

    And the point is that I am not sure, which way I should take to provide the configuration mechanism to the administrators and at the end how and where to store the connection data, that the application can read the MySQL login informations.

    My real intention to hide the password and user login to the DB is, that only my program should be able to access the database.


    I thinks all is pointing to the Fortune Server with an additional SSL, and since I am not very familiar with that I will have some further investigations on that. Thanks for the hint.

    Lykurg

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: Password storing strategy

    Sorry if I'm saying the same (I think I'm not).

    Solution 1:
    We have a server "A" which has MYSQL on it. We also have a client machine "B" which will have your application installed.

    What if just create a server-listener which will live on "A"?

    A client on "B" will have a configuration consisting of an IP and Port for the server which has server-listener running.
    A server-listener waits for client connections and when it gets one it tells the client the credentials for db and the client on "B" will use them for its further work.

    Solution 2:
    The client on "B" doesn't need any credentials. What it will do is communicate with the server-listener on "A".
    Something like this:
    a) client on "B" tries to reach server-listener on "A"
    b) server-listener on "A" gets this connection and creates an instance of server-worker for client
    c) further work looks like this - client communicates with this server and depending on commands the server runs some db queries and returns the result to client.

    Sort of thin client.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Password storing strategy

    Quote Originally Posted by Lykurg View Post
    My real intention to hide the password and user login to the DB is, that only my program should be able to access the database.
    So maybe it's easier to perform server-side certificate verification of the SSL connection between the client the MySQL server? I'm sure you can configure MySQL for that and it should be transparent to Qt.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Password storing strategy

    Quote Originally Posted by lyuts View Post
    b) server-listener on "A" gets this connection and creates an instance of server-worker for client
    That's a nice thought. I will think about it!
    Quote Originally Posted by wysota View Post
    So maybe it's easier to perform server-side certificate verification of the SSL connection between the client the MySQL server? I'm sure you can configure MySQL for that and it should be transparent to Qt.
    Ok this is probably the safest variant, but as said I need to read more about the SSL stuff and how to certificate only one single application etc. But at least I know now what to do the next weekends

Similar Threads

  1. Saving a password in a file
    By srohit24 in forum Qt Programming
    Replies: 12
    Last Post: 25th June 2009, 07:50
  2. writing a username and password dialog
    By sergec in forum Qt Programming
    Replies: 5
    Last Post: 25th April 2007, 17:24
  3. Portable Console Password Prompt
    By vermarajeev in forum General Programming
    Replies: 2
    Last Post: 2nd March 2007, 23:29
  4. About Password Protected Files:
    By vermarajeev in forum Qt Programming
    Replies: 7
    Last Post: 16th February 2007, 14:46
  5. Masking password
    By Lebowski in forum Qt Tools
    Replies: 3
    Last Post: 14th April 2006, 11:17

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
  •  
Qt is a trademark of The Qt Company.