Authenticating against Web Services on Docker

rsaritzkyrsaritzky Member Posts: 469
Hi,

We're building local Docker Development Environments for NAV2016 development (Using standard NavContainerHelper functions). I'm trying to call a NAV web service using a couple of different web service testing tools (Postman and SOAPUI). In either case, I'm getting an authentication error:

HTTP/1.1 401 Unauthorized
Content-Length: 0
Server: Microsoft-HTTPAPI/2.0
WWW-Authenticate: Negotiate

I can call the web services on our (non-Docker) Test server with no problem.

The Docker Authentication settings for creating the container is set to network authentication.

Has anyone had success in authenticating against web services in the Docker environment without using NAV Authentication?

Thanks,

Ron
Ron

Answers

  • ftorneroftornero Member Posts: 524
    Hello @rsaritzky ,

    Check if NTLM is allowed.

    q9mp2vhre58w.png

    You can enable it with this, change de variables according your environment:
    $ContainerName = 'nav2016'
    $instance = 'NAV'
    
    
    Invoke-ScriptInNavContainer -containerName $ContainerName -ScriptBlock {
            Set-NAVServerConfiguration -ServerInstance $instance -KeyName "ServicesUseNTLMAuthentication" -KeyValue "true" -WarningAction Ignore
    }
          
    # restart container
    Restart-NavContainer $ContainerName
    

    Regards
  • Anita2020Anita2020 Member Posts: 4
    Hello

    Please go through below link it might help you to understand authenticating against web services in the Docker environment without using NAV Authentication.

    https://github.com/microsoft/nav-docker/blob/master/HOWTO.md

    Thanks & Regards,
    Anita
Sign In or Register to comment.