[erlang-bugs] ssh:daemon bug, ignoring option pwdfun

Charles Ahn nexes300@REDACTED
Wed Mar 18 07:17:24 CET 2009


When a ssh daemon is started with:
   ssh:daemon({0,0,0,0}, 1122, [{shell, fun ?MODULE:dispatch/1},
                                {pwdfun, fun is_user_authenticated/2},  
{system_dir, "/erlang_test"}])

The fun is_user_authenticated/2 is not called. The function is  
supposed to be called with the username and the password the user is  
attempting to connect with and the function is supposed to return true  
or false. However, now users are instantly connected without being  
prompted for a password instead.

Charles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2419 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20090317/d85c467e/attachment.bin>


More information about the erlang-bugs mailing list