Operating System - OpenVMS
1753447 Members
4896 Online
108794 Solutions
New Discussion

Enterprise Directory and LDAP Distinguished Names

 
Jeremy Begg
Trusted Contributor

Enterprise Directory and LDAP Distinguished Names

Hi,

I've been working with a customer who is developing an LDAP application on OpenVMS IA64 V8.3-1H1 with Enterprise Directory V5.6.

He's found that ED doesn't appear to handle certain LDAP Distinguished Names properly, and I have confirmed his findings.

1. Trying to add an entry where the DN includes leading spaces, e.g.

cn=" Fred Nurk",ou=Department,o=Customer,c=AU

results in the entry being added, but with the leading spaces being removed. Both DXIM and ldap_search_s() return this entry as

cn=Fred Nurk,ou=Department,o=Customer,c=AU

which is not correct. (It's arguable that leading or trailing spaces is sensible, but they are valid according to RFC1779 & RFC2253.)

2. It seems to be impossible to create an entry with a backslash in the DN. For example:

ou="One\Way Entertainment",o=Customer,c=AU

results in the \ being removed. Specifying

ou=One\\Way Entertainment,o=Customer,c=AU

gives LDAP error 21 (Invalid Syntax).

I can't see anywhere in the Enterprise Documentation where these are listed as restrictions on the DN. Have I missed something, or should I log a bug report?

Thanks,
Jeremy Begg
1 REPLY 1
Wim Van den Wyngaert
Honored Contributor

Re: Enterprise Directory and LDAP Distinguished Names

I know nothing but did you try double or tripple quotes ?

Wim
Wim