Issue Details (XML | Word | Printable)

Key: DIRSERVER-602
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Stefan Zoerner
Reporter: Tony Blanchard
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Spaces in PROVIDER_URL environment value seems to lead to problems

Created: 22/Mar/06 12:20 AM   Updated: 15/Feb/09 01:34 PM
Component/s: None
Affects Version/s: 1.0-RC2
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
WIN XP
ACI Enabled
sun LdapCtxFactory

Resolution Date: 22/Mar/06 06:50 PM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Stefan Zoerner made changes - 22/Mar/06 06:47 PM
Field Original Value New Value
Assignee Stefan Zoerner [ szoerner ]
Stefan Zoerner made changes - 22/Mar/06 06:50 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Won't Fix [ 2 ]
Emmanuel Lecharny made changes - 15/Feb/09 01:34 PM
Status Resolved [ 5 ] Closed [ 6 ]