cosign-建立cosign.conf文件(六)

建立cosign.conf文件,解析cgi
内容如下:
## [Common to cgi and cosignd]
# TLS parameters
set cosigncadir /var/www/html/CAroot/CA/   //更改CA 路径
set cosigncert /var/www/html/CAroot/cgi.crt       //更改路径
set cosignkey /var/www/html/CAroot/cgi.key     //更改路径


## [cosignd-specific]
# Allow access to cosignd with cgi-level privileges (REGISTER new sessions)
# from this CommonName (CN is from the TLS certificate)
#cgi cgi-1
cgi cosignd.local

# Allow cosignd access with service-level privileges (CHECK existing sessions)
# from these CN (they need not match the source IP or domain name). cosign 3.0
# only allows clients access to service cookies which are associated with the
# certificate presented by the client.
#
# Note that the validation URLs here are using insecure http. You do not want to
# use insecure http in a production deployment of cosign.
service cosign-list http://portal.local/cosign/valid 0  0
service cosign-ldapadmin http://groupware.local/cosign/valid 0 mod_cosign-1
service cosign-groupware http://groupware.local/cosign/valid 0 mod_cosign-1

# service lines include regular expressions and support substitution of matches.
# E.g.:
#
# service cosign-(groupware) http://$1.local/cosign/valid 0 mod_cosign-1

# In the ldapadmin example, we restrict access to the service at the
# Apache level (CosignRequireFactor admin). Alternatively we can
# centralise access restrictions at the cosignd level:
#cookie ldapadmin reauth ldap admin
# Note: you can specify multiple factors.
# By default, a cookie is granted as long as one factor is enabled.


## [cgi-specific]
# cosignd host (it must match the server's CN!)
set cosignhost cosignd.local

#set zhanglina.com  
# Grab this user's factor:
# - argument 3 and later are name(s) of <FORM>/POST fields from the template
# - at least one factor is required for authentication to succeed
# - a factor executable only returns 1 factor name
# - factor names can be used by mod_cosign (CosignRequireFactor)
# - "-2" means this secondary script is started only if another one was successful
#factor /usr/lib/cosign/factor/test login password
#factor /var/www/html/cosign/factor/test login password
factor /var/www/html/cosign/factor/ldap login password
factor /var/www/html/cosign/factor/admin -2 login

# Override the default template directories,
# so our changes won't be overwritten by an unfortunate 'make install'
set cosigntmpldir /var/www/html/cosign/templates-local

set cosignlogouturl https://weblogin.local
set cosignloopurl https://weblogin.local/cosign/looping.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值