Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: •Re: Accessing Authenticated User's Password From CGI

by enoch (Chaplain)
on Feb 10, 2003 at 23:07 UTC ( [id://234269]=note: print w/replies, xml ) Need Help??


in reply to •Re: Accessing Authenticated User's Password From CGI
in thread Accessing Authenticated User's Password From CGI

Hmm... I suspected as much. Thanks for the reply; I am off to read up on Kerberos modules.

enoch
  • Comment on Re: •Re: Accessing Authenticated User's Password From CGI

Replies are listed 'Best First'.
Re: Re: •Re: Accessing Authenticated User's Password From CGI
by zengargoyle (Deacon) on Feb 10, 2003 at 23:49 UTC

    i did this (authenticate via Kerberos using CGI) not too long ago. i couldn't find a Module that easily did exactly what i wanted. the closest was Authen::Krb5::Easy, but it used the /etc/krb5.keytab file instead of passwords to get a principal. so i hacked it to do what i wanted... just a change from calling krb5_get_init_creds_keytab to krb5_get_init_creds_password in the Easy.xs file and tweaking the arglist and documentation.

    WARNING: since i only used this module in one application (with it's own private /lib/perl) i didn't get around to renaming it to something like Authen::Krb5::Easy::Password or the like. should you use it, be warned... i wouldn't put it where another Perl user could use it thinking it was the real Authen::Krb5::Easy module...

    # simple useage use Authen::Krb5::Easy; my ($user, $password) = @ARGV; if ( Authen::Krb5::Easy::kinit( $user, $password ) ) { print "Authentication success!$/"; } else { print "Authentication failure!$/"; }

    you can try it if you like ... Authen-Krb5-Easy-0.90-hacked.tgz

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://234269]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-18 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found