haveAuthInfo()) pla_error( $lang['not_enough_login_info'] ); $view = isset( $_GET['view'] ) ? $_GET['view'] : 'objectClasses'; $viewvalue = isset( $_GET['viewvalue'] ) ? $_GET['viewvalue'] : null; if( trim( $viewvalue ) == "" ) $viewvalue = null; if( ! is_null( $viewvalue ) ) $viewed = false; include './header.php'; $schema_error_str = sprintf('%s %s.

%s', $lang['could_not_retrieve_schema_from'],htmlspecialchars($ldapserver->name), $lang['reasons_for_error'],$lang['schema_retrieve_error_1'], $lang['schema_retrieve_error_2'],$lang['schema_retrieve_error_3'], $lang['schema_retrieve_error_4']); ?>

name); ?>


'.$lang['objectclasses'].'' ); ?> | '. $lang['attribute_types'].'' ); ?> | '.$lang['syntaxes'].'' ); ?> | '.$lang['matchingrules'].'' ); ?>

\n"; echo "" . $lang['syntax_oid'] . "" . $lang['desc'] . "\n"; flush(); $counter=1; $schema_syntaxes = get_schema_syntaxes( $ldapserver, null, true ); if( ! $schema_syntaxes ) pla_error( $schema_error_str ); foreach( $schema_syntaxes as $syntax ) { $counter++; $oid = htmlspecialchars( $syntax->getOID() ); $desc = htmlspecialchars( $syntax->getDescription() ); if( $highlight_oid && $highlight_oid == $oid ) echo ""; else echo ""; echo "$oid$desc\n\n"; } echo "\n"; } elseif( $view == 'attributes' ) { flush(); $schema_attrs = get_schema_attributes( $ldapserver, null, true ); $schema_object_classes = get_schema_objectclasses( $ldapserver, null, true ); if( ! $schema_attrs || ! $schema_object_classes ) pla_error( $schema_error_str ); //echo "
";
	//print_r( $schema_attrs );
	//echo "
"; ?> :

getName() ) ) { if( ! is_null( $viewvalue ) ) $viewed = true; flush(); echo "\n\n"; $counter = 0; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo '\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; echo "\n"; echo "\n"; echo ""; echo "\n\n"; echo "\n"; echo "\n"; echo ""; echo "\n\n"; flush(); } } echo "
getName() ) . "\">"; echo $attr->getName() . "
".$lang['desc']."" . ( $attr->getDescription() == null ? '('.$lang['no_description'].')' : $attr->getDescription() ). "
".$lang['oid']."" . $attr->getOID() . "
'.$lang['obsolete']."?" . ( $attr->getIsObsolete() ? '' . $lang['yes'] . '' : $lang['no'] ) . "
".$lang['inherits'].""; if( $attr->getSupAttribute()==null ) echo '('.$lang['none'].')'; else echo "getSupAttribute() ) . "\">" . $attr->getSupAttribute() . "
".$lang['equality']."" . ( $attr->getEquality() == null ? '('.$lang['not_specified'].')' : "getEquality()."\">".$attr->getEquality() ) . "
".$lang['ordering']."" . ( $attr->getOrdering()==null? '('.$lang['not_specified'].')' : $attr->getOrdering() ) . "
".$lang['substring_rule']."" . ( $attr->getSubstr()==null? '('.$lang['not_specified'].')' : $attr->getSubstr() ) . "
".$lang['syntax'].""; if( null != $attr->getType() ) { echo "getSyntaxOID() . "#" . $attr->getSyntaxOID(); echo "\">" . $attr->getType() . " (" . $attr->getSyntaxOID() . ")"; } else { echo $attr->getSyntaxOID(); } echo "
".$lang['single_valued']."" . ( $attr->getIsSingleValue() ? $lang['yes'] : $lang['no'] ) . "
".$lang['collective']."?" . ( $attr->getIsCollective() ? $lang['yes'] : $lang['no'] ) . "
".$lang['user_modification']."" . ( $attr->getIsNoUserModification() ? $lang['no'] : $lang['yes'] ) . "
".$lang['usage']."" . ( $attr->getUsage() ? $attr->getUsage() : '('.$lang['not_specified'].')' ) . "
".$lang['maximum_length'].""; if ( $attr->getMaxLength() === null ) echo '('.$lang['not_applicable'].')'; else { echo number_format( $attr->getMaxLength() ) ." "; if ( $attr->getMaxLength()>1) echo $lang['characters']; else echo $lang['character']; } echo "
".$lang['aliases'].""; if( count( $attr->getAliases() ) == 0 ) echo '('.$lang['none'].')'; else foreach( $attr->getAliases() as $alias_attr_name ) echo "$alias_attr_name "; echo "
".$lang['used_by_objectclasses'].""; if( count( $attr->getUsedInObjectClasses() ) == 0 ) echo '('.$lang['none'].')'; else foreach( $attr->getUsedInObjectClasses() as $used_in_oclass) echo "$used_in_oclass "; echo "
\n"; } elseif( $view == 'matching_rules' ) { $schema_matching_rules = get_schema_matching_rules( $ldapserver, null, true ); echo '' . $lang['jump_to_matching_rule'].'
'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo '
'; echo "\n\n\n"; echo "\n"; flush(); $schema_matching_rules = get_schema_matching_rules( $ldapserver, null, true ); if( ! $schema_matching_rules ) pla_error( $schema_error_str ); $counter=1; foreach( $schema_matching_rules as $rule ) { $counter++; $oid = htmlspecialchars( $rule->getOID() ); $desc = htmlspecialchars( $rule->getName() ); if ( $viewvalue==null || $viewvalue==($rule->getName() )) { if( ! is_null( $viewvalue ) ) $viewed = true; if( null != $rule->getDescription() ) $desc .= ' (' . $rule->getDescription() . ')'; if( true === $rule->getIsObsolete() ) $desc .= ' ' . $lang['obsolete'] . ''; echo ""; echo ""; echo ""; echo "\n"; } } echo "
" . $lang['matching_rule_oid'] . "" . $lang['name'] . "".$lang['used_by_attributes']."
$oid$desc"; if( count( $rule->getUsedByAttrs() ) == 0 ) { echo "
(" . $lang['none'] . ")


\n"; } else { echo "
"; echo ""; echo ""; echo "
\n"; } echo "
\n"; } elseif( $view == 'objectClasses' ) { flush(); $schema_oclasses = get_schema_objectclasses( $ldapserver, null, true ); if( ! $schema_oclasses ) pla_error( $schema_error_str ); ?> :
$oclass ) { foreach( $oclass->getSupClasses() as $parent_name ) { $parent_name = $parent_name; if( isset( $schema_oclasses[ $parent_name ] ) ) { $schema_oclasses[ $parent_name ]->addChildObjectClass( $oclass->getName() ); } } } ?>
$oclass ) { if ( $viewvalue==null || 0 == strcasecmp( $viewvalue, $oclass->getName() ) ) { if( ! is_null( $viewvalue ) ) $viewed = true; ?>

getName(); ?>

: getOID(); ?>

getDescription() ) { ?>

: getDescription(); ?>

: getType(); ?>

getIsObsolete() == true ) { ?>

: getSupClasses() ) == 0 ) echo "(" . $lang['none'] . ")"; else foreach( $oclass->getSupClasses() as $i => $object_class ) { echo '' . htmlspecialchars( $object_class ) . ''; if( $i < count( $oclass->getSupClasses() ) - 1 ) echo ', '; } ?>

: getName(), 'top' ) ) echo "(all)"; elseif( count( $oclass->getChildObjectClasses() ) == 0 ) echo "(" . $lang['none'] . ")"; else foreach( $oclass->getChildObjectClasses() as $i => $object_class ) { echo '' . htmlspecialchars( $object_class ) . ''; if( $i < count( $oclass->getChildObjectClasses() ) - 1 ) echo ', '; } ?>

getMustAttrs($schema_oclasses) ) > 0 ) { echo ' getMayAttrs($schema_oclasses) ) > 0 ) { echo '