473,386 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Active Directory on another domain

Hi there,

I've got the following problem:
We've got a productive Active Directory on a domain
controller in our company. My project will have to handle
data from that AD. So that there cannot happen anything
bad to the productive one, we set up a new Windows 2003
server with an own DC and AD. Suppose, the companies
domain is mycompany.com. The server can be addressed
internally as myserver.mycompany.com, but its DC is set
up to mydomain.com. This DCs domain is not accessible
from anywhere but the server itself.

Now I want to setup a project using ASP.NET with VB.NET
on my local workstation in VS.NET 2003. How do I get
access to myservers' AD now?

I tried something like this:

Dim de As DirectoryEntry
de = New DirectoryEntry
("LDAP://myserver", "Administrator", "password")

TextBox1.Text = de.Properties("Servername")(0)

But this didnt work at all. What am I doing wrong?
The output says something like this:
System.Runtime.InteropServices.COMException: Server is
not working

I am looking forward to your answers,
regards,
Chris.
Nov 17 '05 #1
1 1026
hi cris,

having trust between two domains is must for accessing the
AD. ask your network Administrator to set up the trust
between the two

regards
-----Original Message-----
Hi there,

I've got the following problem:
We've got a productive Active Directory on a domain
controller in our company. My project will have to handle
data from that AD. So that there cannot happen anything
bad to the productive one, we set up a new Windows 2003
server with an own DC and AD. Suppose, the companies
domain is mycompany.com. The server can be addressed
internally as myserver.mycompany.com, but its DC is set
up to mydomain.com. This DCs domain is not accessible
from anywhere but the server itself.

Now I want to setup a project using ASP.NET with VB.NET
on my local workstation in VS.NET 2003. How do I get
access to myservers' AD now?

I tried something like this:

Dim de As DirectoryEntry
de = New DirectoryEntry
("LDAP://myserver", "Administrator", "password")

TextBox1.Text = de.Properties("Servername")(0)

But this didnt work at all. What am I doing wrong?
The output says something like this:
System.Runtime.InteropServices.COMException: Server is
not working

I am looking forward to your answers,
regards,
Chris.
.

Nov 17 '05 #2

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

Similar topics

1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
0
by: Kooki | last post by:
Hi, I am developing a small programme to add ACTIVE DIRECTORY users to another server. everything works fine .. I get the users from AD using LDAP but while adding users I need to get the user...
0
by: Kooki | last post by:
Hi, I am developing a small programme to add ACTIVE DIRECTORY users to another server. everything works fine .. I get the users from AD using LDAP but while adding users I need to get the user...
2
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
7
by: CoolBreeze812 | last post by:
Hello, I'm using the following code to get the list of computers joined to a domain in Active Directory and using the System.DirectoryServices namespace. DirectoryEntry dirEntry = new...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.