CentOS5 install apache and svk using domain user authentication

Source: Internet
Author: User
Tags openssl rsa openssl x509
& Nbsp; after installing httpdhttpd-develpam-develsubversionsubversion-perl with rpm, cpanSVK can complete svk installation. Step 1 of enabling ssl for http: create key and request: opensslreq-new & gt; new. cert. csr  

Install with rpm

Httpd

Httpd-devel

Pam-devel

Subversion

Subversion-perl

After the above package is installed, cpan SVK can complete the svk installation.

Enable ssl for http

Step 1: Create the key and request:

Openssl req-new> new. cert. csr

Step 2: delete passphrase from the key (optional ):

Openssl rsa-in privkey. pem-out new. cert. key

Step 3: convert the request to signed sert:

Openssl x509-in new. cert. csr-out new. cert. cert-req-signkey new. cert. key-days 1825

Step 4: Copy the cert and key files to the appropriate location.

Cp new. cert. cert/etc/apache/ssl. crt/server. crt

Cp new. cert. key/etc/apache/ssl. key/server. key

Configuration: linux does not need to be added to the windows domain.

Mod_auth_pam does not have a ready-made package. download the source code to compile the package. as long as the above package is installed, there should be no problem.

Because my system is directly integrated with winbind and windows domain, we use domain user verification directly. in this way, we need to modify the configuration:

/Etc/pam. d/httpd

Auth required/lib/security/pam_winbind.so

Account required pam_permit.so

In this way, svn can use the domain user authentication over https.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.