R
richlm
I am creating a new application partition in ADAM using the .NET framework
constructor for ApplicationPartition in
System.DirectoryServices.ActiveDirectory namespace.
It works fine if I use a distinguished name like "DC=mycompany,DC=com" but
anything other than 2 DC= causes the constructor to throw an exception:
"The specified distinguished name has an invalid format".
I have also tried using one of my custom class names in the constructor with
3 parameters, instead of defaulting to the default domainDNS, but still the
same exception.
If I create a new application partition when I create the ADAM instance
using the wizard I can specify something like "CN=myapp" which is exactly
what I want -
I don't need the domain stuff in the distinguished name - except I want to
create the partition programmatically.
This is currently running on XP.
constructor for ApplicationPartition in
System.DirectoryServices.ActiveDirectory namespace.
It works fine if I use a distinguished name like "DC=mycompany,DC=com" but
anything other than 2 DC= causes the constructor to throw an exception:
"The specified distinguished name has an invalid format".
I have also tried using one of my custom class names in the constructor with
3 parameters, instead of defaulting to the default domainDNS, but still the
same exception.
If I create a new application partition when I create the ADAM instance
using the wizard I can specify something like "CN=myapp" which is exactly
what I want -
I don't need the domain stuff in the distinguished name - except I want to
create the partition programmatically.
This is currently running on XP.