Sponsored Content
Operating Systems Linux Trouble setting up basic user authentication on apache2 web server Post 302934066 by Corona688 on Wednesday 4th of February 2015 11:21:07 AM
Old 02-04-2015
Code:
gentoo ~ # cpan

CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes]

Autoconfigured everything but 'urllist'.

Now you need to choose your CPAN mirror sites.  You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.

Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes]
Trying to fetch a mirror list from the Internet
Fetching with HTTP::Tiny:
http://www.perl.org/CPAN/MIRRORED.BY

Looking for CPAN mirrors near you (please be patient)
.......................... done!

New urllist
  http://mirrors.rit.edu/CPAN/
  http://mirror.metrocast.net/cpan/
  http://ftp.wayne.edu/CPAN/

Autoconfiguration complete.

commit: wrote '/root/.cpan/CPAN/MyConfig.pm'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.00)
Enter 'h' for help.

cpan[1]> install Authen:htpasswd

<lots and LOTS of scroll>

...
Result: PASS
  MSTROUT/Authen-Htpasswd-0.171.tar.gz
  /usr/bin/make test -- OK
Running make install
Installing /usr/local/lib64/perl5/5.18.2/Authen/Htpasswd.pm
Installing /usr/local/lib64/perl5/5.18.2/Authen/Htpasswd/User.pm
Installing /usr/local/lib64/perl5/5.18.2/Authen/Htpasswd/Util.pm
Installing /usr/local/man/man3/Authen::Htpasswd::User.3pm
Installing /usr/local/man/man3/Authen::Htpasswd.3pm
Installing /usr/local/man/man3/Authen::Htpasswd::Util.3pm
Appending installation info to /usr/local/lib64/perl5/5.18.2/x86_64-linux/perllocal.pod
  MSTROUT/Authen-Htpasswd-0.171.tar.gz
  /usr/bin/make install  -- OK

cpan[2]> exit

Terminal does not support GetHistory.
Lockfile removed.
gentoo ~ #

This User Gave Thanks to Corona688 For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

setting up web server

Is there any good resources for setting up a unix web server, I mean starting with the basics for a extremely new newbie. Thanks Scott (1 Reply)
Discussion started by: supastar
1 Replies

2. UNIX for Dummies Questions & Answers

setting up web server on Red hat 7.2

hi I was successful in installing redhat 7.2 with no problems or error =) (first try) and It took me about 40 minutes to install it on a p233 mmx. It's running Gnome. I have some issues which I'm unsure of how to deal with. 1.How do I install an apache server, or is there one simular that... (11 Replies)
Discussion started by: Special K
11 Replies

3. UNIX for Dummies Questions & Answers

Need dummies guide to setting up Web server...

Hiya All, Hope you can help! I need a Dummies guide to setting up a Web server. I hope you have some good URLs or advice etc. I now finally have: 1. "Web Server" - Fedora Core3 onto my Spare PC. 2. Windows XP laptop 3. Basic Web site set up via Front Page - to upload onto Web... (5 Replies)
Discussion started by: marty 600
5 Replies

4. Shell Programming and Scripting

Having trouble writing a basic shell program

Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies

5. Ubuntu

Trouble setting up Java classpath

Saw an error while setting up an application called i2phex: # ./run.sh java.lang.RuntimeException: Failed to initialize phex.net.repres.i2p.I2PPresentationManager at phex.common.ManagerController.initializeManagers(ManagerController.java:78) at phex.Main.main(Main.java:161)After... (0 Replies)
Discussion started by: Israel213
0 Replies

6. UNIX for Dummies Questions & Answers

Trouble setting up a shared folder

I'm trying to set up a folder in my home directory that will be shared with another user but for some reason it is not working this is what I've done, I have tried two different ways using ACL's and chown/chgrp etc I set up a group called say: sharedgroup and added both my user (john) and fred... (3 Replies)
Discussion started by: 14952john
3 Replies

7. Shell Programming and Scripting

Trouble with setting a variable with vastool

Hi I have this command that when put on the command line it returns the output the way I want it. /opt/quest/bin/vastool list -a groups | grep testdev_li | grep dev | awk -F"" 'NF>2{print $2}' | cut -c2- | tr '\n' '|' The output of this is ... (2 Replies)
Discussion started by: ajetangay
2 Replies

8. What is on Your Mind?

Visualizing MySQL Session : Web Server User Behavior at UNIX.com

Visualizing MySQL Session - Web Server User Behavior The video in this post shows unix.com forum user session information in a way that has never been visualized before. I plan to enrich this visualization significantly in the future - it's currently just a first beta. RWBeylgjOqs (0 Replies)
Discussion started by: Neo
0 Replies

9. Solaris

User authentication failed while log in Solaris 8 client on Linux NIS server.

Based on the NIS migration tests I did and another question I posted earlier on. https://www.unix.com/solaris/272021-solaris-8-md5-encryption-support.html I tried to downgrade NIS linux encryption to DES to support solaris connection. So I modified /etc/pam.d/system-auth as below, password... (0 Replies)
Discussion started by: bestard
0 Replies
Catalyst::Authentication::Credential::Authen::Simple(3pmUser Contributed Perl DocumentatiCatalyst::Authentication::Credential::Authen::Simple(3pm)

NAME
Catalyst::Authentication::Credential::Authen::Simple - Verify credentials with the Authen::Simple framework SYNOPSIS
use Catalyst qw(Authentication); # later on ... if ($c->authenticate({ username => 'myusername', password => 'mypassword' })){ my $long_name = $c->user->get('LongName'); # Hello Mr $long_name } DESCRIPTION
This module helps your Cataylst Application authenticate against a lot of credential databases thanks to the Authen::Simple framework. USAGE
Just configure your Catalyst App Authentication to use class 'Authen::Simple' as the credential verifier, and give it a set of Authen::Simple classes. You can pass arguments to the Authen::Simple:XXX class constructors with the 'args' key. Note that the authen key is an array. If more than one class is specified, when your app authenticates, the username and password is submitted to each class until one of the classes returns that the user/pass pair is valid. If no class validates the credentials, the user is not able to log in. 'Plugin::Authentication' => { 'realms' => { 'default' => { 'store' => { ... } 'credential' => { 'class' => 'Authen::Simple', 'authen' => [ { 'class' => 'Passwd', 'args' => { 'path' => '/etc/shadow' } }, { 'class' => 'SSH', 'args' => { 'host' => 'host.company.com' } } ] } } } } If the Catalyst log object is compatible with the Authen::Simple log object, Authen::Simple classes will log through Catalyst. new Called by Catalyst::Authentication. Instances the Authen::Simple classes read from the configuration. authenticate Usage : Call $c->authenticate({ username => ..., password => ...}); Returns : User object if the credentials are verified successfully. undef if user not authenticated. AUTHOR
Jose Luis Martinez CPAN ID: JLMARTIN CAPSiDE jlmartinez@capside.com http://www.pplusdomain.net THANKS
Tobjorn Lindahl, Dylan Martin, Tomas Doran and Inigo Tejedor Arrondo for patches and recommedations COPYRIGHT
Copyright (c) 2008 by Jose Luis Martinez Torres This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. SEE ALSO
Authen::Simple and all of the Authen::Simple::XXX classes perl v5.14.2 2009-11-16 Catalyst::Authentication::Credential::Authen::Simple(3pm)
All times are GMT -4. The time now is 02:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy