Solved

Need help determining LDAP path

Posted on 2009-05-12
6
724 Views
Last Modified: 2013-12-05
How do I find out my LDAP path? I am trying to connect an active directory password changer in Sharepoint.
0
Comment
Question by:K A
6 Comments
 
LVL 6

Accepted Solution

by:
dvast8n earned 25 total points
ID: 24369138
If your domain name is domain.com, your LDAP path is LDAP://dc=domain,dc=com

If your domain name is acer.domain.com, your LDAP path is LDAP://dc=acer,dc=domain,dc=com

etc etc...

I hope this helps.
0
 
LVL 70

Assisted Solution

by:Chris Dent
Chris Dent earned 25 total points
ID: 24369315

Probably needs to extend a bit more than that.

That shows how the Domain Component of the path is constructed, it would be good to extend down to users as well.

If a name appeared as "Bob Hope" in AD Users and Computers and that account was in the default Users container the path would be:

CN=Bob Hope,CN=Users,DC=yourdomain,DC=com

If the account was in a new "folder", an Organisational Unit, called London the path would be:

CN=Bob Hope,OU=London,DC=yourdomain,DC=com

Nesting OUs will make the path longer. This, for example, might appear in AD Users and Computers.

yourdomain.com
    | - London
             | - Users
                     | - Bob Hope

You would have this LDAP Path to get to Bob:

CN=Bob Hope,OU=Users,OU=London,DC=yourdomain,DC=com

HTH

Chris
0
 
LVL 1

Assisted Solution

by:drgonzo1967
drgonzo1967 earned 25 total points
ID: 24369348
Hey golferski.

dvast8n is correct.  You can also use the following commands to get results you can copy / paste without thinkingtoo hard.  Just replace the USERNAME or COMPUTERNAME depending on what object you are looking up.  Hope this helps!

dsquery user -name USERNAME
dsquery computer -name COMPUTERNAME

-gonzo
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Assisted Solution

by:AlJames
AlJames earned 25 total points
ID: 24372365
Yes Drgonzo1967 is correct.

You could also use VBScript if you know how to manipulate the ADSysInfo object..


Dim objADInf
 

Set objADInf = createobject("ADSystemInfo")
 

wscript.echo objADInf.Username

wscript.echo objADInf.Computername

Open in new window

0
 
LVL 7

Assisted Solution

by:mchkorg
mchkorg earned 25 total points
ID: 24372593
A really useful tooll to know everything's full LDAP path is this tool: http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx

Here is a snapshot if needed: http://michauko.org/blog/wp-content/uploads/2009/04/20090429_081259-300x221.png
0
 
LVL 7

Expert Comment

by:mchkorg
ID: 24372599
You just have to know one of your domain controlelr server name and have an account on it with necessary privilegies
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

929 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

13 Experts available now in Live!

Get 1:1 Help Now