require 'rubygems'
require 'kerberos'
krb5 = Krb5.new
kadm5 = Kadm5.new
adminuser = 'stiwari/admin'
adminpass = 'K1bunkie'
#Login as an administrative user
kadm5.init_with_password(adminuser,adminpass)
p "Authenticated"
else
p kadm5.errstr
end



-- 
Posted via http://www.ruby-forum.com/.