Mombu the Microsoft Forum

Go Back   Mombu the Microsoft Forum > Microsoft > Modifying dsheuristics
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 30th October 13:02
External User
 
Posts: 1
Default Modifying dsheuristics



Hi,

Is there any way to modify dsheuristics attribute without using ADAM
ADSI Edit, maybe using a script or when performing an unattended
installation of an ADAM instance?

Thanks!
  Reply With Quote


 


2 8th November 22:24
lee flight
External User
 
Posts: 1
Default Modifying dsheuristics



Hi

I'm not aware of anything in ADAM unattended install. Other options
would be using a script, google for "dsheuristics vbscript" or to
use ldif file (create a test ADAM instance, set dsheuristics, export
as ldif file and then test import against a new instance).

Lee Flight
  Reply With Quote
3 17th November 12:28
alicew
External User
 
Posts: 1
Default Modifying dsheuristics


What excactly should I export?

I tried to export Directory Service:

ldifde -s localhost:50004 -d "CN=Directory Service,CN=Windows NT
,CN=Services,CN=Configuration" -f test.ldf -m -o
objectCategory,usnCreated
,usnChanged,whenCreated,whenChanged

I got no entries found...

Thanks.
  Reply With Quote
4 17th November 12:28
lee flight
External User
 
Posts: 1
Default Modifying dsheuristics


Hi

try:

ldifde -f test.ldf -s localhost:50004 -p base -d "CN=Directory
Service,CN=Windows NT,CN=Services,"#configurationNamingContext -l
dsHeuristics

ignore line wraps.

Lee Flight
  Reply With Quote
5 17th November 12:29
alicew
External User
 
Posts: 1
Default Modifying dsheuristics


I really hope I'm not repeating myself, but my reply isn't showing for
hours now...

What excactly should I export?

I tried to export Directory Service:

ldifde -s localhost:50004 -d "CN=Directory Service,CN=Windows NT
,CN=Services,CN=Configuration" -f test.ldf -m -o
objectCategory,usnCreated
,usnChanged,whenCreated,whenChanged

I got no entries found...

Thanks.
  Reply With Quote
6 17th November 12:29
alicew
External User
 
Posts: 1
Default Modifying dsheuristics


My export succeeded when I added the GUID:

ldifde -s localhost:50004 -d "CN=Directory Service,CN=Windows
,CN=Services,CN=Configuration,CN={EC70F89A-DF6B-4849-ACAE-
EDA97E906D11}" -f test.ldf -m -o
objectCategory,usnCreated,usnChanged,whenCreated,w henChanged

But the file I got contained more information than I needed, and
contained the GUIDs of the imported objects.

I guess they are not necessary, but how do I get rid of them?

Anyway, if I want to modify and not add I should use changetype:
modify, right?

So here is the ldf file I've created:

dn: CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration
changetype: modify
replace: dSHeuristics
extensionAttribute1: 0000000001001
-

and the error I got:

Connecting to "localhost:50000"
Logging in as current user using SSPI
Importing directory from file "new.ldf"
Loading entries.
Add error on line 1: Operations Error
The server side error is: 0x20d6 A required subref is missing.
The extended server error is:
000020D6: SvcErr: DSID-0310072B, problem 5012 (DIR_ERROR), data 0

0 entries modified successfully.
An error has occurred in the program

Do I have to include the GUID? This is a problem since it will be
different for the new instance...

Please advice.
Thanks!
  Reply With Quote
7 18th November 14:27
lee flight
External User
 
Posts: 1
Default Modifying dsheuristics


Hi


adding

-l dsheuristics

to your ldifde export will select just that attribute, see my previous post

Not sure where extensionAttribute1 comes from there....

Follow the example of the ldf files that come with ADAM. So if you have

dn: CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration

in your ldif file then import with

-c "CN=Configuration" #configurationNamingContext

on your ldifde import line

Lee Flight
  Reply With Quote
8 18th November 16:02
alicew
External User
 
Posts: 1
Default Modifying dsheuristics


Thanks for your detailed answe, but I'm still struggling...

Export:
ldifde -f test.ldf -s localhost:50004 -p base -d "CN=Directory
Service,CN=Windows NT,CN=Services,"#configurationNamingContext -l
dsHeuristics
Export result:
dn: CN=Directory Service,CN=Windows
NT,CN=Services,CN=Configuration,CN={EC70F89A-DF6B-4849-ACAE-
EDA97E906D11}
changetype: add
dSHeuristics: 0000000001001

Import:
ldifde -i -s localhost:50000 -f test.ldf -j . -c "CN=configuration"
#configurationNamingContext

Import result:
Connecting to "localhost:50000"
Logging in as current user using SSPI
Importing directory from file "test.ldf"
Loading entries.
Add error on line 1: Object Class Violation
The server side error is: 0x207b The object class attribute must be
specified.
The extended server error is:
0000207B: UpdErr: DSID-0305107B, problem 6002 (OBJ_CLASS_VIOLATION),
data 0

0 entries modified successfully.
An error has occurred in the program

I'm not sure which object class is missing, should I add the
configuration objectClass or the Directory Service objectClass to the
export result?

Should I use changetype: add (as the export produced) or modify, since
this attribute already exists in my new instance?

Your help is highly appriciated!
  Reply With Quote
Reply


Thread Tools
Display Modes




666