Re: User objects cannot be created in the specified container



What type of object is the CN=xxx object? If it is not an OU or a
container, this won't work. It sounds like you are trying to use a group
object. Groups are not container types.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"chand" <chandmk@xxxxxxxxx> wrote in message
news:1184956704.256139.265320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I am using ActiveDirectoryProvider to authenticate users (AD). If I
point my provider to the root of AD every thing works fine.

If I point the provider to a CN which has a group of users under a
nested container under root I am getting the following error.

Root --> OU1--> OU12--> CN

My connection is pointing to the CN.


"User objects cannot be created in the specified container"

I tried reflect over the AD provider and found that the provider is
failing at the following method,

DirectoryAttribute objectClass =
response.Entries[0].Attributes["objectClass"];
if (!this.ContainerIsSuperiorOfUser(objectClass))
{
throw new
ProviderException(SR.GetString("ADMembership_Container_not_superior"));
}
Is there a problem with configuration of AD?

Thanks,
chand



.



Relevant Pages

  • Re: NTE_BAD_KEYSET seems to depend on certificate(Win98, Internet expl
    ... CERT_KEY_PROV_INFO_PROP_ID to get the container name and the provider ... The exact same code and certificate work fine in Windows 2K. ... >> pwszContainerName is associated with a certifcate of keylength ...
    (microsoft.public.platformsdk.security)
  • Re: PFXImportCertStore
    ... has the pwszProvName equaling "Microsoft Base Cryptographic Provider v1.0" ... for the container created by PFXImportCertStore for a p12 file housing a 1024 ... I would have expected it to use the enhanced CSP... ...
    (microsoft.public.platformsdk.security)
  • Re: [MSH] get-childitem - quick way to find/sort on number children
    ... It depends on what the provider implementation returns. ... provider the returned object for a container is a DirectoryInfo object. ... or if you are in the registry you can use the SubKeyCount property: ... Microsoft Command Shell Development ...
    (microsoft.public.windows.server.scripting)
  • Re: [MSH] No root for drives from "flat" providers?
    ... Root parameter is mandatory regardless whether the provider supports ... multiple containers or just a single container. ...
    (microsoft.public.windows.server.scripting)
  • Re: Installing EncFS on SUSE 10.0
    ... burns it to a DVD, the existing container can be emptied, and reused. ... all of this is done as the user, not root. ... do you consider it wasted space? ... "Lost? ...
    (alt.os.linux.suse)