ldap modify

Randy Jackson <raj@ctt.bellcore.com> Thu, 21 October 1993 17:45 UTC

Received: from ietf.nri.reston.va.us by IETF.CNRI.Reston.VA.US id aa15849; 21 Oct 93 13:45 EDT
Received: from CNRI.RESTON.VA.US by IETF.CNRI.Reston.VA.US id aa15845; 21 Oct 93 13:45 EDT
Received: from haig.cs.ucl.ac.uk by CNRI.Reston.VA.US id aa19170; 21 Oct 93 13:45 EDT
Received: from bells.cs.ucl.ac.uk by haig.cs.ucl.ac.uk with local SMTP id <g.07999-0@haig.cs.ucl.ac.uk>; Thu, 21 Oct 1993 18:01:00 +0100
Received: from mgm.ctt.bellcore.com by bells.cs.ucl.ac.uk with Internet SMTP id <g.23289-0@bells.cs.ucl.ac.uk>; Thu, 21 Oct 1993 18:00:47 +0100
Received: from dinosaur.ctt.bellcore.com by mgm.ctt.bellcore.com with SMTP id AA19809 (5.65c/IDA-1.4.4 for <osi-ds@cs.ucl.ac.uk>); Thu, 21 Oct 1993 13:00:06 -0400
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: Randy Jackson <raj@ctt.bellcore.com>
Received: by dinosaur.ctt.bellcore.com (4.1/Spike-2.2) id AA17678; Thu, 21 Oct 93 12:59:49 EDT
Message-Id: <9310211659.AA17678@dinosaur.ctt.bellcore.com>
Subject: ldap modify
To: ldap@umich.edu, osi-ds@cs.ucl.ac.uk
Date: Thu, 21 Oct 93 12:59:48 EDT
X-Mailer: ELM [version 2.3 PL11]

	I'm using release 3.0b1 of ldap and have a question about
	using ldap_modify_s.

	I had assumed that the following would work...

	given an attribute that supports multiple values with
	one current value (st=NJ), I would assume that all of
	the following would yield the same result (also assume
	that st is an optional attribute)

	current st=NJ

	1) ldap_modify_s with 	ADD st=New Jersey & DELETE st=NJ 
				(in that order)

	2) ldap_modify_s with   REPLACE st=New Jersey

	3) ldap_modify_s with   ADD st=New Jersey 	followed by
	   ldap_modify_s with   DELETE st=NJ

	2) and 3) will yield st=New Jersey, 1) will cause the attribute
	to be removed (unless I'm doing something wrong).

	Should things work this way???

	Any help would be appreciated.

	randy (raj@ctt.bellcore.com)