Authen::Simple(3pm) User Contributed Perl Documentation Authen::Simple(3pm)NAME
Authen::Simple - Simple Authentication
SYNOPSIS
use Authen::Simple;
use Authen::Simple::Kerberos;
use Authen::Simple::SMB;
my $simple = Authen::Simple->new(
Authen::Simple::Kerberos->new( realm => 'REALM.COMPANY.COM' ),
Authen::Simple::SMB->new( domain => 'DOMAIN', pdc => 'PDC' )
);
if ( $simple->authenticate( $username, $password ) ) {
# successfull authentication
}
DESCRIPTION
Simple and consistent framework for authentication.
METHODS
o new
This method takes an array of "Authen::Simple" adapters. Required.
o authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple::ActiveDirectory.
Authen::Simple::CDBI.
Authen::Simple::DBI.
Authen::Simple::FTP.
Authen::Simple::HTTP.
Authen::Simple::Kerberos.
Authen::Simple::LDAP.
Authen::Simple::NIS.
Authen::Simple::PAM.
Authen::Simple::Passwd.
Authen::Simple::POP3.
Authen::Simple::RADIUS.
Authen::Simple::SMB.
Authen::Simple::SMTP.
Authen::Simple::SSH.
AUTHOR
Christian Hansen "chansen@cpan.org"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-04-19 Authen::Simple(3pm)
Check Out this Related Man Page
Authen::Simple::PAM(3pm) User Contributed Perl Documentation Authen::Simple::PAM(3pm)NAME
Authen::Simple::PAM - Simple PAM authentication
SYNOPSIS
use Authen::Simple::PAM;
my $pam = Authen::Simple::PAM->new(
service => 'login'
);
if ( $pam->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::PAM
PerlSetVar AuthenSimplePAM_service "login"
<Location /protected>
PerlAuthenHandler Authen::Simple::PAM
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTION
PAM authentication.
METHODS
o new
This method takes a hash of parameters. The following options are valid:
o service
PAM service. Defaults to "login".
service => 'sshd'
o log
Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::PAM')
o authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple.
Authen::PAM.
AUTHOR
Christian Hansen "ch@ngmedia.com"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.0 2006-01-12 Authen::Simple::PAM(3pm)
Simple Q here.
What GOOD telnet programs are out there for MAC.
I use this one that can't utilize the VI editor.
I don't know why.
Thankx for your help in advance.
/D (8 Replies)
in vi, if i type ctrl-J, i can shift the next line up to the current line.
I need to do this whenever a specific string exists (in particular ^M) ,however i have not been able to find a way to do this in vi, sed, or awk
seems simple enough.
can someone help me?
thanks in advance (9 Replies)
Hello all,
I am trying to write a simple script that will parse through a text/properties file and check a couple of if statements.
Here is what I have so far:
FILENAME=$1
while read line
do
echo $line
done < $FILENAME
When I call ./simple.sh testfile.txt I recieve a file or... (7 Replies)
Hi All,
I have problem in the following shell script (problem in 2and3 line i guess)
#!/bin/sh
set value1 = 90;
set value2 = 70;
if ; then
echo "$value1 is normal"
else
echo "$value2 is abnormal"
fi
when executed
output:
$ value_test.sh (Enter)
is abnormal
Neither it's printing... (13 Replies)
I have got a question. How to do this? I mean AND expression in regex.
List all the files in current directory that do not contain the words use AND take.
Thx.:p (15 Replies)
Hi All,
First time poster so be gentle - Also apologies if this is in the wrong section.
I am not a unix administrator but as a Storage administrator know enouh to get me by for what I need to do.
However I am having a slow night-shift so I am playing about with a bit of scripting to... (7 Replies)
Hi all,
Simple question, how can I simply create an array from listing the files in a directory i..e
myvar=`ls`;
echo $myvar gives a fulllist of files/ directories
how can I now convery myvar to an array so I can loop around and read each file/dir?
Thnaks
CF:) (6 Replies)
Hi everyone. Silly might be silly be I'm still new to bash. I'm trying to make an Alarm Clock for in the morning using my laptop i have wrote this Simple Script but i cant work out how to play it at a certain time.
#!/bin/bash
cd /home/josh/Music/Bruno_Mars/Hooligans/
cvlc... (8 Replies)
Hi all,
Please guide me writing this script
Follwing is the file which I have created, which contains the files to be copied.
cat system1-dr.txt
/etc/passwd
/etc/shadow
/etc/group
/etc/vfstab
/etc/profile
/etc/default/init
/etc/shells
/etc/dfs/dfstab
/etc/dfs/sharetab... (11 Replies)
Hi,
new to unix and scripting, and i'm trying to set up a simple "if" script to create a seperate flag file dependant on success.
So far i have the following ($5 is a variable passed to the script from the backup job)
if
then
touch /u03/backups/backup_ended.flag
else
touch... (13 Replies)
So since I'm looking for an easy way to numberize files in a folder according to date:
Is there an easy script (batch, windows), that will rename files like this:
.earliest creation time: 001.file
older creatiin time : 002.file
even older time : 003.file
....
...
..
.
... (10 Replies)
So my program is not working and I keep changing it to figure out why. So I have two questions, can I do tracing similar to bash, and also what is wrong with this.
The idea is simple, I want to count "word" lengths, with the loose definition of word not being a space, tab, or newline. Here is... (11 Replies)
In this script:
#!/bin/bash
# bird
read -p "Enter name of a bird "
REPLY=$REPLY
birdname="duck sparrow hawk"
for i in $birdname
do
if ]
then
echo "Yes, that is a bird."
else
echo "That is not a bird."
fi
done
I get... (9 Replies)