Sign in to follow this  
Followers 0
Eugene Fridman

Save computer's distinguishedName from LDAP.

2 posts in this topic

I am trying to find a way to locate a specific computer in LDAP and pass it's distinguishedName in to a variable.

The problem is, I am not sure which OU the PC is in.

The common LDAP path is LDAP://OU=Computers,DC=Company,DC=Corp,DC=Net (fake one) under OU=Computers there couple of dozen OUs, and each one of them has 4-10 OUs, and those are the OUs that contain the computer containers.

So the full path for one of the computers would be:

LDAP://CN=MyPC0001,OU=IT,OU=Desktops,OU=Computers,DC=Company,DC=Corp,DC=Net (also fake one)

Now, I am trying to find a way to locate another PC, lets say CN=MyPC0002.

Any ideas?

Thank you.

Jeka.

Share this post


Link to post
Share on other sites



I am trying to find a way to locate a specific computer in LDAP and pass it's distinguishedName in to a variable.

The problem is, I am not sure which OU the PC is in.

The common LDAP path is LDAP://OU=Computers,DC=Company,DC=Corp,DC=Net (fake one) under OU=Computers there couple of dozen OUs, and each one of them has 4-10 OUs, and those are the OUs that contain the computer containers.

So the full path for one of the computers would be:

LDAP://CN=MyPC0001,OU=IT,OU=Desktops,OU=Computers,DC=Company,DC=Corp,DC=Net (also fake one)

Now, I am trying to find a way to locate another PC, lets say CN=MyPC0002.

Any ideas?

Thank you.

Jeka.

Might want to take a look at the Admin Tool in my signature.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0