[ANN] 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.

···

On 9/20/06, snacktime <snacktime@gmail.com> wrote:

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!

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

···

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

Can you paste the example program please?

Regards,

Dan

···

On Dec 1, 2:54 pm, Swati Tiwari <its.sv...@gmail.com> wrote:

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

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/.

Swati Tiwari 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

···

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