I'm trying to create a new user record into OpenLDAP with object classes person and uidObject. The problem seems to be that with System.DirectoryServices.DirectoryEntry I've found only a way to add a new entry with one object class, but not a way to add multiple object classes. This C# code [...] read more
i have developing project in c# for creating a user in AD. i create a user and i want to create a attribute,like "mobilenumber"for this user. when,i create this,the below error will occured. here my code. if (userDetails.GetUnderlyingObjectType() == typeof(DirectoryEntry)) { dEntry = (DirectoryEntry)userDetails.GetUnderlyingObject(); if (User.UsrPassword != null && User.UsrPassword.Trim() [...] read more