Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get some authentication stuff set up in ASP MVC, but keep getting thrown errors about how it doesn't support anything but Active Directory (AD) and Active Directory Application Mode (ADAM).

How can I figure out the actual running version of my LDAP provider? Is there some sort of command or query I can run against it? It's entirely possible it isn't AD or ADAM, but I have no idea how to figure that out.

share|improve this question

Some directory servers publish information about the vendor in the root DSE in accordance with RFC3045. To retrieve information about the vendorName and vendorVersion, execute the following query:

ldapsearch -h hostname -p port -b "" -s base '(objectClass=*)' vendorName VendorVersion

For example, on my system:

ldapsearch -h localhost -p 1389 -b '' -s base '(objectClass=*)' vendorName VendorVersion
vendorName: UnboundID Corp.
VendorVersion: UnboundID Directory Server

Note that this information might be restricted. For more general information about the root DSE, see my blog entry.

share|improve this answer

When you start up your application, have it check for some well known feature of AD or ADAM.

Perhaps some specific schema attribute? (Probably a weak approach as you can usually add schema to look like AD into your other directory servers).

Perhaps something in the rootDSE ad Terry G suggests?

Perhaps some extended LDAP operation bind that only AD supports, and no other directories?

Find something unique to AD/ADAM and test for its presence, if not fail with a warning.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .