Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need help determining LDAP path

Posted on 2009-05-12
6
Medium Priority
?
732 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Accepted Solution

by:
dvast8n earned 75 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 71

Assisted Solution

by:Chris Dent
Chris Dent earned 75 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 75 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Assisted Solution

by:AlJames
AlJames earned 75 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 75 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Let's recap what we learned from yesterday's Skyport Systems webinar.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

650 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