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)
Check Out this Related Man Page
Authen::Simple::SMB(3pm) User Contributed Perl Documentation Authen::Simple::SMB(3pm)NAME
Authen::Simple::SMB - Simple SMB authentication
SYNOPSIS
use Authen::Simple::SMB;
my $smb = Authen::Simple::SMB->new(
domain => 'DOMAIN',
pdc => 'PDC'
);
if ( $smb->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::SMB
PerlSetVar AuthenSimpleSMB_domain "DOMAIN"
PerlSetVar AuthenSimpleSMB_pdc "PDC"
<Location /protected>
PerlAuthenHandler Authen::Simple::SMB
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTION
Authenticate against an SMB server.
METHODS
* new
This method takes a hash of parameters. The following options are valid:
* domain
Domain to authenticate against. Required.
domain => 'NTDOMAIN'
* pdc Primary Domain Controller. Required.
pdc => 'PDC'
* bdc Backup Domain Controller.
bdc => 'BDC'
* log Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::SMB')
* authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple.
Authen::Smb.
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.8.8 2008-02-29 Authen::Simple::SMB(3pm)
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)
Hi,
I am a Linux / Unix newbie c programmer.
I have a c/c++ daemon server that will receive authentication (userid / password) from a windows client.
All I want to do is authenticate the user via PAM API - i.e. user must exist on the Unix / Linux system + password must be validated.
... (1 Reply)
Hi All
Just started with shell scripts and am stumped by, what is to most of you no doubt, a simple issue.
All I'm trying to do is prompt a user for input and writing to a log file. If the user types the word 'stop', then the program should halt. If the word typed is 'clear', then the log file... (2 Replies)
HI,
There is a user having problem when he try to login to solaris box, it works after few tried. What may be the problem?
PAM authentication
Password:
PAM authentication
Password:
PAM authentication
New Password: (1 Reply)
My PAM module seems to work right but it fails in authentication. Althought it can't authenticate, the session module works and the software who uses it executes well.
For example, when I login through "gdm" using pam to authenticate against an ldap server
/var/log/auth.log shows
Any... (1 Reply)
Experts,
Is there any way to know which authentication method the user used to login into the box? I mean, is possible to identify if an active user had logged using keys or password for example?
Let me clarify: we have a script that we want to allow users to execute only if they have used... (2 Replies)
Hi folks
I am trying to compile SSCEP (Simple SCEP client for Unix) on Solaris 10 box. SSCEP - Simple SCEP client for Unix
The errror is "ld: fatal: Symbol referencing errors. No output written to"
$ make
gcc -Wall -O -lcrypto -o sscep sscep.o init.o net.o sceputils.o pkcs7.o ias.o... (2 Replies)
Hi,
I am trying to configure SEC - Simple Event Correlator to analyze the logs.
Just wondering if any of you have used this before? If yes, can you help by showing few of the rules you created?
Thanks. (1 Reply)
Hi guys,
Ok so I'm basically trying to run a script on loging or after everything else has started up, I've done so much googling my head is spinning I don't understand the which file I have to edit with the details of my script,
In suse there is no etc/profiles folder its daemonised so its... (1 Reply)
Hello,
I'm completely new to Perl and I'm just looking for a quick answer to some code I'm trying to come up with. I'm trying to access a website, part of the URL I want the user to be able to define via standard input. As you can see below I'm still trying to get the syntax.
... (2 Replies)
I am installing Authen::Krb5::Easy and during make test I am getting the follwing error :
kinit not ok 2
error was: could not get initial credentials: Cannot contact any KDC for requested realm
we are stroring krb5.conf in diff location ( not in /etc/krb5.conf) , but, PERL is... (1 Reply)