During the installation procedure of our product,
we use NetUserAdd to create a user ID, and
NetLocalGroupAdd to create a group. We use the
Net calls as the product is required to run on
Windows NT and Windows 2000.
Everything seems to work ok, except in the case
where we are installing on a domain controller
which is a member of a Windows 2000 domain with
multiple domain controllers. In this instance,
there appears to be a delay between creating the
user ID, and it appearing in the Active Directory
Users and Computes snap in.
Specifically, after creating the user ID and
group required, the installation program then
attempts to make use of them and is unable to do
so in this particular situation due to the delay
in them becoming available.
It seems to make no difference whether the domain
controller is a global catalog holder or not -
there is always a delay between creating the user
ID and it being available for use on that
machine, resulting in the install falling over.
Anybody any ideas as to why this is happening? If
the user ID is for some reason being created on
another machine, for example another domain
controller, is there a way to force some kind of
syncronisation to occur to allow it to become
instantly available to the domain controller on
which the install is being performed.
Sent via Deja.com http://www.deja.com/
Before you buy.