Thanks! That was what I was looking for. ( I had seen that link before, but it wasn't obvious that it contained the implementation source for the client

)
If you have the time to make the change part of the client before 3.0 ships, that would be great, and the change is really really simple..
The need:
Eliminate the username/password from the build scripts.
The solution:
You achieve that by running the REMEMBERLOGIN command on the build machine once and the scripts no longer need to specify them.
The problem:
However, REMEMBERLOGIN today requires that the repository be specified as part of the command when -host, -ssl, -user, and -password are specified. But in our case, we get the source from one repository and the build scripts and 3rd party library stuff from a different repository. So this makes the REMEMBERLOGIN command ineffective for us.
The fix:
The change needed is to make the repository be optional in the REMEMBERLOGIN command. The change needs a total of 3 lines of code change.
1st change
Code: Select all
public static bool CommandNeedsRepositorySpecified(Command c)
{
bool bRet = true;
switch (c)
{
case Command.ADDREPOSITORY:
...
case Command.REMEMBERLOGIN:<======
bRet = false;
break;
}
return bRet;
}
Second change
Code: Select all
void Login(bool bAllowAuto, bool bSaveSession)
{
...
// lower case - used later in the method
if( strRepository != null && strRepository.Length == 0)<======
strRepository = _args.Repository;<======
if ( strRepository != null )
{
strRepository = strRepository.ToLower();
}
...
}
If you think the above makes sense for other users too, please include it in the 3.0 client...

Thanks
Ramesh