Skip to content
Snippets Groups Projects
Commit b885ce17 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Remove config templates that are no longer used. They are creating confusion...

Remove config templates that are no longer used. They are creating confusion and serve no purpose after all.
parent ac8fa08c
No related branches found
No related tags found
No related merge requests found
<?php
/*
* The configuration of SimpleSAMLphp
*
*
*/
$casldapconfig = array (
'idpentityid.example.org' => array(
'cas' => array(
'login' => 'https://idpentityid.example.org/cas/login',
'validate' => 'https://idpentityid.example.org/cas/validate',
),
'ldap' => array(
'servers' => 'idpentityid.example.org',
'enable_tls' => true,
'searchbase' => 'dc=example,dc=org',
'searchattributes' => 'uid',
'attributes' => array('cn', 'mail'),
),
),
'idpentityid2.example.org' => array(
'cas' => array(
'login' => 'https://idpentityid2.example.org/login',
'validate' => 'https://idpentityid2.example.org/validate',
),
'ldap' => array(
'servers' => 'ldap://idpentityid2.example.org',
'enable_tls' => true,
'searchbase' => 'ou=users,dc=example,dc=org',
'searchattributes' => array('uid', 'mail'), # array for being able to login with either uid or mail.
'attributes' => null,
'priv_user_dn' => 'uid=admin,ou=users,dc=example,dc=org',
'priv_user_pw' => 'xxxxx',
),
),
);
<?php
/*
* The configuration of the login-auto authentication module.
*/
$config = array (
/*
* This option enables or disables the login-auto authentication
* handler. This handler is implemented in 'www/auth/login-auto.php'.
*
* When this option is set to true, a user can go to the
* 'auth/login-auto.php' web page to be authenticated as an example
* user. The user will receive the attributes set in the
* 'auth.auto.attributes' option.
*
* WARNING: setting this option to true will make it possible to use
* this authenticator for all users, irrespectively of the 'auth'
* setting in the IdP's metadata. They can always use it by opening the
* 'auth/login-auto.php' webpage manually.
*/
'auth.auto.enable' => true,
/*
* This option configures which attributes the login-auto
* authentication handler will set for the user. It is an array of
* arrays. The name of the attribute is the index in the first array,
* and all the values for the attribute is given in the array
* referenced to by the name.
*
* Example:
* 'auth.auto.attributes' => array(
* 'edupersonaffiliation' => array('student', 'member'),
* 'uid' => array('example_uid'),
* 'mail' => array('example@example.com'),
* ),
*/
'auth.auto.attributes' => array(
'edupersonaffiliation' => array('student', 'member'),
'title' => array('Example user title'),
'uid' => array('example_uid'),
'mail' => array('example@example.com'),
'cn' => array('Example user commonname'),
'givenname' => array('Example user givenname'),
'sn' => array("Example surname"),
),
/*
* When this option is set to true, the login-auto authentication
* handler will ask for a username and a password. This can be used to
* test the IdP. The username and password isn't verified, and the
* user/script can enter anything.
*/
'auth.auto.ask_login' => false,
/*
* This option configures a delay in the login-auto authentication
* handler. The script will wait for the given number of milliseconds
* before authenticating the user. This can, for example, be used in
* a simple simulation of a slow LDAP server.
*/
'auth.auto.delay_login' => 0,
);
<?php
/*
* Configuration for the auth/login-feide.php login module.
*
* The configuration file is an array with multiple organizations. The user
* can select which organization he/she wants to log in with, with a drop-down
* menu in the user interface.
*
*/
$config = array (
'orgldapconfig' => array(
'example1.com' => array(
'description' => 'Example Org 1',
'searchbase' => 'cn=people,dc=example1,dc=com',
'hostname' => 'ldaps://ldap.example1.com',
'attributes' => null,
'contactMail' => 'admin@example1.com',
'contactURL' => 'http://admin.example1.com',
// System user to bind() before we do a search for eduPersonPrincipalName
'adminUser' => 'uid=admin,dc=example1,dc=com',
'adminPassword' => 'xxx',
),
'example1.com' => array(
'description' => 'Example Org 1',
'searchbase' => 'cn=people,dc=example1,dc=com',
'hostname' => 'ldaps://ldap.example1.com',
'attributes' => array('mail', 'street'),
),
),
);
<?php
/*
* Configuration for the LDAP authentication module.
*/
$config = array (
/**
* LDAP configuration. This is only relevant if you use the LDAP authentication plugin.
*
* The attributes parameter is a list of attributes that should be retrieved.
* If the attributes parameter is set to null, all attributes will be retrieved.
*/
'auth.ldap.dnpattern' => 'uid=%username%,dc=feide,dc=no,ou=feide,dc=uninett,dc=no',
'auth.ldap.hostname' => 'ldap.uninett.no',
'auth.ldap.attributes' => null,
'auth.ldap.enable_tls' => true,
/*
* Searching the DN of the user.
*/
// Set this to TRUE to enable searching.
'auth.ldap.search.enable' => FALSE,
// The base DN for the search.
'auth.ldap.search.base' => NULL,
/* The attribute(s) to search for.
*
* This may be a single string, or an array of string. If this is an array, then any of the attributes
* in the array may match the value the user supplied as the username.
*/
'auth.ldap.search.attributes' => NULL,
/* The username & password the SimpleSAMLphp should bind as before searching. If this is left
* as NULL, no bind will be performed before searching.
*/
'auth.ldap.search.username' => NULL,
'auth.ldap.search.password' => NULL,
);
<?php
/*
* Configuration for the multi-DN LDAP authentication module.
*
*/
$ldapmulti = array (
'feide.no' => array(
'description' => 'Feide',
// for a description of options see equivalent options in ldap.php starting with auth.ldap.
'dnpattern' => 'uid=%username%,dc=feide,dc=no,ou=feide,dc=uninett,dc=no',
'hostname' => 'ldap.uninett.no',
'attributes' => NULL,
'enable_tls' => TRUE,
'search.enable' => FALSE,
'search.base' => NULL,
'search.attributes' => NULL,
'search.username' => NULL,
'search.password' => NULL,
),
'uninett.no' => array(
'description' => 'UNINETT',
'dnpattern' => 'uid=%username%,ou=people,dc=uninett,dc=no',
'hostname' => 'ldap.uninett.no',
'attributes' => NULL,
)
);
<?php
/*
* Configuration
*
*/
$config = array (
'application' => 'simplesamlphp',
'baseurl' => 'https://translation.rnd.feide.no/simplesaml',
'key' => '_e7224d54cda84434e25ef087e5c22c1fa5f6ae87cc',
'secret' => '_0e29f782d295bc9782112981f654f1db58174d19d7',
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment