From 4cd440dd96145ae5e11f43eb40b65d4260dfca69 Mon Sep 17 00:00:00 2001 From: Dennis Heimbigner Date: Sat, 9 Feb 2019 15:06:03 -0700 Subject: [PATCH] URL with username+pwd in url is not working. re: esupport (DVK-211460) Turns out it was a typo in libdispatch/dauth.c Fix is to Change: HTTP.USERNAME -> HTTP.CREDENTIALS.USERNAME and HTTP.PASSWORD-> HTTP.CREDENTIALS.PASSWORD --- libdispatch/dauth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdispatch/dauth.c b/libdispatch/dauth.c index 0d1085901d..5347eb4557 100644 --- a/libdispatch/dauth.c +++ b/libdispatch/dauth.c @@ -160,8 +160,8 @@ NC_authsetup(NCauth* auth, NCURI* uri) if(ret) {nullfree(uri_hostport); return ret;} } } - setauthfield(auth,"HTTP.USERNAME",user); - setauthfield(auth,"HTTP.PASSWORD",pwd); + setauthfield(auth,"HTTP.CREDENTIALS.USERNAME",user); + setauthfield(auth,"HTTP.CREDENTIALS.PASSWORD",pwd); nullfree(user); nullfree(pwd); nullfree(uri_hostport);