定制 ualberta-iapps/simplesamlphp-module-kerberos 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ualberta-iapps/simplesamlphp-module-kerberos

最新稳定版本:v1.0.1

Composer 安装命令:

composer require ualberta-iapps/simplesamlphp-module-kerberos

包简介

Kerberos authentication module for SimpleSAMLphp

README 文档

README

Kerberos 5 authentication module for SimpleSAMLphp

Prerequisites

This document assumes that you already have the kerberos client on your server and have properly configured your /etc/krb5.conf file. If you are able to obtain a TGT from your KDC using the kinit command, you can continue with the installation of this module.

You will need to add support for Kerberos to your PHP instllation. By default, PHP does not ship with this functionality. You can obtain the krb5 module from PECL here. This document will not go through installing the module or enabling it in your PHP configuration.

Configuring the module

First you need to enable the kerberos module, touch an enable file, in the expirycheck module:

touch modules/kerberos/enable

Then you need to setup your authsource in the config/authsources.php file.

Example:

// An authentication source which can authenticate against a MIT Kerberos v5 KDC
'kerb' => array(
    'kerberos:Krb5',

    // The Kerberos realm
    // Do not include a leading @.
    'realm' => 'EXAMPLE.COM',
    
    // Strip realm
    // Remove the realm when passing the principal name into the UID attribute
    'stripRealm' => true,
),

You will need to supply a realm. The realm configured here should not include a leading @ symbol, and must be configured in your /etc/krb5.conf file.

Using the module

Once you have configured the module, you can test it on the "Test Configured Authentication Sources" page within SimpleSAMLphp. This module will only return a uid value which is the principal from Kerberos.

Note: When a user is authenticating, if they supply a username@scope.com, the @scope.com will be removed and will be replaced with the configured realm.

统计信息

  • 总下载量: 2.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-4-Clause
  • 更新时间: 2015-07-17