directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrique Rodriguez (JIRA)" <>
Subject [jira] Created: (DIRSERVER-949) Add support for LDAP URLs in context searches
Date Thu, 31 May 2007 00:33:15 GMT
Add support for LDAP URLs in context searches

                 Key: DIRSERVER-949
             Project: Directory ApacheDS
          Issue Type: New Feature
          Components: core
    Affects Versions: 1.5.0
            Reporter: Enrique Rodriguez
            Priority: Minor

LDAP URLs (RFC 2255) are not supported in context searches when using CoreContextFactory.
 Searching with LDAP URLs is described in the Sun JNDI tutorial: 

We have full support of RFC 2255 in shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/util/LdapURL
class.  However, with CCF, as in the following code ...

CoreContextFactory ccf = new CoreContextFactory();
DirContext ctx = ( DirContext ) ccf.getInitialContext( env );

String url = "ldap://localhost:" + port +

NamingEnumeration answer = url, "", null );

... the LDAP URL format for the name is not supported and the following exception is thrown:

javax.naming.InvalidNameException: Bad DN :

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message