PHP code example of tvdijen / simplesamlphp-module-ldapradius

1. Go to this page and download the library: Download tvdijen/simplesamlphp-module-ldapradius library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tvdijen / simplesamlphp-module-ldapradius example snippets


    'LDAPRADIUS' => [
        'ldapRadius:LdapRadius',

        // The primary authsource to deal with username & password
        'primary' => 'LDAP',

        // The secondary authsource to deal with username & OTP
        'primary' => 'RADIUS',

        // Type hint to be enforced by the browser for the username-field
        // Defaults to 'text', possible values are 'text' and 'email'
        'usernameTypeHint' => 'email',

        // The pattern to be enforced by the browser for the username-field
        // Defaults to `null`
        'usernamePattern' => null,

        // The minimum password-length to be enforced on the password-field
        // Defaults to `null`
        'passwordMinLength' => 8,

        // The input mode for the OTP-field. This will select the appropriate keyboard on mobile devices
        // Defaults to `null`
        'otpInputMode' => null,

        // The pattern to be enforced by the browser for the OTP-field
        // Defaults to `null`
        'otpPattern' => null,
    ],