Help determining our LDAP connection string

Asked By 10 points N/A Posted on -
qa-featured

Please help us in determining our LDAP connection string. 

We would like to test an active directory membership provider. 

We know our domain, and we are on a corporate network. 

SHARE
Best Answer by Riley weaver
Answered By 0 points N/A #119814

Help determining our LDAP connection string

qa-featured

Try these available solutions that you can use:

1. Use tool from Softerra to get the User DN from the currently-logged in user: http://download.softerra.com/files/GetMyDN.zip

2. You can also type dsquery /? in a command prompt.

For example: dsquery user -name Ja* 

It gets the connection strings for all users with names starting in Ja*.

3. Ran the following VBScript on the Server.

    Set objSysInfo = CreateObject("ADSystemInfo")

objSysInfo.RefreshSchemaCache

WScript.Echo "User name: " & objSysInfo.UserName

Then copy all of the DCs displayed in the dialog box and use it as your LDAP connection string following LDAP://

I hope this can help.

 

Best Answer
Best Answer
Answered By 0 points N/A #119816

Help determining our LDAP connection string

qa-featured

Hello

There are few ways you can find the solution form internet. I searched for its solution on internet. I got two good answers from this research. Start with the simple one is just use a tool to find out the DN from the currently-logged in user.

You can download it from this link: http://www.ldapbrowser.com/download.htm

The connection string is almost similar to normal URL. But it will start with LDAP:// then suppose the domain is “ABC.domian.com” than your URL will be LDAP:// ABC.domin.com/. Now suppose you are the administrator and container name is “new” so the CN will be new. Than DN of the “new” container would be like this: DC=”ABC”, DC=”domain”, DC=”com”. The OU name will be “service account”, and then the OU will be “ABC object”, DC=”ABC”, DC=”domain”, DC=”com”. Now the total URL will be LDAP://ABC.domain.com/OU=service account,OU=ABC object,DC=ABC,DC=domain,DC=com.

So this is the final URL for your LDAP connection string.

Thank you,

Riley weaver

Login/Register to Answer

Related Questions