11-14-2008
Sorry, my bad. I have to authenticate the user using LDAP and once I get a username/password, I can do that. But my problem is, in the configurations, I do not want to put a list of users like this
require user <user1> <user2> ...
Any user who tries logging in will be authenticated with LDAP. Once validated, the web tool will be displayed in a way dependent on the user. I hope I was clearer this time
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone, I need help with writing a script that does the following:
a client/user goes onto my website, hits a link, it would pop up either
1. user name and password
2. password and directory name
and then after they enter the required info, it would take them to their own folder. So... (6 Replies)
Discussion started by: crazycelicagts
6 Replies
2. Programming
I need to create a webserver to run Perl CGI Scripts. Anyone have any ideas or good links?
Yes I know there are lovely programs out there, but I need to build one in C.
Thanks! (1 Reply)
Discussion started by: cb.mark
1 Replies
3. UNIX for Dummies Questions & Answers
Hi, is it possible to create a CGI folder somewhere on the server and allow all domains on that server be able to access the scripts? I tried a ScriptAlias addition in httpd.conf but still no luck. Would greatly appreciate any tips! Thanks.
Linux version 2.4.20-021stab028.3.777-enterprise
Plesk... (5 Replies)
Discussion started by: karlsworld
5 Replies
4. Shell Programming and Scripting
Hi!
Some minutes ago I've posted a question related with sed regexps because I need to catch information sended with forms with GET action. This is the post: https://www.unix.com/shell-programming-scripting/127800-regular-expression-sed.html
But now I have a new question. Does cgi scripts have... (0 Replies)
Discussion started by: GagleKas
0 Replies
5. Shell Programming and Scripting
Hello all.. i am new to perl scripting.. i wanted to parse a text file, encode the parsed text and attach in url.. please point me to right resources if you know any..This is my major problem. Now i try to get a url running and save it in a text file using LWP module in perl, I used following... (0 Replies)
Discussion started by: empyrean
0 Replies
6. Web Development
Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies
7. Shell Programming and Scripting
Hi team,
I have a typical problem with cgi pages in apache webserver in WINDOWS
I am able to execute(display) the pages that are saved in cgi-bin folder.
But I am not able to execute the pages stored in htdocs or other folder other than cgi-bin folder.
Could anyone please let me know how... (1 Reply)
Discussion started by: scriptscript
1 Replies
8. Shell Programming and Scripting
Hi All,
I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet.
I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet.
print "<center><table... (2 Replies)
Discussion started by: scriptscript
2 Replies
9. Shell Programming and Scripting
Hi Team,
I am trying to connect to database(succeeded ) and print the records on the browser using while loop. But the elements of array are not displayed instead while loop is displayed directly. Instead of the below I can embed html statements in print but I am looking for the below style as I... (1 Reply)
Discussion started by: scriptscript
1 Replies
10. Shell Programming and Scripting
Hi Everyone,
I started looking at the possibility of making some of our bash scripts available through a web server using CGI and the simple ones works just fine. Now I need to execute remote commands using ssh but can't really get it to work. I got private keys all sorted. Must be ssh... (1 Reply)
Discussion started by: arizah
1 Replies
LEARN ABOUT DEBIAN
cgi::application::plugin::authentication::driver::dbic
CGI
::Application::Plugin::Authentication::Driver::DBIC(3User Contributed Perl DocumentaCGI::Application::Plugin::Authentication::Driver::DBIC(3pm)
NAME
CGI::Application::Plugin::Authentication::Driver::DBIC - DBIx::Class Authentication Driver
VERSION
Version 0.02
SYNOPSIS
use base qw(CGI::Application);
use CGI::Application::Plugin::Authentication;
__PACKAGE__->authen->config(
DRIVER => [
'DBIC',
SCHEMA => My::DBIC->connect($dsn), # or existing $schema object
CLASS => 'Users', # = My::DBIC::Users
FIELD_METHODS => [qw(user MD5:passphrase)]
],
CREDENTIALS => [qw(auth_username auth_password)],
);
DESCRIPTION
This Authentication driver uses the DBIx::Class module to allow you to authenticate against any DBIx::Class class.
PARAMETERS
The DBIx::Class authentication driver accepts the following required parameters.
SCHEMA (required)
Specifies the DBIx::Class::Schema object to use for authentication. This class must be loaded prior to use.
CLASS (required)
Specifies the DBIx::Class class within the schema which contains authentication information.
FIELD_METHODS (required)
FIELD_METHODS is an arrayref of the methods in the DBIx::Class class specified by CLASS to be used during authentication. The order of
these methods needs to match the order of the CREDENTIALS. For example, if CREDENTIALS is set to:
CREDENTIALS => [qw(auth_user auth_domain auth_password)]
Then FIELD_METHODS must be set to:
FIELD_METHODS => [qw(userid domain password)]
FIELD_METHODS supports filters as specified by CGI::Application::Plugin::Authentication::Driver
METHODS
verify_credentials
This method will test the provided credentials against the values found in the database, according to the Driver configuration.
SEE ALSO
CGI::Application::Plugin::Authentication::Driver, CGI::Application::Plugin::Authentication, perl(1)
BUGS
Please report any bugs or feature requests to "bug-cgi-application-plugin-authentication-driver-dbic at rt.cpan.org", or through the web
interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-Authentication-Driver-DBIC
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-Authentication-Driver-DBIC>. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc CGI::Application::Plugin::Authentication::Driver::DBIC
You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/CGI-Application-Plugin-Authentication-Driver-DBIC <http://annocpan.org/dist/CGI-Application-Plugin-
Authentication-Driver-DBIC>
o CPAN Ratings
http://cpanratings.perl.org/d/CGI-Application-Plugin-Authentication-Driver-DBIC <http://cpanratings.perl.org/d/CGI-Application-Plugin-
Authentication-Driver-DBIC>
o RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Application-Plugin-Authentication-Driver-DBIC
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Application-Plugin-Authentication-Driver-DBIC>
o Search CPAN
http://search.cpan.org/dist/CGI-Application-Plugin-Authentication-Driver-DBIC <http://search.cpan.org/dist/CGI-Application-Plugin-
Authentication-Driver-DBIC>
THANKS
Cees Hek for CGI::Application::Plugin::Authentication
Shawn Sorichetti for CGI::Application::Plugin::Authentication::Driver::CDBI which this module is shamelessly copied from.
AUTHOR
Jaldhar H. Vyas, "<jaldhar at braincells.com>"
COPYRIGHT & LICENSE
Copyright 2007, Consolidated Braincells Inc., all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.3 2011-05-16 CGI::Application::Plugin::Authentication::Driver::DBIC(3pm)