diff options
-rw-r--r-- | radicale-proxy-ldap-auth-fn.js.patch | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/radicale-proxy-ldap-auth-fn.js.patch b/radicale-proxy-ldap-auth-fn.js.patch index de1ff85..0af2d89 100644 --- a/radicale-proxy-ldap-auth-fn.js.patch +++ b/radicale-proxy-ldap-auth-fn.js.patch @@ -1,42 +1,45 @@ ---- Radicale-3.1.7/radicale/web/internal_data/fn.js.orig 2022-04-20 11:57:41.000000000 -0400 -+++ Radicale-3.1.7/radicale/web/internal_data/fn.js 2022-05-16 18:21:39.714987958 -0400 -@@ -119,7 +119,7 @@ +Last-modified: 2024-06-30-1 16:59 +Version: 3.2.2-1.el8.noarch +Message: Update my customization to radicale to depend on my HTTP_X_REMOTE_USER header by removing the authentication in the calls here. +--- /usr/lib/python3.9/site-packages/radicale/web/internal_data/fn.js.orig 2024-06-18 13:01:16.000000000 -0400 ++++ /usr/lib/python3.9/site-packages/radicale/web/internal_data/fn.js 2024-06-30 16:55:44.727935645 -0400 +@@ -150,7 +150,7 @@ */ function get_principal(user, password, callback) { let request = new XMLHttpRequest(); -- request.open("PROPFIND", SERVER + ROOT_PATH, true, user, password); -+ request.open("PROPFIND", SERVER + ROOT_PATH, true); //, user, password); +- request.open("PROPFIND", SERVER + ROOT_PATH, true, user, encodeURIComponent(password)); ++ request.open("PROPFIND", SERVER + ROOT_PATH, true); //, user, encodeURIComponent(password)); request.onreadystatechange = function() { if (request.readyState !== 4) { return; -@@ -162,7 +162,7 @@ +@@ -194,7 +194,7 @@ */ function get_collections(user, password, collection, callback) { let request = new XMLHttpRequest(); -- request.open("PROPFIND", SERVER + collection.href, true, user, password); -+ request.open("PROPFIND", SERVER + collection.href, true); //, user, password); +- request.open("PROPFIND", SERVER + collection.href, true, user, encodeURIComponent(password)); ++ request.open("PROPFIND", SERVER + collection.href, true); //, user, encodeURIComponent(password)); request.setRequestHeader("depth", "1"); request.onreadystatechange = function() { if (request.readyState !== 4) { -@@ -288,7 +288,7 @@ +@@ -342,7 +342,7 @@ */ function delete_collection(user, password, collection, callback) { let request = new XMLHttpRequest(); -- request.open("DELETE", SERVER + collection.href, true, user, password); -+ request.open("DELETE", SERVER + collection.href, true); //, user, password); +- request.open("DELETE", SERVER + collection.href, true, user, encodeURIComponent(password)); ++ request.open("DELETE", SERVER + collection.href, true); //, user, encodeURIComponent(password)); request.onreadystatechange = function() { if (request.readyState !== 4) { return; -@@ -313,7 +313,7 @@ +@@ -367,7 +367,7 @@ */ function create_edit_collection(user, password, collection, create, callback) { let request = new XMLHttpRequest(); -- request.open(create ? "MKCOL" : "PROPPATCH", SERVER + collection.href, true, user, password); -+ request.open(create ? "MKCOL" : "PROPPATCH", SERVER + collection.href, true); //, user, password); +- request.open(create ? "MKCOL" : "PROPPATCH", SERVER + collection.href, true, user, encodeURIComponent(password)); ++ request.open(create ? "MKCOL" : "PROPPATCH", SERVER + collection.href, true); //, user, encodeURIComponent(password)); request.onreadystatechange = function() { if (request.readyState !== 4) { return; -@@ -502,7 +502,7 @@ +@@ -569,7 +569,7 @@ try { read_form(); let password = password_form.value; @@ -45,8 +48,8 @@ error = ""; // setup logout logout_view.classList.remove("hidden"); -@@ -560,6 +560,8 @@ - logout_user_form.textContent = ""; +@@ -636,6 +636,8 @@ + pop_scene(scene_stack.length-2); } + this.onlogin = onlogin; @@ -54,7 +57,7 @@ this.show = function() { remove_logout(); fill_form(); -@@ -1120,7 +1122,9 @@ +@@ -1390,7 +1392,9 @@ function main() { // Hide startup loading message document.getElementById("loadingscene").classList.add("hidden"); |