arcgis bundle php,配置 SimpleSAMLphp

可在 /config/authsources.php 文件中对身份验证源进行配置。 要配置 LDAP 服务器,请打开 config/authsources.php 文件并以如下格式添加基于 LDAP 的身份验证源:

'example-ldapApacheDS' => array(

'ldap:LDAP',

/* The hostname of the LDAP server. */

'hostname' => 'host:port',

/* Whether TLS should be used when contacting the LDAP server. */

'enable_tls' => TRUE,

/*

* Which attributes should be retrieved from the LDAP server.

* This can be an array of attribute names, or NULL, in which case

* all attributes are fetched.

*/

'attributes' => NULL,

/*

* The pattern that should be used to create the users DN given the username.

* %username% in this pattern will be replaced with the user's username.

*

* This option is not used if the search.enable option is set to TRUE.

*/

'dnpattern' => 'uid=%username%,ou=users,ou=system',

/*

* As an alternative to specifying a pattern for the users DN, it is possible to

* search for the username in a set of attributes. This is enabled by this option.

*/

'search.enable' => FALSE,

/*

* The DN that will be used as a base for the search.

* This can be a single string, in which case only that DN is searched, or an

* array of strings, in which case they will be searched in the order given.

*/

'search.base' => 'ou=users,ou=system',

/*

* The attribute(s) the username should match against.

*

* This is an array with one or more attribute names. Any of the attributes in

* the array may match the value the username.

*/

'search.attributes' => array('uid', 'mail'),

/*

* The username & password the simpleSAMLphp should bind to before searching. If

* this is left as NULL, no bind will be performed before searching.

*/

'search.username' => 'uid=admin,ou=system',

'search.password' => 'password',

),

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值