Skip to content

Commit

Permalink
Update module_userregistration.php
Browse files Browse the repository at this point in the history
Latest fixes from other enviroments like UNEDCOMA.
  • Loading branch information
jlsalvador committed Jul 29, 2014
1 parent b973784 commit 70fe423
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions config-templates/module_userregistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
// Storage User Id indicate which of the attributes
// that is the key in the storage
// This relates to the attributs mapping
'user.id.param' => 'uid',
'user.id.param' => 'mail',
//'user.id.param' => 'uid',
//'user.id.param' => 'cn',

// Password encryption
Expand All @@ -69,7 +70,7 @@
// Require that password contains a non alphanumeric letter.
'require.any.non.alphanumerics' => true,
// Check if password contains the user values of the params of the array. Empty array to don't check
'no.contains' => array('uid','givenName', 'sn'),
'no.contains' => array('uid','cn', 'sn'),
// Dictionay filenames inside hooks folder. Empty array to don't check
'check.dicctionaries' => array('dict1.txt'),
),
Expand Down Expand Up @@ -171,6 +172,7 @@
),
), // end uid

/*
'givenName' => array(
'validate' => FILTER_DEFAULT,
'layout' => array(
Expand All @@ -185,25 +187,28 @@
),
),
), // end givenName
*/

// Surname (ldap: sn)
'sn' => array(
// Common name: read only
'cn' => array(
'validate' => FILTER_DEFAULT,
'layout' => array(
'control_type' => 'text',
'size' => '35',
'show' => array(
'new_user',
'edit_user',
'admin_new_user',
'admin_edit_user',
),
'read_only' => array(
),
),
), // end ename
),
), // end cn

'mail' => array(
'validate' => FILTER_VALIDATE_EMAIL,
// Surname (ldap: sn)
'sn' => array(
'validate' => FILTER_DEFAULT,
'layout' => array(
'control_type' => 'text',
'show' => array(
Expand All @@ -213,27 +218,25 @@
'admin_edit_user',
),
'read_only' => array(
'edit_user',
),
),
),
), // end mail
), // end ename

// Common name: read only
'cn' => array(
'validate' => FILTER_DEFAULT,
'mail' => array(
'validate' => FILTER_VALIDATE_EMAIL,
'layout' => array(
'control_type' => 'text',
'size' => '35',
'show' => array(
'new_user',
'edit_user',
'admin_new_user',
'admin_edit_user',
),
'read_only' => array(
'edit_user',
),
),
), // end cn
), // end mail

// eduPersonPrincipalName
'eduPersonPrincipalName' => array(
Expand Down Expand Up @@ -358,7 +361,7 @@
),

// Extra storage. Use redis, mongodb, cachelite
'extraStorage.backend' => 'redis',
'extraStorage.backend' => 'mongodb',
// Redis connection
'redis' => array(
'scheme' => 'tcp',
Expand Down

0 comments on commit 70fe423

Please sign in to comment.