Re: Need help with import *.ldf



I'm anticipating that the problem is that you need to "modify" this
particular attribute, rather than "add" it. You also probably want to make
sure that your first line isn't improperly wrapping. The error reported
"error on line 2: Object Class Violation". Well, you can't start a line
with "Settings", so that would be part of the problem as well.

If you are just adding 2 entries to the Turflist, why don't you just use
ADSIEdit? Constructing the proper LDIF file for this will take loads more
time than simply adding the entries. ADSIEdit (if you haven't used it
before) is included in the Windows Support Tools (which is on the CD in the
/support/tools folder). Navigate to Configuration, Services, Microsoft
Exchange, Your Org Name, Global Settings, Message Delivery, Default Message
Filter properties, then scroll down until you see the msExchTurfListNames
attribute and add the entries you want.

If you *really* want to use LDIF to import this, look at the link I sent
earlier. The changetype needs to be set to "modify", not "add". There also
needs to be a "-" at the end of the entry - the site I included earlier
shows you the correct context for modifying a record. I'd just be careful
with this, though - if you aren't careful, you could completely overwrite
anything that's in there now.

--
Ben Winzenz
Exchange MVP
MessageOne
Read my blog!
http://winzenz.blogspot.com
http://feeds.feedburner.com/winzenz (RSS Feed)


"addy" <addy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:24803951-49C3-455E-8811-C1D9C10F8BBD@xxxxxxxxxxxxxxxx
Ben,
thx again for reply.
this is the text in the file;
dn: CN=Default Message Filter,CN=Message Delivery,CN=Global
Settings,CN=INTERLOGICA,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=interlogica,DC=nl
changetype: add
msExchTurfListNames: *@kentmaster.com
msExchTurfListNames: *@mail.ru
I hope you can see what's going wrong.

Kind regards,
addy

"Ben Winzenz [Exchange MVP]" wrote:

I don't know what's wrong without looking at the ldif file. All I can
say
is that the format of the file itself is probably incorrect.

What does line 2 of your import file contain?

--
Ben Winzenz
Exchange MVP
MessageOne
Read my blog!
http://winzenz.blogspot.com
http://feeds.feedburner.com/winzenz (RSS Feed)


"addy" <addy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8ED1BCB2-5381-4E7C-AEE5-660EFB7479EA@xxxxxxxxxxxxxxxx
Ben,
thx for reply, when i use that filter i get the following error
C:\>ldifde -i -f senderfilter.ldf -s mailsrv0
Connecting to "mailsrv01"
Logging in as current user using SSPI
Importing directory from file "senderfilter.l
Loading entries.
Add error on line 2: Object Class Violation
The server side error is "The object class at
0 entries modified successfully.
An error has occurred in the program
No log files were written. In order to gener
specify the log file path via the -j option.

what's going wrong?
Please help.
Kind regards addy

"Ben Winzenz [Exchange MVP]" wrote:

You don't have to specify a filter when you are importing.

Try it again just doing ldifde -i -f senderfilter.ldf

Also, make sure that you have the format of the import file correct,
otherwise it won't work.

Refer to the following site for ldifde help.
http://www.computerperformance.co.uk/Logon/CSVDE_LDIFDE.htm

--
Ben Winzenz
Exchange MVP
MessageOne
Read my blog!
http://winzenz.blogspot.com
http://feeds.feedburner.com/winzenz (RSS Feed)


"addy" <addy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:825C3218-4A5B-44A1-B9E8-1260D07E3101@xxxxxxxxxxxxxxxx
Please can enyone tell me how to import a file.

for export i use this commando;
ldifde -m -f senderfilter.ldf -r
"(objectcategory=msexchsmtpturflist)" -d
"cn=configuration,dc=interlogica,dc=nl" -l msexchturflistnames

I get the senderfilter.ldf file so i can modify it.
The problem is after i modify the file and try to import it
For the import i use this commando;
ldifde -i -f senderfilter.ldf -r
"(objectcategory=msexchsmtpturflist)" -d
"cn=configuration,dc=interlogica,dc=nl" -l msexchturflistnames

But this isn't going to work.
Please help.
Greets,
Addy








.



Relevant Pages

  • Re: Need help with import *.ldf
    ... I think de format of the senderfilter.ldf file is correct. ... I also suspect you'd need to have all the old entries in there ... Read my blog! ... Refer to the following site for ldifde help. ...
    (microsoft.public.exchange.admin)
  • Re: Need help with import *.ldf
    ... ADSIEdit forces you to enter them one at a time, so it won't be a good ... I also suspect you'd need to have all the old entries in there ... Read my blog! ... Refer to the following site for ldifde help. ...
    (microsoft.public.exchange.admin)
  • Re: LDIFDE question
    ... ldifde will perform an export from AD by default so if you want to modify ... something using that employee.ldf file you are going to have to specify ... > Writing out entries ...
    (microsoft.public.win2000.active_directory)
  • Re: Migrating User information i.e. Groups
    ... to migrate OUs no prob. ... values for attributes on a modify using ldifde. ... Being able to pass a blank value on modify using ldifde ... LDIFDE and CSVDE were not necessarily meant for an overall migration tool, but rather to either change, import or modify. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Modifying dsheuristics
    ... contained the GUIDs of the imported objects. ... to your ldifde export will select just that attribute, ... Object Class Violation ... add or modify, ...
    (microsoft.public.windows.server.active_directory)

Loading