Skip to content
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

Hardcoded value for maximum password length #42

Open
mikkonie opened this issue Nov 18, 2024 · 0 comments
Open

Hardcoded value for maximum password length #42

mikkonie opened this issue Nov 18, 2024 · 0 comments

Comments

@mikkonie
Copy link

We have a use case where a user may authenticate with iRODS using a token in place of a password. These tokens are 64 characters long. Initially, Davrods refused to authenticate with such a password the error Password exceeds length limits (64 vs 63).

I looked into it and this is controlled by a seemingly arbitrary hardcoded limit in src/auth.c.

I fixed the issue by forking Davrods and raising the limit in the code. Everything works fine after that, so this doesn't seem to involve any iRODS or protocol specific restriction.

This may be something of a fringe use case, but nevertheless, maybe it would be reasonable to allow setting the maximum password length with an environmnent variable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants