Re: Problem updating schema in ADAM

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



So it is! I guess I missed it, or I guess didn't understand what it meant.
Anyway, thanks a lot for the help.

"Joe Kaplan" wrote:

That line is in all of the schema update LDIF files that come with ADAM.

What this modification does is tells the directory to rebuild its internal
schema settings for directory objects. You normally do this when you have
completed a batch of modifications. You wouldn't want it to do this
everytime it sees a modification to the schema because it wouldn't know if
you had other mods coming, so they give you the opportunity to tell the dir
when you are ready to update. :)

Restarting the directory service should also do this, but the mod is a much
friendlier way of accomplishing the same goal.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Steve" <Steve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F7FEE50B-857E-41D5-BF59-E4350777ABEC@xxxxxxxxxxxxxxxx
It was the schemaUpdateNow that was missing.

In all the web sites and ldif files I studied to figure out how to do
this,
I never saw anything like this. Do you know where I can look to
understand
this better?

"Joe Kaplan" wrote:

Do you have the schemaUpdateNow mod in your LDIF files at the end?

dn:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1

Also, are you closing ADSI Edit and restarting your process after you do
the
schema update? ADSI caches the schema for the directory in memory and on
the file system. It won't update the in memory cache until the process
restarts. During the first access to a given directory, ADSI will check
to
see if the cached version on the file system is up to date based on the
update date of the schema in the directory and will attempt to rebuild
the
local cache if the directory version is newer.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"Steve" <Steve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AFD1651E-6F55-4064-8496-47656093AE23@xxxxxxxxxxxxxxxx
I am using LDIFDE.exe to import some new attributes and classes into the
ADAM
schema. After a lot of experimenting, I managed to get the attribute
and
class definitions in the right order so that LDIFDE did not give any
errors.

Now that I have the schema updated, both ADAM-adsiedit and my own code
get
errors when trying to create instances of my new classes.
0x8007200a The specified directory service attribute or value does not
exist.

However, if I connect to the ADAM instance with "ADAM Schema.msc",
suddenly
everything is good. Both adsiedit and my code can create the
instances.

Am I leaving something out of my schema import? Is there some post
processing of the ADAM instance I am supposed to do after the import
that
adsiedit and my code don't do but ADAM Schema does do? If so, does
anyone
know what it is?






.



Relevant Pages

  • Re: AD Schema Extension Question
    ... As far as information regarding recommendations on schema extensions goes, ... "Joe Kaplan" wrote: ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... The ADAM instances could be ...
    (microsoft.public.windows.server.active_directory)
  • Re: Custom AD attribute - [WP]
    ... "Joe Kaplan" wrote: ... losing who the original hiring manager was during deprovisioning. ... think it is better to create your own schema with a name that has some ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)
  • Re: adminDescription
    ... On Feb 16, 2:47 pm, "Joe Kaplan" ... schema is no big deal when done correctly and don't have much of a downside ... Co-author of "The .NET Developer's Guide to Directory Services Programming"http://www.directoryprogramming.net ...
    (microsoft.public.windows.server.active_directory)
  • Re: Problem updating schema in ADAM
    ... are you closing ADSI Edit and restarting your process after you do the ... ADSI caches the schema for the directory in memory and on ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... However, if I connect to the ADAM instance with "ADAM Schema.msc", ...
    (microsoft.public.windows.server.active_directory)
  • error from federation server proxy
    ... the application is not opening and going to federation server ... "Joe Kaplan" wrote: ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.active_directory)