I am using Google Chrome (v.65 stable) to access a company intranet site which uses kerberos credential authentication. To do this I edited the registry Google Chrome Policies to the following:
"AuthNegotiateDelegateWhitelist"="*.intranet.net,*.intranet2.net"
"AuthServerWhitelist"="*.intranet.net,*.intranet2.net"
"AuthSchemes"="basic,digest,ntlm,negotiate"
This allows me to successfully access the intranet site. I have been able to automate some processes on the kerberos-enabled intranet site using Selenium Chromedriver (with the GUI Chrome browser viewable). However, if I use Chrome in "headless" mode, I am returned with
Error: HTTP 401 Authentication Required.
and a message that kerberos credential delegation is not enabled. Python code below.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_experimental_option('useAutomationExtension',False)
#added for headless chrome
chrome_options.set_headless()
driver = webdriver.Chrome(chrome_options=chrome_options)
driver.get('http://intranet.net')
Can Chrome headless incorporate registry Google Chrome Policies?