PHPackages                             ualberta-iapps/simplesamlphp-module-kerberos - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. ualberta-iapps/simplesamlphp-module-kerberos

ActiveSimplesamlphp-module[Authentication &amp; Authorization](/categories/authentication)

ualberta-iapps/simplesamlphp-module-kerberos
============================================

Kerberos authentication module for SimpleSAMLphp

v1.0.1(10y ago)93.0k1[1 issues](https://github.com/ualberta-iapps/simplesamlphp-module-kerberos/issues)BSD-4-ClausePHP

Since Jul 17Pushed 10y ago5 watchersCompare

[ Source](https://github.com/ualberta-iapps/simplesamlphp-module-kerberos)[ Packagist](https://packagist.org/packages/ualberta-iapps/simplesamlphp-module-kerberos)[ Docs](https://github.com/ualberta-iapps/simplesamlphp-mod-kerberos)[ RSS](/packages/ualberta-iapps-simplesamlphp-module-kerberos/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

simplesamlphp-module-kerberos
=============================

[](#simplesamlphp-module-kerberos)

Kerberos 5 authentication module for SimpleSAMLphp

Prerequisites
-------------

[](#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](https://pecl.php.net/package/krb5). This document will not go through installing the module or enabling it in your PHP configuration.

Configuring the module
----------------------

[](#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
----------------

[](#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 , the @scope.com will be removed and will be replaced with the configured realm.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~294 days

Total

2

Last Release

3664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d14947347edaca810f37e526c7a1093d785f9b325e39833f779c99977c06b15?d=identicon)[tdiscuit](/maintainers/tdiscuit)

---

Tags

kerberoskerbkrb5krb

### Embed Badge

![Health badge](/badges/ualberta-iapps-simplesamlphp-module-kerberos/health.svg)

```
[![Health](https://phpackages.com/badges/ualberta-iapps-simplesamlphp-module-kerberos/health.svg)](https://phpackages.com/packages/ualberta-iapps-simplesamlphp-module-kerberos)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[drupalauth/simplesamlphp-module-drupalauth

A SimpleSAMLphp module adding support for Drupal as the authentication source.

25305.4k1](/packages/drupalauth-simplesamlphp-module-drupalauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
