[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Active directory replication

Picho

10/21/2002 2:02:00 PM

hi,

does anyone know how to programmatically force a replication between domain
controllers of the same domain?

thanx

picho


4 Answers

Willy Denoyette [MVP]

10/21/2002 8:03:00 PM

0

Why would you do this, AD replication is done automatically.

Willy.

"Picho" <picho@telhai.ac.il> wrote in message news:#PO7zKQeCHA.2700@tkmsftngp10...
> hi,
>
> does anyone know how to programmatically force a replication between domain
> controllers of the same domain?
>
> thanx
>
> picho
>
>


Picho

10/22/2002 7:41:00 AM

0

I have to do this because of the gap between the time i create a new user
and the time i can use it's new username (cn). if i force the replication, i
map the new SID to the 'cn' and use the 'cn'. i tried programming using the
new SDI instead of the new 'cn', but had no luck or success, depends on how
you define it...


"Willy Denoyette [MVP]" <willy.denoyette@pandora.be> wrote in message
news:O9SBuQTeCHA.2700@tkmsftngp09...
> Why would you do this, AD replication is done automatically.
>
> Willy.
>
> "Picho" <picho@telhai.ac.il> wrote in message
news:#PO7zKQeCHA.2700@tkmsftngp10...
> > hi,
> >
> > does anyone know how to programmatically force a replication between
domain
> > controllers of the same domain?
> >
> > thanx
> >
> > picho
> >
> >
>
>


Willy Denoyette [MVP]

10/22/2002 7:05:00 PM

0

If you really need to do this you will have to use PInvoke and call the DsReplicaSync API, but take care not to flood the network
and disturb the normal replication operations.

Willy.

"Picho" <picho@telhai.ac.il> wrote in message news:OnPCbaZeCHA.1860@tkmsftngp10...
> I have to do this because of the gap between the time i create a new user
> and the time i can use it's new username (cn). if i force the replication, i
> map the new SID to the 'cn' and use the 'cn'. i tried programming using the
> new SDI instead of the new 'cn', but had no luck or success, depends on how
> you define it...
>
>
> "Willy Denoyette [MVP]" <willy.denoyette@pandora.be> wrote in message
> news:O9SBuQTeCHA.2700@tkmsftngp09...
> > Why would you do this, AD replication is done automatically.
> >
> > Willy.
> >
> > "Picho" <picho@telhai.ac.il> wrote in message
> news:#PO7zKQeCHA.2700@tkmsftngp10...
> > > hi,
> > >
> > > does anyone know how to programmatically force a replication between
> domain
> > > controllers of the same domain?
> > >
> > > thanx
> > >
> > > picho
> > >
> > >
> >
> >
>
>


Darren Mar-Elia

10/23/2002 3:11:00 AM

0

There is a COM automation object in the Win2K Support Tools called
IADSTools.DLL. Its very handy and has methods for doing what you ask. You
can use COM Interop to call it from .Net. There is an IADSTools.doc file
that goes along with it and nicely documents the many function within it.


"Picho" <picho@telhai.ac.il> wrote in message
news:OnPCbaZeCHA.1860@tkmsftngp10...
> I have to do this because of the gap between the time i create a new user
> and the time i can use it's new username (cn). if i force the replication,
i
> map the new SID to the 'cn' and use the 'cn'. i tried programming using
the
> new SDI instead of the new 'cn', but had no luck or success, depends on
how
> you define it...
>
>
> "Willy Denoyette [MVP]" <willy.denoyette@pandora.be> wrote in message
> news:O9SBuQTeCHA.2700@tkmsftngp09...
> > Why would you do this, AD replication is done automatically.
> >
> > Willy.
> >
> > "Picho" <picho@telhai.ac.il> wrote in message
> news:#PO7zKQeCHA.2700@tkmsftngp10...
> > > hi,
> > >
> > > does anyone know how to programmatically force a replication between
> domain
> > > controllers of the same domain?
> > >
> > > thanx
> > >
> > > picho
> > >
> > >
> >
> >
>
>