From f39c8b2d67b36767e7e017f0846057464f6213d1 Mon Sep 17 00:00:00 2001 From: Mikko Nieminen Date: Fri, 15 Nov 2024 11:48:26 +0100 Subject: [PATCH] fix password length for token auth (#4) --- docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 31e201e..c5d3587 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -28,6 +28,8 @@ RUN mkdir -p /tmp/davrods/build RUN sed -i 's/${DAVRODS_IRODS_VERSION}/${IRODS_PKG_VERSION}/g' /tmp/davrods/CMakeLists.txt # Update TTL to get around password_min_time error RUN sed -i 's/rods_auth_ttl = 1/rods_auth_ttl = 336/g' /tmp/davrods/src/config.c +# Update password length limit to enable token auth +RUN sed -i 's/strlen(password) > 63/strlen(password) > 128/g' /tmp/davrods/src/auth.c # Workaround proposed by iRODS team in https://github.com/UtrechtUniversity/davrods/issues/35 RUN sed -i 's/module AP_MODULE_DECLARE_DATA davrods_module;/extern module AP_MODULE_DECLARE_DATA davrods_module;/g' /tmp/davrods/src/mod_davrods.h # Build Davrods for iRODS version