Hi ,
Using the LDAP C SDK you can have "/" as part of DN ,
That depends on the plugin that is enabled for the syntax checking ,
I have tested with "/" as part of a SN and CN also UID in Netscape
Directory server ,
I have the default plugins enabled on my directory server.
So the problem should be with the syntax in the ADS ,
Please check that , It should be possible with the ADS also .
regards ,
Bandi
Alexis MacFarlane wrote:
> Is there a way to use the LDAP C SDK to add an object with a forward
> slash in the distinguished name?
>
> I've tried to do so using the ldap_add_s() call. This fails with a
> LDAP_INVALID_DN_SYNTAX error. This seems to be the correct error since
> RFC 1779 does not list the forward slash as a valid DN character.
>
> Unfortunately, I need to programmatically add subnets objects to Active
> Directory. Microsoft stores these subnet objects with a DN in the format
> of "cn=10.10.10.10/24".
>
> Can I use the SDK to accomplish this?
>
> Thanks!
>
> --
> Alexis MacFarlane
> Senior Software Engineer
> Lucent Technologies
> IP Services Product Group