Display 'realm\user' for AD instead of 'user@realm'

bug/bundler_fix
James Lee 2014-07-10 14:31:42 -05:00
parent 62a2f1dc0a
commit 097d5d68ce
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 5 additions and 1 deletions

View File

@ -70,8 +70,12 @@ module Metasploit
end end
def to_s def to_s
if realm && realm_key == Metasploit::Model::Realm::Key::ACTIVE_DIRECTORY_DOMAIN
"#{self.realm}\\#{self.public}:#{self.private}"
else
"#{self.public}:#{self.private}#{at_realm}" "#{self.public}:#{self.private}#{at_realm}"
end end
end
def ==(other) def ==(other)
other.public == self.public && other.private == self.private && other.realm == self.realm other.public == self.public && other.private == self.private && other.realm == self.realm