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 .