$new_oclass ); if( is_array( $new_attrs ) && count( $new_attrs ) > 0 ) foreach( $new_attrs as $attr => $val ) { $new_entry[ $attr ] = $val; } $ds = $_SESSION['ldap']->server; $add_res = @ldap_mod_add( $ds, $dn, $new_entry ); if( ! $add_res ) { echo $_SESSION['header']; echo "