Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by enoch (Chaplain)
on Feb 10, 2003 at 23:07 UTC ( #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
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
Node Status?
node history
Node Type: note [id://234269]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2014-07-22 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (126 votes), past polls