Jono Posted January 7, 2009 Share Posted January 7, 2009 (edited) How do I create Username and Password protected scripts that link to a Server? Like I store a different User/Passwords for each person on the server, and so that each user can only be logged in by 1 person at a time, So that only those I grant permission to access, can access the Password protected scripts. Can anyone help with this? Thank you in advance! Edited January 7, 2009 by Jono Link to comment Share on other sites More sharing options...
99ojo Posted January 7, 2009 Share Posted January 7, 2009 Hi, you may store user and password in your script and pass these as command line parameters for your exe file. see command line parameters help for more information. ;-)) Stefan Link to comment Share on other sites More sharing options...
Jono Posted January 7, 2009 Author Share Posted January 7, 2009 Hi,you may store user and password in your script and pass these as command line parameters for your exe file.see command line parameters help for more information.;-))StefanBut then 2 or more users could login that User if they got the info, correct? Link to comment Share on other sites More sharing options...
99ojo Posted January 7, 2009 Share Posted January 7, 2009 (edited) But then 2 or more users could login that User if they got the info, correct?Hi,maybe. it depends, where and how you store the exe file. Suggestions:1) if you store the file on windows server, you can make a share for every user with the restriction, that the share can only be connected by one user.2) if username and password is correct, you create a temporary file and hold it open while the program is running. if the file exist you abort the script. at the end of the script you delete the temporary file (e.g. ~username.tmp). so the program could only be run once by the same user at runtime. ;-))Stefan Edited January 7, 2009 by 99ojo Link to comment Share on other sites More sharing options...
Jono Posted January 7, 2009 Author Share Posted January 7, 2009 Hi,maybe. it depends, where and how you store the exe file. Suggestions:1) if you store the file on windows server, you can make a share for every user with the restriction, that the share can only be connected by one user.2) if username and password is correct, you create a temporary file and hold it open while the program is running. if the file exist you abort the script. at the end of the script you delete the temporary file (e.g. ~username.tmp). so the program could only be run once by the same user at runtime. ;-))StefanSorry lost me. I wouldn't know how to link Au3 file to it. Its the Script I'm after. Link to comment Share on other sites More sharing options...
yucatan Posted January 7, 2009 Share Posted January 7, 2009 Sorry lost me. I wouldn't know how to link Au3 file to it. Its the Script I'm after.the easy way is to just make a tcp server your software ask on tcp tot he server witht he username and password if he may log inif yes continu if no quit;)easy Link to comment Share on other sites More sharing options...
Jono Posted January 15, 2009 Author Share Posted January 15, 2009 the easy way is to just make a tcp server your software ask on tcp tot he server witht he username and password if he may log inif yes continu if no quit;)easyThank you I will try it Link to comment Share on other sites More sharing options...
yucatan Posted January 15, 2009 Share Posted January 15, 2009 Thank you I will try itit not that hard make the server multie client the code for that is on this forum somewere if u need help just ask i have worded alot with tcp protocol in autoit so if u have any questions let me know just grab the code from the helpfile and start working it goodluck Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now