stole report_creds method from smb_login