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);
|
'mv ' . $_SESSION['account_old' ]->general_homedir . ' ' . $_SESSION['account']->general_homedir);
|
||||||
echo '</tr>'."\n";
|
echo '</tr>'."\n";
|
||||||
}
|
}
|
||||||
|
if (isset($_SESSION['account_old']->general_objectClass)) {
|
||||||
if (!in_array('posixAccount', $_SESSION['account_old']->general_objectClass)) {
|
if (!in_array('posixAccount', $_SESSION['account_old']->general_objectClass)) {
|
||||||
echo '<tr>';
|
echo '<tr>';
|
||||||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
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.'));
|
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'group' :
|
case 'group' :
|
||||||
if (($_SESSION['account_old']) && ($_SESSION['account']->general_uidNumber != $_SESSION['account_old']->general_uidNumber)) {
|
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 _('Change GID-Number of all users in group to new value');
|
||||||
echo '</td></tr>'."\n";
|
echo '</td></tr>'."\n";
|
||||||
}
|
}
|
||||||
|
if (isset($_SESSION['account_old']->general_objectClass)) {
|
||||||
if (($_SESSION['config']->samba3 == 'yes') && (!in_array('sambaGroupMapping', $_SESSION['account_old']->general_objectClass))) {
|
if (($_SESSION['config']->samba3 == 'yes') && (!in_array('sambaGroupMapping', $_SESSION['account_old']->general_objectClass))) {
|
||||||
echo '<tr>';
|
echo '<tr>';
|
||||||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
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.'));
|
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'host':
|
case 'host':
|
||||||
if (($_SESSION['account_old']) && ($_SESSION['account']->general_uidNumber != $_SESSION['account_old']->general_uidNumber)) {
|
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 . ' {} \;');
|
'find / -gid ' . $_SESSION['account_old' ]->general_uidNumber . ' -exec chown ' . $_SESSION['account']->general_uidNumber . ' {} \;');
|
||||||
echo '</tr>'."\n";
|
echo '</tr>'."\n";
|
||||||
}
|
}
|
||||||
|
if (isset($_SESSION['account_old']->general_objectClass)) {
|
||||||
if (!in_array('posixAccount', $_SESSION['account_old']->general_objectClass)) {
|
if (!in_array('posixAccount', $_SESSION['account_old']->general_objectClass)) {
|
||||||
echo '<tr>';
|
echo '<tr>';
|
||||||
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
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.'));
|
StatusMessage('WARN', _('ObjectClass doesn\'t fit.'), _('Have to recreate entry.'));
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
echo '<tr><td>'.
|
echo '<tr><td>'.
|
||||||
|
|
Loading…
Reference in New Issue