Unable to publish FileBasedProject with windows username+password authentication

Hi,

I'm happy to see that I can already authenticate with windows username+password when creating a new instance of TranslationProviderServer(). I can read TMs, add them to the project etc. (Here I specify: useWindowsAuthentication=false)

However, it seems, that using the same credentials, I cannot publish the project to a GS 2017 server like:

var result = project.PublishProject(new Uri(server), useWindowsAuthentication = false, windowsUserName, windowsPassword, targetOrganization, (sender, args) => { });

I keep getting an "Authentication failed" error. If I use a non-windows SDL account, then it works. But not with a windows account.

(using useWindowsAuthentication=true I get "value cannot be null")

Can you please help? Is this supported at all? I remember that in the old times, TranslationProviderServer didn't work with explicit windows credentials either. But it seems to work now. That's why I was hoping that publishing also works.

I have Studio 2017 SR1 14.1.10011.20356, and GS: 14.2.7902.0 - SR1.

Thanks,

Tamas

Parents Reply
  • Hello Andrea, I still get this error message: 

    User name: domainname\rmonette
    User password: XXXXXX
    ////////-->Log entry point<--////////
    The call to functionality 'PublishSdlProjectToGroupShare' by user generated an error on: Tuesday, September 3, 2019, 09:42:53.
    Message: Value cannot be null.
    Parameter name: userName
    Stack trace: at Sdl.ProjectAutomation.FileBased.FileBasedProject.PublishProject(Uri serverUri, Boolean useWindowsAuthentication, String userName, String password, String organizationPath, EventHandler`1 progressEventHandler)
    ////////-->Log exit point<--////////

    What should be the format of the user name/pwd in this cas? 

    Ive seen threads where they add keys to those fields... like this: 

    string strUserName = string.Format("user={0}", reqPublishProjectToGroupShare.UserName);
    string strUserPassword = string.Format("password={0}", reqPublishProjectToGroupShare.Password);

    R

Children