>DirectoryEntry DE = new DirectoryObject("CN=users,DC=ADomain,DC=com");
This is an invalid LDAP bind string..... it should be something like
this:
DirectoryEntry DE = new
DirectoryObject("LDAP://CN=users,DC=ADomain,DC=com");
DE.Children.Add("Philip", "user");
This is invalid again - you'll need to specify the user name in LDAP
style, e.g. including the cn= prefix:
DE.Children.Add("cn=Philip", "user");
DE.CommitChanges();
And before that, you will need to set at least all the mandatory
properites of the user object, which includes the samAccountName,
which has to be unique in the whole domain:
DE.Properties["sAMAccountName"].Value = "philipp";
THEN
DE.CommitChanges();
Now you should see your new user object in AD.
Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch