Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6528697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:33:31+00:00 2026-05-25T09:33:31+00:00

I have a dev network setup modeled after a production setup at work, and

  • 0

I have a dev network setup modeled after a production setup at work, and I’ve been able to successfully query Active Directory when I’m in the same subnet and can resolve the server. Now, I’m trying to set this up where I am required to remote into a terminal server, which is the only internet accessible server, and use that connection to gain access to an internal-only domain controller where I can then run my queries (all in C#). Maybe a better way of explaining this would be I’m trying to turn this RDP connection into a network bridge of sorts, where I can use the internal address of the DC (such as 192.168.1.1) from across the internet when I create my LDAP path.

Is RDP the right thing to use? I found this off of the code project, but it appears to be for setting up a remote desktop as opposed to allowing me access to the internal DC:

// RDP test
        rdp.Server = "firewall";
        rdp.UserName = "Administrator";
        IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
        secured.ClearTextPassword = "mypassword";
        rdp.Connect();

        string moo2 = rdp.UserName;
        string moo = rdp.ProductName;

        rdp.Disconnect();

My dev TS is called “firewall”, and from there I want to be able to execute the code below against the DC:

// Fire up the directory
        DirectoryEntry ADRoot = new DirectoryEntry();
        ADRoot.Username = "myusername";
        ADRoot.Password = "mypassword";
        ADRoot.Path = "LDAP://192.168.1.11";

        // Search for all the computer objects
        DirectorySearcher searcher = new DirectorySearcher();
        searcher.Filter = "(&ObjectCategory=computer)";
        searcher.SearchRoot = ADRoot;
        SearchResultCollection results = searcher.FindAll();

I’m all for just about any approach that will let me hit this internal DC from over the internet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:33:32+00:00Added an answer on May 25, 2026 at 9:33 am

    After much google research, it looks like the best approach will require a VPN connection. Once I have an established VPN connection (doesn’t matter where or what server in the network lets me in), I can then use the LDAP protocol.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have dev cert and distibution cert. I am able to build an app
I have a dev branch that hasn't been touched for a while. I merged
I have been reading about /dev/urandom , and as far as I can tell,
In a typical enterprise scenario with in-house development, you might have dev, staging, and
I have a dev, that will get around our code coverage by writing tests
I have a dev server in our office that is behind the firewall. The
We have a dev server that has managed to become indexed by Google. Page
I have a typical dev scenario: I have a SQL 2008 database that I
Imagine the following situation: I have two branches: DEV and MAIN. I'm working on
I have an app in dev that involves a small list of people, a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.