rapid7/metasploit-framework — pull request #913 by wchen-r7 (2012-10-15 21:55:25+00:00)
Title: Check STATUS_ACCESS_DENIED properly

When Samba throws STATUS_ACCESS_DENIED, the exception that's throwin is actually Rex::Proto::SMB::Exception::ErrorCode, not as LoginError. It was handled correctly in try_user_pass(), but not in other functions that also use smb_login().