Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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.

  • 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://234269]
[Corion]: Ugh - the FSF wants to merge Magit into Emacs (or rewrite Magit). It seems they haven't learned from Perl+CPAN that not having things in core is good.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2017-07-21 11:33 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (321 votes). Check out past polls.