views:

1390

answers:

4

Are thee any tools out there that can tell you what your LDAP connection string is?

A: 

Are you looking for examples of how to set one up?

http://www.connectionstrings.com/ should help if that's the case.

Ian Jacobs
Assuming @ferronrsmith means An active directory string: http://www.connectionstrings.com/active-directory
Justin Dearing
yes its for AD. I'm trying to import users into a view in sql server, but i don't know the current LDAP settings
ferronrsmith
like LDAP://YourLDAPServer ?? what am i suppose to add and how can i get this information from AD
ferronrsmith
A: 

Do you mean what is the name of the LDAP servers for your active directory domain? Then you want to use SRV records. Assuming your active directory base domain is foo.com you want to look up the SRV record of _ldap_tcp.foo.com see this technet article

Justin Dearing
+1  A: 

There's a tool called Softerra ldap browser that I used when I was first messing around with ldap on windows.

It connected something like this ldap://domaincontrollername:port/ and used my network credentials.

I also have done a little in .net with it and have had similar strings to connect and also using ldap://DC=domainname and if your domain name is something like here.there then ldap://dc=here,dc=there

klabranche
how do i supply the username and password of the ldap server within the connection string
ferronrsmith
That's a good question. I actually haven't done that in .Net as I was using windows authentication to authenticate me. However, take a look at this article:http://forums.asp.net/p/1021956/1385081.aspxIt has a sample function to authenticate a user.
klabranche
A: 

I ran the following VBScript on the Server.

    Set objSysInfo = CreateObject("ADSystemInfo")
objSysInfo.RefreshSchemaCache
WScript.Echo "User name: " & objSysInfo.UserName

Copy all of the DCs displayed in the dialog box and use that as your LDAP connection string following LDAP://

Corey B