applenaut Posted June 26, 2017 Report Share Posted June 26, 2017 Hello, We have a unique situation where multiple users must use the same computer to do their work. The goal is to have every user sign on and off before they make any changes to the workspace and submit changesets. However, people tend to forget. Is there any way to force a sign-off on application start, and initialize a login prompt shortly thereafter? Thanks. Link to comment Share on other sites More sharing options...
manu Posted June 27, 2017 Report Share Posted June 27, 2017 Yes! you actually have two different ways to do it. 1) Create an script with the following * remove the current client.conf file. * place a new one ommiting the "<SecurityConfig>" * launch plastic It will ask for credentials every time. 2) Create multiple scripts/shortcuts, one for each developer with independent configurations. Script1 for John: C:\Users\manu\Desktop\client.john.conf Script2 for Mike: C:\Users\manu\Desktop\client.mike.conf Script3 for Diana: C:\Users\manu\Desktop\client.diana.conf Each client.conf will have the credentials stored so each shortcut will launch a "different" GUI, each one with different credentials. Link to comment Share on other sites More sharing options...
applenaut Posted June 27, 2017 Author Report Share Posted June 27, 2017 Thanks for replying. My current client.conf does not have anything in SecurityConfig. It looks like: Quote <SecurityConfig /> We do have logins under the SecurityConfig for our profiles.conf. Please advise on what we need to do to log users off and create a login prompt when app launches. Link to comment Share on other sites More sharing options...
manu Posted June 28, 2017 Report Share Posted June 28, 2017 which is your <WorkingMode>? Link to comment Share on other sites More sharing options...
applenaut Posted June 28, 2017 Author Report Share Posted June 28, 2017 client.conf: <WorkingMode>NameWorkingMode</WorkingMode> profiles.conf: <WorkingMode>LDAPWorkingMode</WorkingMode> Link to comment Share on other sites More sharing options...
manu Posted June 29, 2017 Report Share Posted June 29, 2017 Ok, in that case do the following. 1) Copy the profile.conf "<WorkspaceServer>" and "<WorkingMode>" tags to the client.conf. 2) Remove the profiles.conf file. 3) Try to open plastic, it should request you credentials, this is true when you don't have credentials inside the client.conf file at the <SecurityConfig> tag. If it works as expected you can proceed with: Link to comment Share on other sites More sharing options...
applenaut Posted June 29, 2017 Author Report Share Posted June 29, 2017 There is no <WorkspaceServer> in my profiles.conf. Here's what my profiles.conf looks like (redacted): <?xml version="1.0"?> <ServerProfileData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Profiles> <ServerProfile> <Name>COMPANYNAME@cloud_LDAPWorkingMode</Name> <Server>COMPANYNAME@cloud</Server> <WorkingMode>LDAPWorkingMode</WorkingMode> <SecurityConfig>::0:EMAIL@COMPANYNAME.com:[SOME ENCODING]:</SecurityConfig> </ServerProfile> <ServerProfile> <Name>COMPANYNAME1@cloud_LDAPWorkingMode</Name> <Server>COMPANYNAME1@cloud</Server> <WorkingMode>LDAPWorkingMode</WorkingMode> <SecurityConfig>::0:EMAIL@COMPANYNAME.com:[SOME ENCODING]:</SecurityConfig> </ServerProfile> </Profiles> </ServerProfileData> Link to comment Share on other sites More sharing options...
manu Posted June 30, 2017 Report Share Posted June 30, 2017 Ok, I'll explain it in a different way. In your client.conf file, paste and replace the following tags, fix the "WorkspaceServer" tag with your info, the the rest as I wrote them: <WorkspaceServer>MACHINE_SERVER_NAME:8087</WorkspaceServer> <WorkingMode>LDAPWorkingMode</WorkingMode> <SecurityConfig></SecurityConfig> Now if you open the GUI it will request the credentials. If you write the credentials those will be written at the "SecurityConfig" tag. If you want to get asked for credentials you must leave the "SecurityConfig" tag body empty. On the other hand as I explained here: You can have proper configured client.conf files for your user, one for each. Link to comment Share on other sites More sharing options...
applenaut Posted June 30, 2017 Author Report Share Posted June 30, 2017 Thank you for continuing to support me on this issue. I've done what you had posted, and it does now prompt for login. Thank you for that. However, after login the user needs to set up the repo and workspace all over again (see attached). This would be a pain in the butt for them. I suspect they will prefer to log out manually (which defeats the purpose). Is there any way to have them login and have Plastic understand what has already been set up? Link to comment Share on other sites More sharing options...
calbzam Posted July 3, 2017 Report Share Posted July 3, 2017 Hi, If you check the "client.conf" file, this is the field where you setup your current workspace to be remembered: <CurrentWorkspace>c:\Users\carlos\wkspaces\MyWorkspace</CurrentWorkspace> Regards, Carlos. Link to comment Share on other sites More sharing options...
applenaut Posted July 4, 2017 Author Report Share Posted July 4, 2017 I have not changed the <CurrentWorkspace> tag. I've only changed these portions of the "client.conf" file: <WorkspaceServer>local:8087</WorkspaceServer> <WorkingMode>LDAPWorkingMode</WorkingMode> <SecurityConfig></SecurityConfig> The client still prompts me for workspace after logging in. Link to comment Share on other sites More sharing options...
calbzam Posted July 5, 2017 Report Share Posted July 5, 2017 Hi, I can see when you enter the credentials, the view to select/create a workspace is automatically opened. But you can click on "Cancel" and when you re-open the GUI it will be already configured with the new credentails and you won't be requested to select the workspace again. Regards, Carlos. Link to comment Share on other sites More sharing options...
applenaut Posted July 5, 2017 Author Report Share Posted July 5, 2017 This works. A bit convoluted, but works. Are there any plans to allow easier logging in and out in the near future? Hot swap / remote workstations are becoming popular. I can see this as an important feature to have for educational institutions where multiple people use the same computer for tasks. Just a thought. Thanks for your help. Link to comment Share on other sites More sharing options...
calbzam Posted July 6, 2017 Report Share Posted July 6, 2017 Hi, Your feedback is always welcome: https://plasticscm.uservoice.com Regards, Carlos. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.