Ruby-kerberos

I just put up a first release of kerberos bindings for ruby on
rubyforge. The distribution is just a tarball with an extconf.rb, the
c extension, some basic rdocs, and examples in example.rb. License is
BSD. This is for MIT kerberos only. Tested on Freebsd with kerberos
5-1.4.3. Compiled and minimally tested on linux. I have no windows
compiler or experience using one, but if someone wants to contribute a
win32 binary I’ll be happy to put it up.

http://rubyforge.org/projects/krb5/

Forgot to mention. It might be a good idea to look at my code before
using it. This is basically my first C program, so I’m not at all
sure it’s safe to use and won’t blow up on you in some nasty way.

Enjoy!

Thanks!!! I’ve been looking for somthing like this.

Hello,

Thank you for putting up this gem. I have tried to run the example
program that has been provided with this gem, however, I get the
following error,

example.rb:15: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

This may be a very silly error, but any help with this would be
appreciated.

Thanks a lot!
Swati

On Dec 1, 2:54 pm, Swati T. [email protected] wrote:

appreciated.

Thanks a lot!
Swati

Can you paste the example program please?

Regards,

Dan

Swati T. wrote:

This is the example code that I am trying to run after installing the
gem. May be I am missing something. Would really appreciate it if you
can guide me in anything.

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

Thanks

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