fixed several bugs.

Couldn't change groupname.
sambaSID wasn't always set.
This commit is contained in:
katagia 2003-10-28 18:24:30 +00:00
parent e73932ca33
commit 723c21b13a
3 changed files with 33 additions and 48 deletions

View File

@ -369,7 +369,7 @@ function ldapreload($type) {
$_SESSION['userDN'][0] = time(); $_SESSION['userDN'][0] = time();
// Search 4 values which should be cached // Search 4 values which should be cached
$result = ldap_search($_SESSION['ldap']->server(), $_SESSION['config']->get_UserSuffix(), $result = ldap_search($_SESSION['ldap']->server(), $_SESSION['config']->get_UserSuffix(),
'objectClass=posixAccount', array('cn', 'uidNumber'), 0); '(&(objectClass=posixAccount)(!(uid=*$)))', array('cn', 'uidNumber'), 0);
// Write search result in array // Write search result in array
$entry = ldap_first_entry($_SESSION['ldap']->server(), $result); $entry = ldap_first_entry($_SESSION['ldap']->server(), $result);
while ($entry) { while ($entry) {
@ -415,7 +415,7 @@ function ldapreload($type) {
$_SESSION['hostDN'][0] = time(); $_SESSION['hostDN'][0] = time();
// Search 4 values which should be cached // Search 4 values which should be cached
$result = ldap_search($_SESSION['ldap']->server(), $_SESSION['config']->get_HostSuffix(), $result = ldap_search($_SESSION['ldap']->server(), $_SESSION['config']->get_HostSuffix(),
'objectClass=posixAccount', array('cn', 'uidNumber'), 0); '(&(objectClass=posixAccount)(uid=*$))', array('cn', 'uidNumber'), 0);
// Write search result in array // Write search result in array
$entry = ldap_first_entry($_SESSION['ldap']->server(), $result); $entry = ldap_first_entry($_SESSION['ldap']->server(), $result);
while ($entry) { while ($entry) {
@ -565,7 +565,6 @@ function checkid($values, $values_old=false) {
// Load all needed variables from session // Load all needed variables from session
$minID = intval($_SESSION['config']->get_MinGID()); $minID = intval($_SESSION['config']->get_MinGID());
$maxID = intval($_SESSION['config']->get_MaxGID()); $maxID = intval($_SESSION['config']->get_MaxGID());
$suffix = $_SESSION['config']->get_GroupSuffix();
// Get copy of cache-array // Get copy of cache-array
$temp = $_SESSION['groupDN']; $temp = $_SESSION['groupDN'];
break; break;
@ -579,7 +578,6 @@ function checkid($values, $values_old=false) {
// Load all needed variables from session // Load all needed variables from session
$minID = intval($_SESSION['config']->get_minUID()); $minID = intval($_SESSION['config']->get_minUID());
$maxID = intval($_SESSION['config']->get_maxUID()); $maxID = intval($_SESSION['config']->get_maxUID());
$suffix = $_SESSION['config']->get_UserSuffix();
// load and merge arrays // load and merge arrays
$temp = $_SESSION['userDN']; $temp = $_SESSION['userDN'];
@ -599,7 +597,6 @@ function checkid($values, $values_old=false) {
// Load all needed variables from session // Load all needed variables from session
$minID = intval($_SESSION['config']->get_minMachine()); $minID = intval($_SESSION['config']->get_minMachine());
$maxID = intval($_SESSION['config']->get_maxMachine()); $maxID = intval($_SESSION['config']->get_maxMachine());
$suffix = $_SESSION['config']->get_UserSuffix();
// load and merge arrays // load and merge arrays
$temp = $_SESSION['userDN']; $temp = $_SESSION['userDN'];
@ -612,11 +609,10 @@ function checkid($values, $values_old=false) {
} }
// Remove timestamp stored in [0] // Remove timestamp stored in [0]
unset ($temp[0]); unset ($temp[0]);
// put only uidNumbers in array // put only uidNumbers in array. Put only uids in array witch are smaller than maxID
foreach ($temp as $key) $uids[] = $key['uidNumber']; foreach ($temp as $key) if ($key['uidNumber'] < $maxID) $uids[] = $key['uidNumber'];
// sort array with uids // sort array with uids
if(is_array($uids)) sort ($uids, SORT_NUMERIC); if(is_array($uids)) sort ($uids, SORT_NUMERIC);
if ($values->general_uidNumber=='') { if ($values->general_uidNumber=='') {
// No id-number given // No id-number given
if (!isset($values_old->general_uidNumber)) { if (!isset($values_old->general_uidNumber)) {
@ -793,7 +789,6 @@ function loaduser($dn) {
if (isset($attr['sambaLogonScript'][0])) $return->smb_scriptPath = utf8_decode($attr['sambaLogonScript'][0]); if (isset($attr['sambaLogonScript'][0])) $return->smb_scriptPath = utf8_decode($attr['sambaLogonScript'][0]);
if (isset($attr['sambaProfilePath'][0])) $return->smb_profilePath = $attr['sambaProfilePath'][0]; if (isset($attr['sambaProfilePath'][0])) $return->smb_profilePath = $attr['sambaProfilePath'][0];
if (isset($attr['sambaUserWorkstations'][0])) $return->smb_smbuserworkstations = $attr['sambaUserWorkstations'][0]; if (isset($attr['sambaUserWorkstations'][0])) $return->smb_smbuserworkstations = $attr['sambaUserWorkstations'][0];
if (isset($attr['sambaDomainName'][0])) $return->smb_domain = $attr['sambaDomainName'][0];
if (isset($attr['sambaNTPassword'][0])) $return->smb_password = $attr['sambaNTPassword'][0]; if (isset($attr['sambaNTPassword'][0])) $return->smb_password = $attr['sambaNTPassword'][0];
if (isset($attr['sambaDomainName'][0])) { if (isset($attr['sambaDomainName'][0])) {
if ($_SESSION['config']->is_samba3()) { if ($_SESSION['config']->is_samba3()) {
@ -891,7 +886,6 @@ function loadhost($dn) {
$return->general_username = $attr['uid'][0]; $return->general_username = $attr['uid'][0];
$return->general_uidNumber = $attr['uidNumber'][0]; $return->general_uidNumber = $attr['uidNumber'][0];
if (isset($attr['gecos'][0])) $return->general_gecos = utf8_decode($attr['gecos'][0]); if (isset($attr['gecos'][0])) $return->general_gecos = utf8_decode($attr['gecos'][0]);
if (isset($attr['displayName'][0])) $return->smb_displayName = utf8_decode($attr['displayName'][0]);
// Get Groupname // Get Groupname
$return->general_group = getgrnam($attr['gidNumber'][0]); $return->general_group = getgrnam($attr['gidNumber'][0]);
@ -1246,11 +1240,11 @@ function modifyuser($values,$values_old) { // Will modify the LDAP-Account
if ($_SESSION['config']->is_samba3()) { if ($_SESSION['config']->is_samba3()) {
// We use samba 3 schema // We use samba 3 schema
// Change SID only if we don't use a well known SID // Change SID only if we don't use a well known SID
if ($values->smb_mapgroup==$_SESSION['account']->smb_domain->SID . '-512') $found=true; if ($values->smb_mapgroup==$values->smb_domain->SID . '-512') $found=true;
if ($values->smb_mapgroup==$_SESSION['account']->smb_domain->SID . '-513') $found=true; if ($values->smb_mapgroup==$values->smb_domain->SID . '-513') $found=true;
if ($values->smb_mapgroup==$_SESSION['account']->smb_domain->SID . '-514') $found=true; if ($values->smb_mapgroup==$values->smb_domain->SID . '-514') $found=true;
if (!$found) $attr['sambaPrimaryGroupSID'] = $_SESSION['account']->smb_domain->SID . "-". if (!$found) $attr['sambaPrimaryGroupSID'] = $values->smb_domain->SID . "-".
(2 * getgid($_SESSION['account']->general_group) + $values->smb_domain->RIDbase+1); (2 * getgid($values->general_group) + $values->smb_domain->RIDbase+1);
} }
else { else {
// We use old samba 2.2 schema // We use old samba 2.2 schema
@ -1258,7 +1252,7 @@ function modifyuser($values,$values_old) { // Will modify the LDAP-Account
if ($values->smb_mapgroup== '512') $found=true; if ($values->smb_mapgroup== '512') $found=true;
if ($values->smb_mapgroup== '513') $found=true; if ($values->smb_mapgroup== '513') $found=true;
if ($values->smb_mapgroup== '514') $found=true; if ($values->smb_mapgroup== '514') $found=true;
if (!$found) $attr['primaryGroupID'] = (2 * getgid($_SESSION['account']->general_group) + 1001); if (!$found) $attr['primaryGroupID'] = (2 * getgid($values->general_group) + 1001);
} }
} }
if ($values->general_homedir != $values_old->general_homedir) if ($values->general_homedir != $values_old->general_homedir)
@ -1416,8 +1410,12 @@ function modifyuser($values,$values_old) { // Will modify the LDAP-Account
if (($values->smb_profilePath=='') && ($values->smb_profilePath!=$values_old->smb_profilePath)) $attr_rem['sambaProfilePath'] = $values_old->smb_profilePath; // sambaAccount_may if (($values->smb_profilePath=='') && ($values->smb_profilePath!=$values_old->smb_profilePath)) $attr_rem['sambaProfilePath'] = $values_old->smb_profilePath; // sambaAccount_may
if (($values->smb_smbuserworkstations!='') && ($values->smb_smbuserworkstations!=$values_old->smb_smbuserworkstations))$attr['sambaUserWorkstations'] = $values->smb_smbuserworkstations; // sambaAccount_may if (($values->smb_smbuserworkstations!='') && ($values->smb_smbuserworkstations!=$values_old->smb_smbuserworkstations))$attr['sambaUserWorkstations'] = $values->smb_smbuserworkstations; // sambaAccount_may
if (($values->smb_smbuserworkstations=='') && ($values->smb_smbuserworkstations!=$values_old->smb_smbuserworkstations))$attr_rem['sambaUserWorkstations'] = $values_old->smb_smbuserworkstations; // sambaAccount_may if (($values->smb_smbuserworkstations=='') && ($values->smb_smbuserworkstations!=$values_old->smb_smbuserworkstations))$attr_rem['sambaUserWorkstations'] = $values_old->smb_smbuserworkstations; // sambaAccount_may
if (($values->smb_domain->name!='') && ($values->smb_domain->name!=$values_old->smb_domain->name)) $attr['sambaDomainName'] = $values->smb_domain->name; // sambaAccount_may if ($values->smb_domain->name!=$values_old->smb_domain->name) {
if (($values->smb_domain->name=='') && ($values->smb_domain->name!=$values_old->smb_domain->name)) $attr_rem['sambaDomainName'] = $values_old->smb_domain->name; // sambaAccount_may $attr['sambaDomainName'] = $values->smb_domain->name; // sambaAccount_may
$attr['sambaSid'] = $values->smb_domain->SID . "-" . (2 * $values->general_uidNumber + $values->smb_domain->RIDbase);
$attr['sambaPrimaryGroupSID'] = $values->smb_domain->SID . "-".
(2 * getgid($values->general_group) + $values->smb_domain->RIDbase+1);
}
if (($values->smb_mapgroup!='') && ($values->smb_mapgroup!=$values_old->smb_mapgroup)) $attr['sambaPrimaryGroupSID'] = $values->smb_mapgroup; // sambaAccount_may if (($values->smb_mapgroup!='') && ($values->smb_mapgroup!=$values_old->smb_mapgroup)) $attr['sambaPrimaryGroupSID'] = $values->smb_mapgroup; // sambaAccount_may
if (($values->smb_mapgroup=='') && ($values->smb_mapgroup!=$values_old->smb_mapgroup)) $attr_rem['sambaPrimaryGroupSID'] = $values_old->smb_mapgroup; if (($values->smb_mapgroup=='') && ($values->smb_mapgroup!=$values_old->smb_mapgroup)) $attr_rem['sambaPrimaryGroupSID'] = $values_old->smb_mapgroup;
if ($values->smb_displayName != $values_old->smb_displayName) $attr['displayName'] = utf8_encode($values->smb_displayName); // sambaAccount_may if ($values->smb_displayName != $values_old->smb_displayName) $attr['displayName'] = utf8_encode($values->smb_displayName); // sambaAccount_may
@ -1689,7 +1687,6 @@ function createhost($values) {
$attr['sambaPwdCanChange'] = time(); // sambaAccount_may $attr['sambaPwdCanChange'] = time(); // sambaAccount_may
$attr['sambaPwdMustChange'] = "1893452400"; // sambaAccount_may // anywhere in year 2030 $attr['sambaPwdMustChange'] = "1893452400"; // sambaAccount_may // anywhere in year 2030
$attr['sambaAcctFlags'] = smbflag($values); // sambaAccount_may $attr['sambaAcctFlags'] = smbflag($values); // sambaAccount_may
$attr['displayName'] = utf8_encode($values->smb_displayName); // sambaAccount_may
$attr['sambaDomainName'] = $values->smb_domain->name; // sambaAccount_may $attr['sambaDomainName'] = $values->smb_domain->name; // sambaAccount_may
} }
else { else {
@ -1704,7 +1701,6 @@ function createhost($values) {
$attr['pwdCanChange'] = time(); // sambaAccount_may $attr['pwdCanChange'] = time(); // sambaAccount_may
$attr['pwdMustChange'] = "1893452400"; // sambaAccount_may // anywhere in 2030 $attr['pwdMustChange'] = "1893452400"; // sambaAccount_may // anywhere in 2030
$attr['acctFlags'] = smbflag($values); // sambaAccount_may $attr['acctFlags'] = smbflag($values); // sambaAccount_may
$attr['displayName'] = utf8_encode($values->smb_displayName); // sambaAccount_may
if ($values->smb_domain!='') $attr['domain'] = $values->smb_domain; // sambaAccount_may if ($values->smb_domain!='') $attr['domain'] = $values->smb_domain; // sambaAccount_may
} }
@ -1759,11 +1755,11 @@ function modifyhost($values,$values_old) {
// Because primaryGroup(S)ID is related to gidNumber we have to change it if gidNumber has changed // Because primaryGroup(S)ID is related to gidNumber we have to change it if gidNumber has changed
if ($_SESSION['config']->is_samba3()) if ($_SESSION['config']->is_samba3())
// We use samba 3 schema // We use samba 3 schema
$attr['sambaPrimaryGroupSID'] = $_SESSION['account']->smb_domain->SID . "-". $attr['sambaPrimaryGroupSID'] = $values->smb_domain->SID . "-".
(2 * getgid($_SESSION['account']->general_group) + $values->smb_domain->RIDbase+1); (2 * getgid($values->general_group) + $values->smb_domain->RIDbase+1);
else else
// We use old samba 2.2 schema // We use old samba 2.2 schema
$attr['primaryGroupID'] = (2 * getgid($_SESSION['account']->general_group) + 1001); $attr['primaryGroupID'] = (2 * getgid($values->general_group) + 1001);
} }
/* Write unix attributes into $attr array /* Write unix attributes into $attr array
* Some values don't have to be set. These are only loaded if they are set * Some values don't have to be set. These are only loaded if they are set
@ -1772,8 +1768,6 @@ function modifyhost($values,$values_old) {
$attr['gecos'] = utf8_encode(replace_umlaut($values->general_gecos)); // posixAccount_may $attr['gecos'] = utf8_encode(replace_umlaut($values->general_gecos)); // posixAccount_may
$attr['description'] = utf8_encode($values->general_gecos); // posixAccount_may sambaAccount_may $attr['description'] = utf8_encode($values->general_gecos); // posixAccount_may sambaAccount_may
} }
if ($values->smb_displayName != $values_old->smb_displayName)
$attr['displayName'] = utf8_encode($values->smb_displayName);
// Samba attributes // Samba attributes
if ($_SESSION['config']->is_samba3()) { if ($_SESSION['config']->is_samba3()) {
@ -1836,7 +1830,12 @@ function modifyhost($values,$values_old) {
$attr['sambaLMPassword'] = '01FC5A6BE7BC6929AAD3B435B51404EE'; $attr['sambaLMPassword'] = '01FC5A6BE7BC6929AAD3B435B51404EE';
$attr['sambaPwdLastSet'] = time(); // sambaAccount_may $attr['sambaPwdLastSet'] = time(); // sambaAccount_may
} }
if ($values->smb_domain->name!=$values_old->smb_domain->name) $attr['sambaDomainName'] = $values->smb_domain->name; // sambaAccount_may if ($values->smb_domain->name!=$values_old->smb_domain->name) {
$attr['sambaDomainName'] = $values->smb_domain->name; // sambaAccount_may
$attr['sambaSid'] = $values->smb_domain->SID . "-" . (2 * $values->general_uidNumber + $values->smb_domain->RIDbase);
$attr['sambaPrimaryGroupSID'] = $values->smb_domain->SID . "-".
(2 * getgid($values->general_group) + $values->smb_domain->RIDbase+1);
}
} }
else { else {
// use old samba 2.2 objectclass // use old samba 2.2 objectclass
@ -2029,7 +2028,7 @@ function modifygroup($values,$values_old) {
// Attributes which are required // Attributes which are required
if ($values->general_username != $values_old->general_username) $attr['cn'] = $values->general_username; if ($values->general_username != $values_old->general_username) $attr['cn'] = $values->general_username;
if ($values->general_uidNumber != $values_old->general_uidNumber) { if ($values->general_uidNumber != $values_old->general_uidNumber) {
$attr['uidNumber'] = $values->general_uidNumber; $attr['gidNumber'] = $values->general_uidNumber;
// Set correct SID if UID was changed // Set correct SID if UID was changed
if ($_SESSION['config']->is_samba3()) $attr['sambaSid'] = $values->smb_domain->SID . "-" . (2 * $values->general_uidNumber + $values->smb_domain->RIDbase +1); if ($_SESSION['config']->is_samba3()) $attr['sambaSid'] = $values->smb_domain->SID . "-" . (2 * $values->general_uidNumber + $values->smb_domain->RIDbase +1);
} }

View File

@ -104,8 +104,6 @@ switch ($_POST['select']) {
$account_new->general_uidNumber = $_POST['f_general_uidNumber']; $account_new->general_uidNumber = $_POST['f_general_uidNumber'];
$account_new->general_group = $_POST['f_general_group']; $account_new->general_group = $_POST['f_general_group'];
$account_new->general_gecos = $_POST['f_general_gecos']; $account_new->general_gecos = $_POST['f_general_gecos'];
$account_new->smb_displayName = $_POST['f_smb_displayName'];
// Check if values are OK and set automatic values. if not error-variable will be set // Check if values are OK and set automatic values. if not error-variable will be set
// Add $ to end of hostname if hostname doesn't end with "$" // Add $ to end of hostname if hostname doesn't end with "$"
if ( substr($account_new->general_username, strlen($account_new->general_username)-1, strlen($account_new->general_username)) != '$' ) { if ( substr($account_new->general_username, strlen($account_new->general_username)-1, strlen($account_new->general_username)) != '$' ) {
@ -167,11 +165,6 @@ switch ($_POST['select']) {
$account_new->general_gecos = $account_new->general_username; $account_new->general_gecos = $account_new->general_username;
$errors[] = array('INFO', _('Gecos'), _('Inserted hostname in gecos-field.')); $errors[] = array('INFO', _('Gecos'), _('Inserted hostname in gecos-field.'));
} }
// Check if values are OK and set automatic values. if not error-variable will be set
if (($account_new->smb_displayName=='') && isset($account_new->general_gecos)) {
$account_new->smb_displayName = $account_new->general_gecos;
$errors[] = array('INFO', _('Display name'), _('Inserted gecos-field as display name.'));
}
// Check if UID is valid. If none value was entered, the next useable value will be inserted // Check if UID is valid. If none value was entered, the next useable value will be inserted
$temp = explode(':', checkid($account_new, $account_old)); $temp = explode(':', checkid($account_new, $account_old));
$account_new->general_uidNumber = $temp[0]; $account_new->general_uidNumber = $temp[0];
@ -340,9 +333,9 @@ switch ($select_local) {
echo "</b></legend>\n<table border=0 width=\"100%\">\n<tr>\n<td width=\"50%\">"; echo "</b></legend>\n<table border=0 width=\"100%\">\n<tr>\n<td width=\"50%\">";
echo "<select name=\"f_general_selectprofile\" >"; echo "<select name=\"f_general_selectprofile\" >";
foreach ($profilelist as $profile) echo " <option>$profile</option>\n"; foreach ($profilelist as $profile) echo " <option>$profile</option>\n";
echo "</select></td><td width=\"30%\">\n". echo "</select>\n".
"<input name=\"load\" type=\"submit\" value=\""; echo _('Load Profile'); "<input name=\"load\" type=\"submit\" value=\""; echo _('Load Profile');
echo "\"></td><td width=\"20\"><a href=\"../help.php?HelpNumber=421\" target=\"lamhelp\">"; echo "\"></td><td width=\"30%\"></td><td width=\"20\"><a href=\"../help.php?HelpNumber=421\" target=\"lamhelp\">";
echo _('Help')."</a></td>\n</tr>\n</table>\n</fieldset>\n"; echo _('Help')."</a></td>\n</tr>\n</table>\n</fieldset>\n";
} }
// Show Fieldset with all host settings // Show Fieldset with all host settings
@ -375,10 +368,6 @@ switch ($select_local) {
"</td>\n<td>". "</td>\n<td>".
'<a href="../help.php?HelpNumber=413" target="lamhelp">'._('Help').'</a>'. '<a href="../help.php?HelpNumber=413" target="lamhelp">'._('Help').'</a>'.
'</td></tr><tr><td>'; '</td></tr><tr><td>';
echo _("Display name");
echo "</td>\n<td>".
"<input name=\"f_smb_displayName\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"".$account_new->smb_displayName."\">".
"</td>\n<td><a href=\"../help.php?HelpNumber=420\" target=\"lamhelp\">"._('Help')."</a></td>\n</tr>\n<tr>\n<td>";
echo _('Password'); echo _('Password');
echo '</td><td>'; echo '</td><td>';
if (isset($account_old)) { if (isset($account_old)) {
@ -424,9 +413,9 @@ switch ($select_local) {
echo _("Save profile"); echo _("Save profile");
echo "</b></legend>\n<table border=0 width=\"100%\">\n<tr>\n<td width=\"50%\">"; echo "</b></legend>\n<table border=0 width=\"100%\">\n<tr>\n<td width=\"50%\">";
echo '<input name="f_finish_safeProfile" type="text" size="30" maxlength="50">'; echo '<input name="f_finish_safeProfile" type="text" size="30" maxlength="50">';
echo '</td><td width="30%"><input name="save" type="submit" value="'; echo '<input name="save" type="submit" value="';
echo _('Save profile'); echo _('Save profile');
echo '"></td><td width="20%"><a href="../help.php?HelpNumber=457" target="lamhelp">'._('Help'); echo '"></td><td width="30%"></td><td width="20%"><a href="../help.php?HelpNumber=457" target="lamhelp">'._('Help');
echo "</a></td>\n</tr>\n</table>\n</fieldset>"; echo "</a></td>\n</tr>\n</table>\n</fieldset>";
// Show fieldset with modify, undo and back-button // Show fieldset with modify, undo and back-button
echo "<fieldset class=\"hostedit-bright\"><legend class=\"hostedit-bright\"><b>"; echo "<fieldset class=\"hostedit-bright\"><legend class=\"hostedit-bright\"><b>";
@ -439,11 +428,11 @@ switch ($select_local) {
echo "<input name=\"next_reset\" type=\"submit\" value=\""; echo _('Undo changes'); echo "<input name=\"next_reset\" type=\"submit\" value=\""; echo _('Undo changes');
echo "\">\n"; echo "\">\n";
} }
echo "</td>\n<td width=\"30%\"></td><td width=\"20%\">"; echo "</td>\n<td width=\"30%\">";
echo '<input name="create" type="submit" value="'; echo '<input name="create" type="submit" value="';
if ($account_old) echo _('Modify Account'); if ($account_old) echo _('Modify Account');
else echo _('Create Account'); else echo _('Create Account');
echo '">'."\n"; echo "\">\n</td><td width=\"20%\">";
echo "</td></tr></table></fieldset>\n"; echo "</td></tr></table></fieldset>\n";
break; break;

View File

@ -741,12 +741,9 @@ echo "</title>\n".
if (is_array($errors)) if (is_array($errors))
for ($i=0; $i<sizeof($errors); $i++) StatusMessage($errors[$i][0], $errors[$i][1], $errors[$i][2]); for ($i=0; $i<sizeof($errors); $i++) StatusMessage($errors[$i][0], $errors[$i][1], $errors[$i][2]);
//print_r($account_new); // print_r($account_new);
//print_r($account_old); //print_r($account_old);
//if (($account_new->unix_pwdwarn != $account_old->unix_pwdwarn) && ($account_new->unix_pwdwarn !=''))
// print "treffer";
switch ($select_local) { switch ($select_local) {
/* Select which part of page should be loaded and check values /* Select which part of page should be loaded and check values