mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 23:24:07 +01:00
* [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:
@@ -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'))
|
||||
];
|
||||
|
||||
|
||||
@@ -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']:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -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'); ?>
|
||||
|
||||
Reference in New Issue
Block a user