Jump to content

Force sign-off and sign-on on application start


applenaut

Recommended Posts

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

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

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

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

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

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

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?

plastic_2017-06-30_10-04-47.png

Link to comment
Share on other sites

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...