Step 1 of 2: Name and ObjectClass(es)

RDN: (example: cn=MyNewObject)
Container:
ObjectClass(es):
Hint: You must choose at least one structural objectClass
getMustAttrNames( $oclasses ) ); $all_attrs = array_merge( $oclass->getMustAttrNames(), $oclass->getMayAttrNames( $oclasses ) ); } $required_attrs = array_unique( $required_attrs ); $all_attrs = array_unique( $all_attrs ); sort( $required_attrs ); sort( $all_attrs ); // remove binary attributes and add them to the binary_attrs array $binary_attrs = array(); foreach( $all_attrs as $i => $attr_name ) { if( is_attr_binary( $server_id, $attr_name ) ) { unset( $all_attrs[ $i ] ); $binary_attrs[] = $attr_name; } } $attr_select_html = ""; foreach( $all_attrs as $a ) { // is there a user-friendly translation available for this attribute? if( isset( $friendly_attrs[ strtolower( $a ) ] ) ) { $attr_display = htmlspecialchars( $friendly_attrs[ strtolower( $a ) ] ) . " (" . htmlspecialchars($a) . ")"; } else { $attr_display = htmlspecialchars( $a ); } $attr_select_html .= "\n"; } $binary_attr_select_html = ""; if( count( $binary_attrs ) > 0 ) { foreach( $binary_attrs as $a ) { if( isset( $friendly_attrs[ strtolower( $a ) ] ) ) { $attr_display = htmlspecialchars( $friendly_attrs[ strtolower( $a ) ] ) . " (" . htmlspecialchars( $a ) . ")"; } else { $attr_display = htmlspecialchars( $a ); } $binary_attr_select_html .= "\n"; } } // add the required attribute based on the RDN provided by the user // (ie, if the user specifies "cn=Bob" for their RDN, make sure "cn" is // in the list of required attributes. $rdn_attr = trim( substr( $rdn, 0, strpos( $rdn, '=' ) ) ); $rdn_value = trim( substr( $rdn, strpos( $rdn, '=' ) + 1 ) ); if( in_array( $rdn_attr, $all_attrs ) && ! in_array( $rdn_attr, $required_attrs ) ) $required_attrs[] = $rdn_attr; ?>

Step 2 of 2: Specify attributes and values

Instructions: Enter values for the required attributes.
Then specify any optional attributes. 0 ) { ?> Finally, you may
specify optional binary attributes from a file if needed.
\n"; } else foreach( $required_attrs as $count => $attr ) { ?> 0 ) { ?>
Required Attributes
(none)
" . htmlspecialchars( $friendly_attrs[ strtolower( $attr ) ] ) . ""; } else { $attr_display = htmlspecialchars( $attr ); } echo $attr_display; ?> " name="required_attrs[]" value="" size="40" />
Optional Attributes
(none)
Optional Binary Attributes