[Date Prev][Date Next] [Chronological] [Thread] [Top]

URL dn part



As previously discussed,
	ldap://host/
	ldap://host

should be viewed as equivalent.  While the
section 4 statement 'If no dn is given, the default
is the zero-length DN, "".' is clear in the DN
is optional.

But the ANBF:

       ldapurl    = scheme "://" [hostport] ["/"
                    [dn ["?" [attributes] ["?" [scope]
                    ["?" [filter] ["?" extensions]]]]]]


is somewhat ambiguous as it distinguished between
	ldap://host/

can be parsed as dn absent OR dn present but empty.
And distinguishing these can be implied to be important
as:
	ldap://host
can be used to clearly say dn absent.

This ambiguity could be removed with:
       ldapurl    = scheme "://" [hostport] ["/" dn
                    ["?" [attributes] ["?" [scope]
                    ["?" [filter] ["?" extensions]]]]]]

That is, ldap::/// clear has a present but empty dn part.

I also suggest adding some additional examples for
clarity:

 The following URLs are equivalent:
	ldap://ldap.example.net
	ldap://ldap.example.net/
	ldap://ldap.example.net/?

 Each refers to the Root DSE on the ldap.example.net server.