$new_value ); // Check to see if this is a unique Attribute if( $badattr = checkUniqueAttr( $server_id, $dn, $attr, $new_entry ) ) { $search_href='search.php?search=true&form=advanced&server_id=' . $server_id . '&filter=' . $attr . '=' . $badattr; pla_error(sprintf( $lang['unique_attr_failed'] , $attr,$badattr,$dn,$search_href ) ); } // Call the custom callback for each attribute modification // and verify that it should be modified. if( preAttrAdd( $server_id, $dn, $attr, $new_entry ) ) { $add_result = @ldap_mod_add( $ds, $dn, $new_entry ); if( ! $add_result ) pla_error( $lang['could_not_perform_ldap_mod_add'], ldap_error( $ds ), ldap_errno( $ds ) ); } header( "Location: edit.php?server_id=$server_id&dn=$encoded_dn&modified_attrs[]=$encoded_attr" ); ?>