the user_info.php3 lib files to check for it.
* In lib/ldap/defaults.php3 Dialup-Access should not be added in the default_vals. It is not inherited.
attribute can be used for that. The same is very difficult to implement for sql, so for now user
values overwrite default values in sql (user edit page).
A lot of code and a lot of files where changed so there may be bugs somewhere.
+* In the user edit page print a message under the User Password field about if it exists or not. Update
+ the user_info.php3 lib files to check for it.
+* In lib/ldap/defaults.php3 Dialup-Access should not be added in the default_vals. It is not inherited.
Ver 1.55:
* Update the FAQ about missing attributes from the user/group edit pages and add a few comments
in the configuration files
<tr>
<td align=right colspan=$colspan bgcolor="#d0ddb0">
User Password (changes only)
+<?php
+if ($user_password_exists == 'yes')
+ echo "<font size=-2>User password <font color=\"green\"><b>exists</b></font></font>\n";
+else
+ echo "<font size=-2>User password <font color=\"red\"><b>does not exist</b></font></font>\n";
+?>
</td>
<td>
<input type=password name=passwd value="" size=40>
$dn = $info[0]['dn'];
if ($dn != ''){
foreach($attrmap as $key => $val){
- if ($info[0]["$val"][0] != ''){
+ if ($info[0]["$val"][0] != '' && $key != 'Dialup-Access'){
if ($attrmap[generic]["$key"] == 'generic'){
for($i=0;$i<$info[0]["$val"][count];$i++)
$default_vals["$key"][] = $info[0]["$val"][$i];
$dn3 = $info2[0]['dn'];
if ($dn3 != ''){
foreach($attrmap as $key => $val){
- if ($info2[0]["$val"][0] != ''){
+ if ($info2[0]["$val"][0] != '' && $key != 'Dialup-Access'){
if (!isset($default_vals["$key"]))
$default_vals["$key"] = array();
if ($attrmap[generic]["$key"] == 'generic'){
$title_lang = decode_string("$title_lang", $k);
$title_lang = ($title_lang) ? $title_lang : '-';
$mailalt = ($info[0]['mailalternateaddress'][0]) ? $info[0]['mailalternateaddress'][0] : '-';
+ $user_password_exists = ($info[0]['userpassword'][0] != '') ? 'yes' : 'no';
foreach($attrmap as $key => $val){
$item_vals["$key"] = $info[0]["$val"];
}
$mobile = '-';
$mail = '-';
$mailalt = '-';
+$user_password_exists = 'no';
unset($item_vals);
unset($tmp);
while(($row = @da_sql_fetch_array($res,$config))){
$attr = $row[Attribute];
$val = $row[Value];
+ if ($attr == $config[sql_password_attribute] && $val != '')
+ $user_password_exists = 'yes';
if ($use_op){
$oper = $row[op];
$tmp["$attr"][operator][]="$oper";