isReadOnly()) pla_error(_('You cannot perform updates while server is in read-only mode')); if (! $ldapserver->haveAuthInfo()) pla_error(_('Not enough information to login to server. Please check your configuration.')); $attr = $_GET['attr']; $dn = isset($_GET['dn']) ? $_GET['dn'] : null; $encoded_dn = rawurlencode($dn); $encoded_attr = rawurlencode($attr); if (! is_null($dn)) $rdn = get_rdn($dn); else $rdn = null; $current_values = $ldapserver->getDNAttr($dn,$attr); if ($current_values) { if (! is_array($current_values)) $current_values = array($current_values); $num_current_values = count($current_values); } else { $current_values = array(); $num_current_values = 0; } $is_object_class = (strcasecmp($attr, 'objectClass') == 0) ? true : false; if ($is_object_class) { # fetch all available objectClasses and remove those from the list that are already defined in the entry $schema_oclasses = $ldapserver->SchemaObjectClasses(); foreach($current_values as $oclass) unset($schema_oclasses[strtolower($oclass)]); } else { $schema_attr = $ldapserver->getSchemaAttribute($attr); } include './header.php'; echo '
'; printf(''; draw_jpeg_photos($ldapserver, $dn, $attr, false); echo ' |
%s
', _('Note: You will get an "inappropriate matching" error if you have not setup an EQUALITY rule on your LDAP server for this attribute.')); # } elseif ($ldapserver->isAttrBinary($attr)) { echo '%s
', _('Note: You will get an "inappropriate matching" error if you have not setup an EQUALITY rule on your LDAP server for this attribute.')); # } else { echo '