added sambaGroupType to modify if sambaGRoupMap object wasn'T set

This commit is contained in:
katagia 2003-09-16 16:14:43 +00:00
parent f6614eff5a
commit e1302797e8
2 changed files with 2 additions and 1 deletions

View File

@ -1681,6 +1681,7 @@ function modifygroup($values,$values_old) { // Will modify the LDAP-Group
if (($_SESSION['config']->samba3 == 'yes') && (!in_array('sambaGroupMapping', $values->general_objectClass))) {
if (!isset($attr['objectClass'])) $attr['objectClass'] = $values->general_objectClass;
$attr['objectClass'][] = 'sambaGroupMapping';
$attr['sambaGroupType'] = '2';
}
if ($attr_rem) { // Remove attributes not longer valid

View File

@ -330,7 +330,7 @@ switch ($select_local) { // Select which part of page will be loaded
echo "</td>\n<td><input name=\"f_general_uidNumber\" type=\"text\" size=\"30\" maxlength=\"6\" value=\"".$_SESSION['account']->general_uidNumber."\">".
"</td>\n<td><a href=\"../help.php?HelpNumber=408\" target=\"lamhelp\">"._('Help').
"</a></td>\n</tr>\n<tr>\n<td>";
echo _('Gecos');
echo _('Description');
echo "</td>\n<td><input name=\"f_general_gecos\" type=\"text\" size=\"30\" value=\"".$_SESSION['account']->general_gecos."\"></td>\n".
"<td><a href=\"../help.php?HelpNumber=409\" target=\"lamhelp\">"._('Help')."</a></td>\n</tr>\n<tr>\n<td>";
echo _('Suffix'); echo "</td>\n<td><select name=\"f_general_suffix\">";