Set TScFileStorage so it does not use the UserName as the file name.
Posted: Mon 04 Jun 2018 14:26
I have made a program based on the SimpleSshServer and have noticed that the user names become the file names.
So if I have a user name of "Fred1" then I get a file Fred1.usr.
Is there away to set the TScFileStoreage so the filenames are not the User name?
Can I have all of the user put into one file, so someone looking in directory does not see all of my user names and how many users there are? If not I can live with the limitation but asking in case I am missing some step that would allow this.
On a different issue, I also tried editing the TScFileStorage component in my application and tried adding users through that interface but one I added did not show up when I pressed InitUsers and did not work when I tried to login with the Edit entered UserID/Password.
(I Right clicked on the component and picked edit then the Users to add the user.)
InitUser code...piece
ScFileStorage.Users.Refresh;
ScFileStorage.Users.GetUserNames(lbUserName.Items); //Puts all of the users in the listbox.
//then code to select the user in the Listbox.
In my test I first did a InitUser and all of my file based users showed up but the one I used the edit method did not show up.
So does the edit based way work if you mix it with file based ones??
Thanks
Tom
So if I have a user name of "Fred1" then I get a file Fred1.usr.
Is there away to set the TScFileStoreage so the filenames are not the User name?
Can I have all of the user put into one file, so someone looking in directory does not see all of my user names and how many users there are? If not I can live with the limitation but asking in case I am missing some step that would allow this.
On a different issue, I also tried editing the TScFileStorage component in my application and tried adding users through that interface but one I added did not show up when I pressed InitUsers and did not work when I tried to login with the Edit entered UserID/Password.
(I Right clicked on the component and picked edit then the Users to add the user.)
InitUser code...piece
ScFileStorage.Users.Refresh;
ScFileStorage.Users.GetUserNames(lbUserName.Items); //Puts all of the users in the listbox.
//then code to select the user in the Listbox.
In my test I first did a InitUser and all of my file based users showed up but the one I used the edit method did not show up.
So does the edit based way work if you mix it with file based ones??
Thanks
Tom