473,473 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Force AD replication programmatically

Hi all,

After adding a user to active directory, its state is set to Disabled until
the next replication occurs or until I manually force the replication using
Active Directory Sites and Services.
Is there a way to force the replication via C# or unmanaged code?

Thanks,

Oleg.
Jul 21 '05 #1
2 5369
On Wed, 18 Aug 2004 12:28:36 -0400, "Oleg Ogurok" <ol**@ogurok.com.ihatespammers.ireallydo.co>
wrote:

¤ Hi all,
¤
¤ After adding a user to active directory, its state is set to Disabled until
¤ the next replication occurs or until I manually force the replication using
¤ Active Directory Sites and Services.
¤ Is there a way to force the replication via C# or unmanaged code?
¤

You may want to take a look at the IADstools.dll COM component.

http://support.microsoft.com/default...b;en-us;246530

http://support.microsoft.com/default...b;en-us;232072
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #2
When you create a user and if you have a password policy, it is always created
as disabled, replication has nothing to do with it and forcing a replication
will not enable a user.

The reason is that if you have a password policy, an account must be set with a
password before it can be enabled. You can not create a user object with a
password, you must create the object, then set the password. Generally most
tools will enable the ID when the password is set as well (a la ADUC or the NET
USER command).

Now that account will be useable by any machines that authenticate against the
DC that has the information, this replicates out to other machines. Until the ID
gets to a specific DC, that DC can not authenticate that user. That would be the
only reason replication would be involved but I still wouldn't recommend forcing
the recommendation separately. More than likely you can correct the issue by
having a more thorough understanding of your replication topology and the
configurations that can be made to it.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net

Oleg Ogurok wrote:
Hi all,

After adding a user to active directory, its state is set to Disabled until
the next replication occurs or until I manually force the replication using
Active Directory Sites and Services.
Is there a way to force the replication via C# or unmanaged code?

Thanks,

Oleg.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John | last post by:
Hi We have an access app (front-end+backend) running on the company network. I am trying to setup replication for laptop users who go into field and need the data synched between their laptops...
3
by: dlesandrini | last post by:
I need advice about my decision to go with Replication in general. This post was placed on the Microsoft Replication newsgroup, but I really value the feedback that comes from this group as well. ...
56
by: Raphi | last post by:
Hi, I've been using an Access application I wrote for an office with the front-end stored on all computers and the back-end on one of them serving as an Access file server. Now we're moving...
9
by: David W. Fenton | last post by:
See: Updated version of the Microsoft Jet 4.0 Service Pack 8 replication files is available in the Download Center http://support.microsoft.com/?scid=kb;en-us;321076 This includes the Jet 4...
2
by: Oleg Ogurok | last post by:
Hi all, After adding a user to active directory, its state is set to Disabled until the next replication occurs or until I manually force the replication using Active Directory Sites and...
2
by: Dale | last post by:
Access 2000 connected to SQL 2000 Is there a way to initiate Sql Replication via code from within Access? All Replication jobs are setup to run on demand. I would like to be able to click a...
5
by: ken | last post by:
Hi, I set up replication with a Frontend/Backend database set up. I noticed that when I sync the master with the replica in the same folder where I set up the replication, everything works fine...
6
by: iKiLL | last post by:
Hi all I am developing in C#, CF2 and SQL Mobile. Currently my app is using Merge Replication. This is all working well. I have now decided to try and use Result sets in my application but I...
0
by: Kruton | last post by:
Hello, Does anyone happen to know if there is a way to programmatically stop and start transactional replication? I would like to have this done without stopping the SQL Server Agent. Thanks,...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.