What is RootDSE

2

The manager of my company, handed me a file saying very little about "rootDSE", and told me that it is a way to integrate LDAP with programming languages. I've never heard of it that way, and I do not find material necessary to understand if it's right. The definition that was most understandable to me was this: "rootDSE is defined as the root of the directory data tree on a directory server. rootDSE is not part of any namespace The purpose of rootDSE is to provide data on the directory server - Microsoft"

However, is there any way to interact with rootDSE and some programming language? It's a file, a command, what exactly is it?

    
asked by anonymous 15.01.2015 / 11:30

1 answer

2

Is there any way to interact with rootDSE and some programming language?

There are several. In this article posted by @PabloVargas as comment , there is examples in C #, VB.NET and IronPython.

It's a file, a command, what exactly is it?

It is a data structure accessible through a class called DirectoryEntry ". This data structure is language-independent, but it must necessarily be a language that can approach .NET, which is where this class is implemented.

Taking the example in C # as an example for this answer:

        string defaultNamingContext;
        using (DirectoryEntry rootDSE = new DirectoryEntry("LDAP://RootDSE"))
        {
            defaultNamingContext = rootDSE.Properties["defaultNamingContext"].Value.ToString();
        }
        Console.WriteLine("Accessing domain: {0}", defaultNamingContext);

Here he is asking RootDSE for information about the domain where the data structure is hosted. The complete list of information that you may be asked for is here .

I just did not see if it has the possibility of integration with the languages, or if I use only to get the values.

The integration must be written manually if you wish, if the path is the same as reading the RootDSE. Even implemented is just the scheme of obtaining values.

Or you can read this excellent article, which teaches various ways to get the information you want in your Active Directory .

    
15.01.2015 / 15:23