Authenticating against Web Services on Docker
 
            
                
                    rsaritzky                
                
                    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
                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
1                
            Answers
- 
            Hello @rsaritzky ,
 Check if NTLM is allowed. 
 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
 0
- 
            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,
 Anita0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 323 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

