Skip to content

Commit

Permalink
fix password length for token auth (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Nov 15, 2024
1 parent 197e676 commit f39c8b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f39c8b2

Please # to comment.