0

I am new to AD and adlds and trying to read the schema and not able to get it. Can anyone help me out?? I was trying to connect to ad through below code

 DirectoryEntry entry = new DirectoryEntry(
        "LDAP://CN=Users,DC=addomain,DC=com",
        null,
        null,
        AuthenticationTypes.Secure
        );
        PropertyCollection props = entry.Properties;

        foreach (string propName in props.PropertyNames)
        {
            if (entry.Properties[propName].Value != null)
            {
                Console.WriteLine(propName + " = " + entry.Properties[propName].Value.ToString());
            }
            else
            {
                Console.WriteLine(propName + " = NULL");
            }
        }

OUTPUT:

Click Here to View the Output

I want all the attribute name object name from the ad, but i get this output

Reddy T
  • 13
  • 4
  • Which part of the schema do you not understand? If the command you entered returns a response of some sort, please copy/paste the response here and specify which parts of it you want to clarify. – Richie Thomas Jun 18 '18 at 15:29
  • i have to read the schema for the adlds but i dont know, how i can do that?? – Reddy T Jun 18 '18 at 17:41

0 Answers0