Fixed little mistance.
Always displayd "objectclass doesn't fit"
This commit is contained in:
parent
a052e6af9b
commit
0ba49d0dd4
|
@ -1034,6 +1034,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
|||
'mv ' . $_SESSION['account_old' ]->general_homedir . ' ' . $_SESSION['account']->general_homedir);
|
||||
echo '</tr>'."\n";
|
||||
}
|
||||
if (isset($_SESSION['account_old']->general_objectClass)) {
|
||||
if (!in_array('posixAccount', $_SESSION['account_old']->general_objectClass)) {
|
||||
echo '<tr>';
|
||||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||
|
@ -1061,6 +1062,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
|||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'group' :
|
||||
if (($_SESSION['account_old']) && ($_SESSION['account']->general_uidNumber != $_SESSION['account_old']->general_uidNumber)) {
|
||||
|
@ -1075,6 +1077,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
|||
echo _('Change GID-Number of all users in group to new value');
|
||||
echo '</td></tr>'."\n";
|
||||
}
|
||||
if (isset($_SESSION['account_old']->general_objectClass)) {
|
||||
if (($_SESSION['config']->samba3 == 'yes') && (!in_array('sambaGroupMapping', $_SESSION['account_old']->general_objectClass))) {
|
||||
echo '<tr>';
|
||||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||
|
@ -1085,6 +1088,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
|||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'host':
|
||||
if (($_SESSION['account_old']) && ($_SESSION['account']->general_uidNumber != $_SESSION['account_old']->general_uidNumber)) {
|
||||
|
@ -1093,6 +1097,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
|||
'find / -gid ' . $_SESSION['account_old' ]->general_uidNumber . ' -exec chown ' . $_SESSION['account']->general_uidNumber . ' {} \;');
|
||||
echo '</tr>'."\n";
|
||||
}
|
||||
if (isset($_SESSION['account_old']->general_objectClass)) {
|
||||
if (!in_array('posixAccount', $_SESSION['account_old']->general_objectClass)) {
|
||||
echo '<tr>';
|
||||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||
|
@ -1120,6 +1125,7 @@ switch ($select_local) { // Select which part of page will be loaded
|
|||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
echo '<tr><td>'.
|
||||
|
|
Loading…
Reference in New Issue