directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Blanchard (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-602) Spaces in PROVIDER_URL environment value seems to lead to problems
Date Tue, 21 Mar 2006 17:18:19 GMT
    [ http://issues.apache.org/jira/browse/DIRSERVER-602?page=comments#action_12371261 ] 

Tony Blanchard commented on DIRSERVER-602:
------------------------------------------

Hi Stefan

the "CurrentDN" is shown in my netbeans 4.1 debugger.
My JDK version is 1.5.0_04
I have already tried to replace the blank char with "%20" but it made no difference.

If I search under the context I created with this problem, the exception returned by ApacheDs
gives also an incomplete name as baseDN for the search operation.

Hope this help.
If you need another information, I will be there

> Spaces in PROVIDER_URL environment value seems to lead to problems
> ------------------------------------------------------------------
>
>          Key: DIRSERVER-602
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-602
>      Project: Directory ApacheDS
>         Type: Bug
>     Versions: 1.0-RC2
>  Environment: WIN XP
> ACI Enabled
> sun LdapCtxFactory
>     Reporter: Tony Blanchard

>
> I found that giving a PROVIDER_URL value like this : "ldap://localhost:389/ou=Mon entreprise,dc=fr"
to the InitialDirContext constructor returned a DirContext with a currentDN attribute to :"ou=Mon".
> Ex :
> lEnv.put(...);
> lEnv.put(Context.PROVIDER_URL, "ldap://localhost:389/ou=Mon entreprise,dc=fr");
> lEnv.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
> try
> {
>       lContext = new InitialDirontext(lEnv);
> }
>   [ .... ]
> As a result, I can not use correctly this context. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message