[ANN] ruby-kerberos

S

snacktime

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

snacktime

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!
 
S

Swati Tiwari

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
 
D

Daniel Berger

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

Can you paste the example program please?

Regards,

Dan
 
S

Swati Tiwari

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
 
S

Swati Tiwari

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top