samizdatco/nginx-http-auth-digest

Digest Auth stops working with more than 100 user

Closed this issue · 2 comments

dsp commented

I created a file with user 1 to 100. Digest auth works fine with 100 user but stops working with over 100 user. Our digest file contains 613 user and so digest auth doesnt work.

dsp commented

Any update on this so far? I would prefer using your module instead of switching over to apache

i was pretty suspicious of the code that was stepping through the passwd file to begin with, so thanks for confirming its flakiness. i've just committed a fix which should deal with larger passwd files without failing for lines that lie on 2kb boundaries. do let me know if that's not the case...