Link to home
Start Free TrialLog in
Avatar of kishore_peddi
kishore_peddi

asked on

How to get the path to LDAP directory server on Local Machine ?

Hi,

I have followed the below link for Forms Authentication using Active Directory (ASP.NET using VB.NET).

http://support.microsoft.com/default.aspx?scid=kb;EN-US;326340

Can you please tell me how to make this sentance :

Dim adPath as String = "LDAP://DC=..,DC=.." 'Path to your LDAP directory server

for my local computer ?

As i am using my local computer how can i pass the path ?

Thanks,
Kishore
Avatar of aponcealbuerne
aponcealbuerne

Hi:
I do something like that using Azman


LDAP://yourdomain.com:389/OU=your organization unit in Azman,DC=yourdomain,DC=com

I think that if you aren't using azman just get rid of the OU like


LDAP://yourdomain.com:389/DC=yourdomain,DC=com

hope helps.
You can use:

localhost

127.0.0.1

or your IP Address
Avatar of kishore_peddi

ASKER



Hi michaelitrn ,

Can you please provide me whole syntax for this :

Dim adPath as String = "LDAP://DC=..,DC=.." 'Path to your LDAP directory server

by using

localhost

127.0.0.1

Thanks,
Kishore


ASKER CERTIFIED SOLUTION
Avatar of michaelitrn
michaelitrn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you do have it up and running it is like aponcealbuerne stated:

LDAP://localhost:389/DC=yourdomain,DC=com
LDAP://127.0.0.1:389/DC=yourdomain,DC=com

Be sure you have the DC correct.

Taken from:http://www.aspspider.com/rss/Rss15456.aspx

DC= should be followed by a domain nameDN, not a servername. If you want to
 bind to DC1 in domain domain.com, you would use this:

 LDAP://DC1/DC=domain,DC=com

 If you use serverless binding, you would just use:
 LDAP://DC=domain,DC=com

Hi Kishore

Unless the program will be running on your production AD server, it wouldn't be meaningful to have another instance of AD running locally in development machine. Because, during development there are some AD behaviours cannot be simulated locally.

Most importantly, this is the required LDAP path format

LDAP://HostName[:PortNumber][/DistinguishedName]

Host name can be an ip address, a server name, a short dns name or a full qualified dns name. Rightfully, using full qualified dns is the best way so as to avoid some "unexpected" behaviours to happen. To use serverless path, the machine needs to join the domain.

PortNumber here, usually you can just ignore it. Unless your AD server uses non-default port number or using SSL connection.

DistinguishedName, can be any AD object (user, group, ou or rootDSE) depending on what you're trying to do.


Henry