lib/net/ssh/kerberos/context.rb in net-ssh-kerberos-0.2.5 vs lib/net/ssh/kerberos/context.rb in net-ssh-kerberos-0.2.6
- old
+ new
@@ -21,12 +21,9 @@
begin
@cred_name = name.to_s.sub(/^[^\\\/]*[\\\/]/, '')
@cred_krb_name = @cred_name.gsub('@', '/');
z = (user.include?('@') ? user.gsub('@','/') : user+'/')
- unless z.downcase == @cred_krb_name[0,z.length].downcase
- raise GeneralError, "Credentials mismatch: current is #{@cred_name}, requested is #{user}"
- end
@credentials = creds
ensure
if @credentials.nil?
release_credentials creds
@cred_name = @cred_krb_name = nil