Hi Mike

That's a beast of a disclaimer you have there :-)

There is a "replace" procedure available with LDIFDE as part of the "modify" change 
type.  This should suit your purpose.  An example of the import procedure is as 
follows.

Command line:

C:\>ldifde -i -f import.ldf -s mydc -v

Import file format:

dn: CN=Tony Murray,OU=MyUsers,DC=cibasc,DC=com
changetype: modify
replace: telephoneNumber
telephoneNumber: +41 61 898 2000
-

This replaces whatever is set as the existing telephone number with the one you 
specify in the import file.  Obviously, you can have more than one record per import 
file.  The important thing to remember is the hyphen "-" character by itself on a line 
to separate each attribute that you want to change.

If you have a file with the Distinguished Names and all the telephone number updates 
you require it should be fairly easy to script the creation of the required LDIFDE 
import file.  Your other option is, of course, to script the whole thing with ADSI and 
avoid LDIFDE altogether.

There is an excellent article on LDIFDE by Scott Rachui (also a list member) which 
covers all this and more.  

http://www.devx.com/premier/mgznarch/exchange/2001/06jun01/sr0106/sr0106-1.asp (check 
wrapping).

Tony
www.activedir.org

---------- Original Message ----------------------------------
From: "Mike Maple" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Thu, 16 May 2002 11:28:25 +0100

Hi,

We have AD and Exchange 2000, and have been asked to make changes to 700
telephone numbers (prefix changes not all the same either).  We created
the AD by using LDIF.  Does anyone know of a tool (other than LDIF) that
could be used to update fields for pre-existing users.  Or the procedure
to do it with LDIF.

Mike Maple



-----------------------------------------------------
THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL

AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. 
IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON NOTICE 
OF ITS STATUS. 
PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL AND 
ANY ATTACHMENT FROM YOUR SYSTEM. 
YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, NOR 
DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: 

TO DO SO COULD BE A BREACH OF CONFIDENCE

EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED AMENDMENT, 
AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR AMENDMENT OR 
THE CONSEQUENCES THEREOF. 

WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR VIRUSES OR 
UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. 
WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN ANY 
EMAIL OR ATTACHMENT.

-----------------------------------------------
[EMAIL PROTECTED]

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to