* [MOD] Improved ldap import process by adding the username attribute to get from the LDAP server. Solves #544. Thanks to @jdanielcano for the feedback

* [MOD] Updated translations.
This commit is contained in:
nuxsmin
2017-04-20 17:12:20 +02:00
parent b63a276541
commit 830c069dfb
20 changed files with 19389 additions and 19176 deletions

View File

@@ -1074,6 +1074,7 @@ class ItemActionController implements ItemControllerInterface
$options = [
'loginAttribute' => Request::analyze('ldap_loginattribute'),
'nameAttribute' => Request::analyze('ldap_nameattribute'),
'isADS' => Util::boolval(Request::analyze('ldap_ads'))
];

View File

@@ -89,8 +89,7 @@ class UserLdapSync
$value = $values[0];
switch (strtolower($attribute)) {
case 'displayname':
case 'fullname':
case $options['nameAttribute']:
$User->setUserName($value);
break;
case $options['loginAttribute']:

View File

@@ -407,7 +407,7 @@ class Util
*/
public static function getVersion($retBuild = false, $normalized = false)
{
$build = 17042004;
$build = 17042005;
$version = [2, 1, 7];
if ($normalized === true) {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -273,6 +273,29 @@
</select>
</td>
</tr>
<tr>
<td class="descField">
<?php echo __('Atributo Nombre'); ?>
<div id="help-ldap_nameattribute"
class="icon material-icons <?php echo $icons->getIconHelp()->getClass(); ?>"><?php echo $icons->getIconHelp()->getIcon(); ?></div>
<div class="mdl-tooltip mdl-tooltip--large" for="help-ldap_nameattribute">
<p>
<?php echo __('Define el atributo a utilizar para el nombre del usuario en la importación.'); ?>
</p>
</div>
</td>
<td class="valField">
<div class="lowres-title"><?php echo __('Atributo Nombre'); ?></div>
<select id="ldap_nameattribute" name="ldap_nameattribute"
class="select-box" required>
<option value="displayname" selected>displayName</option>
<option value="fullname">fullName</option>
<option value="cn">cn</option>
<option value="name">name</option>
</select>
</td>
</tr>
<tr id="ldap-results" style="display: none;">
<td class="descField">
<?php echo __('Resultados'); ?>