Solved

Bind to a specific server using LDAP (VB.NET 2003)

Posted on 2004-10-27
357 Views
Last Modified: 2008-02-01
I am currently using LDAP to bind to active directory, however, the command process I am calling (TSCMD) to modify AD users requires a servername to bind to, instead of just a domain name.  Every once in a while, my program will bind to DC2 instead of DC1, and then when I go to set the properties of the user on DC1 with TSCMD, the account has not yet replicated to DC1 because it was created on DC2.  Is there a way to bind to a specific server in AD using LDAP so that I can always guarantee that the accounts will be created on the same server as TSCMD references?

Thanks,
exx
0
Question by:exx1976
    8 Comments
     
    LVL 48

    Expert Comment

    by:Mikal613
    are you running windows 2000?
    0
     
    LVL 18

    Author Comment

    by:exx1976
    Yes, Windows 2000.  Sorry..   In 2003 the TS properties are uncovered and available via APIs, in 2000 they are stored as BLOBs and the only way I know how to get at them is with this third party command line tool...

    0
     
    LVL 48

    Expert Comment

    by:Mikal613
    0
     
    LVL 18

    Author Comment

    by:exx1976
    Huh??  That doesn't seem related at all...   "The Microsoft LDAP API (wldap32.dll) cannot access LDAP servers that are multi-homed and have more than 51 IP addresses registered. This problem prevents the Active Directory Administration tools from accessing multi-homed Windows 2000 Domain Controllers with more than 51 IP addresses"


    ??
    0
     
    LVL 18

    Accepted Solution

    by:
    0
     
    LVL 48

    Expert Comment

    by:Mikal613
    Sorry i could nt help

    I should give you points
    0
     
    LVL 18

    Author Comment

    by:exx1976
    LOL  don't worry about it.

    0
     
    LVL 48

    Expert Comment

    by:Mikal613
    lets close this baby
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now