Sponsored Content
Full Discussion: apache configuration
Top Forums UNIX for Advanced & Expert Users apache configuration Post 56968 by hachik on Friday 15th of October 2004 06:18:14 AM
Old 10-15-2004
apache configuration

Hi. I run openbsd and apache 1.3.29
PHP/4.3.9 mod_perl/1.29 DAV/1.0.3 mod_ssl/2.8.16 OpenSSL/0.9.7c

anyway,problem is i have in httpd.conf allow override all in /dir1
and 2 directories
/dir1/.htaccess is

AuthType Basic
AuthName "Password Required"
AuthUserFile /passwords/password.file
Require valid-user

/dir1/visible/.htaccess
Allow from all
Satisfy Any

BUT that damn configuration doesnt work!
any suggestions, i'm over in my ideas.
 

9 More Discussions You Might Find Interesting

1. Solaris

Apache Configuration issue on Solaris

I seem to have an issue with Apache configurationon our Sun solaris Server. Since there are 2 my_app instances running in parallel, the perl modules in my_app_perl_libs are getting shared between them, even though they are in different directories (/u01/my_app and /u01/my_app8). This is because... (1 Reply)
Discussion started by: rahulrathod
1 Replies

2. Web Development

Apache Configuration File

I am new in Linux configure Apache. I got few questions to ask. I am will grateful for the help. Thanks. 1) In the Apache Configuration File, where is actually the base for the web tree? 2) I wanted to create a directory (called java) inside the base of the web tree. How am I going to do... (5 Replies)
Discussion started by: newlinuxuser
5 Replies

3. Solaris

JAMES (Java Apache Mail Enterprise Server) - Installation/Configuration Problem

Good Afternoon Intelligent Administrators/Debuggers! I am installing JAMES on an internal server (192.168.2.33) Specs of xxx.xxx.xxx.33 = SunOS v210b 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V210 After placing and "gunziping" the respective file, I am trying to run it by: ... (1 Reply)
Discussion started by: kazmiM
1 Replies

4. Web Development

Need help on Apache configuration for redirecting URLS

I am extremely new to Apache httpd configuration. Can you please help here below is my requirement. If the URL match existing resource - return resource. If the URL doesn't match existing resource it should return index.html from the app root directory. Apps root directories are: 1.... (0 Replies)
Discussion started by: kar_333
0 Replies

5. Linux

Apache httpd configuration - Issues with APR

Hi I have tried setting up of Apache http server - httpd-2.4.25. During configuration, I understand it needs APR to be setup. Hence I have downloaded APR & APR-Util. Performed, tar xvfC apr-1.5.2.tar /root/httpd-2.4.25/srclib/apr What is happening is there is another directory... (1 Reply)
Discussion started by: videsh77
1 Replies

6. Shell Programming and Scripting

Apache configuration Automation based on location

Hi I need to find a way to automate the deployment of my apache configuration to a few servers. I make change frequently on apache/conf/... etc, and I usually do this manually by copying files to each servers(and country config path)and restart apache servers.Source file will be like... (1 Reply)
Discussion started by: naresh2389
1 Replies

7. Red Hat

About the apache for ipv6 configuration

I am running apache 2 on centos 7 which is running ipv4 , now I would like to enable it to support ipv6 , would advise what I need to change to Adding IPv6 support to the server ? or nothing need to do ? the existing vhosts is as below . <VirtualHost *:80> ServerAdmin xxx.com.hk " "... (2 Replies)
Discussion started by: ust3
2 Replies

8. UNIX for Advanced & Expert Users

Apache log rotate configuration

HI i was trying to configure logrotate for my apache server and it's not working properly. here is my lodrotate configuration /var/log/httpd/*log { daily missingok notifempty sharedscripts compress delaycompress postrotate /sbin/service httpd... (1 Reply)
Discussion started by: bentech4u
1 Replies

9. Red Hat

Apache log rotate configuration

HI i was trying to configure logrotate for my apache server and it's not working properly. Os: Red Hat 6 here is my lodrotate configuration /var/log/httpd/*log { daily missingok notifempty sharedscripts compress delaycompress postrotate ... (3 Replies)
Discussion started by: bentech4u
3 Replies
Apache::AuthNetLDAP(3)					User Contributed Perl Documentation				    Apache::AuthNetLDAP(3)

NAME
Apache::AuthNetLDAP - mod_perl module that uses the Net::LDAP module for user authentication for Apache SYNOPSIS
AuthName "LDAP Test Auth" AuthType Basic #only set the next two if you need to bind as a user for searching #PerlSetVar BindDN "uid=user1,ou=people,o=acme.com" #optional #PerlSetVar BindPWD "password" #optional PerlSetVar BaseDN "ou=people,o=acme.com" PerlSetVar LDAPServer ldap.acme.com PerlSetVar LDAPPort 389 #PerlSetVar UIDAttr uid PerlSetVar UIDAttr mail #PerlSetVar AlternatePWAttribute alternateAttribute #PerlSetVar SearchScope base | one | sub # default is sub #PerlSetVar LDAPFilter "(&(course=CSA)(class=A))" #optional # Set if you want to encrypt communication with LDAP server # and avoid sending clear text passwords over the network PerlSetVar UseStartTLS yes | no # Set if you want to allow an alternate method of authentication PerlSetVar AllowAlternateAuth yes | no require valid-user PerlAuthenHandler Apache::AuthNetLDAP DESCRIPTION
This module authenticates users via LDAP using the Net::LDAP module. This module is Graham Barr's "pure" Perl LDAP API. It also uses all of the same parameters as the Apache::AuthPerLDAP, but I have added four extra parameters. The parameters are: PerlSetVar BindDN Used to set initial LDAP user. PerlSetVar BindPWD Used to set initial LDAP password. PerlSetVar BaseDN This sets the search base used when looking up a user in an LDAP server. PerlSetVar LDAPServer This is the hostname of the LDAP server you wish to use. PerlSetVar LDAPPort This is the port the LDAP server is listening on. PerlSetVar UIDAttr The attribute used to lookup the user. PerlSetVar AlternatePWAttribute The an alternate attribute with which the $password will be tested. This allows you to test with another attribute, instead of just trying to bind the userdn and password to the ldap server. If this option is used, then a BindDN and BindPWD must be used for the initial bind. PerlSetVar AllowAlternateAuth This attribute allows you to set an alternative method of authentication (Basically, this allows you to mix authentication methods, if you don't have all users in the LDAP database). It does this by returning a DECLINE and checking for the next handler, which could be another authentication, such as Apache-AuthenNTLM or basic authentication. PerlSetVar SearchScope Optional. Can be base, one or sub. Default is sub. Determines the scope of the LDAP search. PerlSetVar LDAPFilter This is an LDAP filter, as defined in RFC 2254. This is optional. If provided, it will be ANDed with the filter that verifies the UID. For example, if you have these set: PerlSetVar UIDAttr uid PerlSetVar LDAPFilter "(&(course=41300)(year=3)(classCode=Y))" and a user authenticates with the username "nicku" then the following filter will be generated to search for the entry to authenticate against: (&(&(course=41300)(year=3)(classCode=Y))(uid=nicku)) This will then allow nicku access only if nicku's LDAP entry has the attribute course equal to 41300, the attribute year equal to 3, and attribute classCode equal to Y. And of course, if the password is correct. This may be useful for restricting access to a group of users in a large directory, e.g., at a university. PerlSetVar UseStartTLS Optional; can be yes or no. If yes, will fail unless can start a TLS encrypted connection to the LDAP server before sending passwords over the network. Note that this requires that the optional module IO::Socket::SSL is installed; this depends on Net::SSLeay, which depends on openssl. Of course, the LDAP server must support Start TLS also. Uses for UIDAttr For example if you set the UIDAttr to uid, and a user enters the UID nicku, then the LDAP search filter will lookup a user using the search filter: (uid=nicku) Normally you will use the uid attribute, but you may want (need) to use a different attribute depending on your LDAP server or to synchronize with different applications. For example some versions of Novell's LDAP servers that I've encountered stored the user's login name in the cn attribute (a really bad idea). And the Netscape Address Book uses a user's email address as the login id. INSTALLATION
It's a pretty straightforward install if you already have mod_perl and Net::LDAP already installed. After you have unpacked the distribution type: perl Makefile.PL make make test make install Then in your httpd.conf file or .htaccess file, in either a <Directory> or <Location> section put: AuthName "LDAP Test Auth" AuthType Basic #only set the next two if you need to bind as a user for searching #PerlSetVar BindDN "uid=user1,ou=people,o=acme.com" #optional #PerlSetVar BindPWD "password" #optional PerlSetVar BaseDN "ou=people,o=acme.com" PerlSetVar LDAPServer ldap.acme.com PerlSetVar LDAPPort 389 PerlSetVar UIDAttr uid PerlSetVar UseStartTLS yes # Assuming you installed IO::Socket::SSL, etc. # Set if you want base or one level scope for search: PerlSetVar SearchScope one # default is sub # Set if you want to limit access to a subset of users: #PerlSetVar LDAPFilter "(&(course=CSA)(class=A))" #optional # Set if you want to allow an alternate method of authentication PerlSetVar AllowAlternateAuth yes | no require valid-user PerlAuthenHandler Apache::AuthNetLDAP If you don't have mod_perl or Net::LDAP installed on your system, then the Makefile will prompt you to install each of these modules. At this time, March 8, 2004, you may say yes to Net::LDAP, and yes for mod_perl, if you are installing this module on apache 1.3. (The reason being, that mod_perl 2 is under development, and is not ready for download from CPAN at this time. Therefore, your install of mod_perl, as initiated with the Makefile.PL, will fail. If you are going to install mod_perl 2, which is needed to work with Apache2, you will need to download it from: http://perl.apache.org/download/index.html. (Installation is beyond the scope of this document, but you can find documentation at: http://perl.apache.org/docs/2.0/user/install/install.html#Installing_mod_perl_from_Source.) Otherwise installation is the same. You may also notice that the Makefile.PL will ask you to install ExtUtils::AutoInstall. This is necessary for the installation process to automatically install any of the dependencies that you are prompted for. You may choose to install the module, or not. HOMEPAGE
Module Home: http://search.cpan.org/author/SPEEVES/ AUTHOR
Mark Wilcox mewilcox@unt.edu and Shannon Eric Peevey speeves@unt.edu SEE ALSO
Net::LDAP ACKNOWLEDGMENTS
Graham Barr for writing Net::LDAP module. Henrik Strom for writing the Apache::AuthPerLDAP module which I derived this from. The O'Reilly "Programming Modules for Apache with Perl and C" (http://www.modperl.com). Mark Wilcox for being the "Godfather" of Central Web Support... ;) Stas Beckman for having the patience to answer my many questions. Everyone else on the modperl mailing list... You know who you are :) WARRANTY AND LICENSE
You can distribute and modify in accordance to the same license as Perl. Though I would like to know how you are using the module or if you are using the module at all. Like most of the stuff on the 'net, I got this copy to work for me without destroying mankind, you're mileage may vary. perl v5.12.1 2010-07-05 Apache::AuthNetLDAP(3)
All times are GMT -4. The time now is 04:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy