$new_oclass ); if( is_array( $new_attrs ) && count( $new_attrs ) > 0 ) foreach( $new_attrs as $attr => $val ) $new_entry[ $attr ] = $val; //echo "
"; //print_r( $new_entry ); //exit; $ds = pla_ldap_connect( $server_id ) or pla_error( "Could not connect to LDAP server." ); $add_res = @ldap_mod_add( $ds, $dn, $new_entry ); if( ! $add_res ) { pla_error( "Could not perform ldap_mod_add operation", ldap_error( $ds ), ldap_errno( $ds ) ); } else { header( "Location: edit.php?server_id=$server_id&dn=$encoded_dn" ); } ?>