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

Fix unix login with yescrypt hashed passwords #173

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

jcj83429
Copy link
Contributor

Increase the MAX_DATA_SIZE to accomodate yescrypt, which is now the default in some distros. This was discussed in https://forums.fedoraforum.org/showthread.php?332193-Problems-with-unix-authentication-in-pure-ftpd&p=1881101 . I also tested the fix myself. 32M is the smallest power of 2 size that works.

@jedisct1
Copy link
Owner

Maybe we should make that change only for relevant systems. Is there a macro defined when it's available?

@jcj83429
Copy link
Contributor Author

I couldn't find a macro that indicates yescrypt is available in crypt.h. The closest thing is XCRYPT_VERSION_NUM but I don't know if it's a good idea to rely on this implementation-specific macro. I can add a check for XCRYPT_VERSION_NUM if you wish.

@jedisct1
Copy link
Owner

xcrypt is probably the only implementation used in linux distros, so that should be fine.

@jedisct1
Copy link
Owner

Thank you!

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