-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
401 When Running in Docker #175
Comments
Also, do you have any tips for utilizing electron in the Docker container? Thanks again |
Hey @DakotaWray2, thank you for using the library. Make sure that you don't have locally generated One of the options is disabling encryption encryptPassword: false, passing static Hope this helps.
Sorry, no. I have not exposed any UI with Docker. |
Hi @koltyakov thanks for the response. Unfortunately I've tried all of the above recommendations plus a few more and it still comes back with 401 unauthorized :/ |
Will it work for you if you just do: docker run -p 9090:8080 --name=sharepoint --hostname=localhost -it koltyakov/sp-rest-proxy node ./server Enter prompted credentials, which you'd know works. Then open http://0.0.0.0:9090/. And check Just check it on my end with an NTLM SharePoint farm across an ocean :). |
Tried the above (thank you again) but it still doesn't like the configuration somehow. |
I set up a container for node-sp-auth-troubleshoot and ran it with success output. wraydak@machine MINGW64 ~/Repos/Docker/test2/node-sp-auth-troubleshoot (master)
$ docker run --name=node-proxy -it node-proxy node ./index
? SharePoint URL http://spurl
? Authentication strategy User credentials (NTLM)
? User name xxx
? Domain xxx
? Password xxx
Connecting to site: xxx
=== Success ===
{
headers: {
Connection: 'Close',
Authorization: 'NTLM __token__'
},
options: {
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
[Symbol(kCapture)]: false
}
}
}``` |
Hi and thank you very much for a wonderful tool. I've used it for many years.
When running in a docker container I am receiving 401 errors when trying to connect via NTLM. Running the same API requests through the proxy without being dockerized allows successful api returns. below you will find the docker inspect output for the container. I am running over port 4000. Any insight would be much appreciated. Thank you
The text was updated successfully, but these errors were encountered: