#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Hong Kong
    Posts
    0
    Rep Power
    0
    I am a librarian. We have purchased online databases froam vendors. We want readers in our campus be able access to these databases,but we can't tell them the real password in case it be wrongly used. Is it possible to let readers use a pseudo password, then, using PHP, the library server change it to the real one and send the request file for the reader to get access to the online database?
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,643
    Rep Power
    4492
    I'm thinking a real simple solution would be to just add a line like:

    if ($password == "pseudo_passwd")
    {
    $password = "real_passwd";
    }
    else
    {
    echo "Wrong Password";
    }

    ---John Holmes...
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Hong Kong
    Posts
    0
    Rep Power
    0
    Thanks for your kindly answer. But I am not clear how to, on the server side, send the real password to the vendor with HTTP protocol and POST method.

    ---Spwang---
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by SepodatiCreations:
    I'm thinking a real simple solution would be to just add a line like:

    if ($password == "pseudo_passwd")
    {
    $password = "real_passwd";
    }
    else
    {
    echo "Wrong Password";
    }

    ---John Holmes...
    [/quote]

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    35
    Rep Power
    15
    There must be some compus who are allowed to access the database, but they are not administrator, so you won't let them know real_password.

    You can create a set of pseudo_passwd, When one of them input a pseudo_passwd, you can use the following syntax to allow them access database:

    if ($input_pseudo_passwd IN setof{pseudo_passwd} {
    $access_passwd = $your_real_passwd;
    do_database_process();
    } else {
    echo "you have no authetic";
    exit;
    }

    SepodatiCreations's idea is fine.

    ------------------
    Good Good Study
    Day Day Up
  8. #5
  9. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,643
    Rep Power
    4492
    I'm hopeing the script is written in PHP, right? Can you post the part concerning the password here? I'm assuming you fill out a form box, then it's passed to another page that queries the datbase. Can you post that part and maybe we can help you.

    ---John Holmes...
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Hong Kong
    Posts
    0
    Rep Power
    0
    Acually I haven't done anything for this problem yet. But I believe PHP can solve it. Just for example, suppose our campus is granted to access http://www.dialogweb.com which belongs to DIALOG Inc.. Visiters must fill in the form box in its first page with correct accounts to login. My problem is, how to let visiters login with pseudo_password to the web server of the library instead, then, if the pseudo_password is correct, the PHP script on the server login to http://www.dialogweb.com with real_password for visiters, and let them access the databases.

    Thanks,

    ---- Spwang ----

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by SepodatiCreations:
    I'm hopeing the script is written in PHP, right? Can you post the part concerning the password here? I'm assuming you fill out a form box, then it's passed to another page that queries the datbase. Can you post that part and maybe we can help you.

    ---John Holmes...
    [/quote]

  12. #7
  13. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,643
    Rep Power
    4492
    You could recreate the login form on your own servers. check the password entered agains a database or list of pseudo passwords. Then have PHP create a page with a form, using hidden form elements to recreate it. Then automatically submit this form to the page on dialogweb.com that processes the login (using javascript).

    If I'm not making my self clear, let me know and I'll try to post a longer example, or email me.

    Someone else might have a better method, also.

    ---JH
  14. #8
  15. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Hong Kong
    Posts
    0
    Rep Power
    0
    I think you got the key of the problem. To frank, however, I don't know much about PHP. I don't know how to create a form, then send it to www.dialogweb.com, and finally let the original visitor get the response from dialogweb.com.

    Thanks,

    ----Spwang----

Similar Threads

  1. create ftp user and password
    By cephlon in forum FTP Help
    Replies: 3
    Last Post: November 17th, 2004, 11:32 PM
  2. MySQL password problems NOT root
    By braveheart in forum MySQL Help
    Replies: 2
    Last Post: February 15th, 2004, 08:18 AM
  3. data control & password
    By uncle_paulsy in forum Visual Basic Programming
    Replies: 9
    Last Post: January 19th, 2004, 07:15 AM
  4. Replies: 1
    Last Post: January 7th, 2004, 06:41 PM
  5. want password protect?
    By CaptinKirk in forum Beginner Programming
    Replies: 4
    Last Post: December 18th, 2003, 12:00 PM

IMN logo majestic logo threadwatch logo seochat tools logo