歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux基礎知識 >> CentOS5安裝apache和svk使用域用戶驗證

CentOS5安裝apache和svk使用域用戶驗證

日期:2017/4/19 14:19:37   编辑:Linux基礎知識
使用rpm安裝

httpd

httpd-devel

pam-devel

subversion

subversion-perl

安裝好以上包後,cpan SVK就可以完成svk安裝。

http啟用ssl

第一步,創建key和request:

openssl req -new > new.cert.csr

第二步,從key中刪除passphrase(可選):

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

第三步,把request轉換成signed sert:

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

第四步,把cert和key文件拷貝到適當的位置。

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

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

配置:Linux加入Windows域的配置不多說了。

mod_auth_pam沒有現成的包, 下載源碼編譯,只要安裝有以上包,應該沒什麼問題了。

因為我的系統是直接用winbind和Windows域結合的,因此直接用域用戶驗證, 這樣配置時需要修改一下:

/etc/pam.d/httpd

auth required /lib/security/pam_winbind.so

account required pam_permit.so

這樣就可以完成svn通過https使用域用戶身份驗證了。

Copyright © Linux教程網 All Rights Reserved