473,786 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Force AD replication programmaticall y

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 5414
On Wed, 18 Aug 2004 12:28:36 -0400, "Oleg Ogurok" <ol**@ogurok.co m.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******@amerit ech.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
3887
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 and the server upon return to the office. I am planning it this; Move all access tables to sql server and then link the tables to access front-end mdb app (using odbc?). Copy the same setup (access front end + sql backend) onto each laptop....
3
2417
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. I have a new client who want their Excel data moved to Access. They have only 4-6 users of this data and a couple of them want to work disconnected, with their laptops and synchronize when they come into the office. The database will be...
56
5973
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 to a 2nd office 15 minutes down the road. Only one office will be open at a time, so theoretically it'd be possible to copy the back-end manually every night from one office to another, but frankly, that's pretty annoying.
9
3933
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 synchronizer. This allows anyone to do indirect replication, even without
2
359
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 Services. Is there a way to force the replication via C# or unmanaged code? Thanks, Oleg.
2
1918
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 command button in Access to start the jobs. Can someone point me in the right direction? Thanks
5
1600
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 and when I test for conflicts I get what I expect. However if I change the folder to say Copy of Folder when I sync the master automatically wins all conflicts without asking me, for all tables except 1. I find this very unusual. Are there...
6
2148
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 am not sure on how to handle this. I have gone through examples on how to build a result set, but my
0
1339
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, Bill
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.