Bug 124341 (DEFECT000065323)

Summary: Can't create user name as usera+b but can rename a user to usera+b. This ...
Product: [Novell Products] NDS SDK Reporter: Rajkumar V <vrajkumar>
Component: JNDIAssignee: Parameswaran S <sparamesh>
Status: RESOLVED FIXED QA Contact: Sundar Swamy <ssundar>
Severity: Normal    
Priority: P5 - None CC: aclark
Version: OCT 2006 NDKKeywords: English
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Rajkumar V 2005-10-10 22:54:34 UTC


------- Bug moved to this database by vrajkumar@novell.com 2005-10-10 16:54 -------

This bug previously known as bug DEFECT000065323 at remedy/
remedy/show_bug.cgi?id=DEFECT000065323
Originally filed under the NDS SDK product and JNDI component.

---------
<remedy_version_found_in> BLANK </remedy_version_found_in>
---------
<remedy_milestone> BLANK </remedy_milestone>
---------
<remedy_details> Can't create user name as usera+b but can rename a
      user to usera+b.  This was kind of strange but the following calls
      are not consistant:

((DirContext)ctx).createSubcontext(parser.parse(objFDN), attrSet);
ctx.rename(parser.parse(oldObjectFDN), parser.parse(newObjectFDN));

mtebbs
<TAG,981205,mtebbs,Entered-0,TAG>

I was able to create a user called 'usera+b' on both a 4.x and 5.0 tree.
I don't know what 'parser' means, but that might be causing the failure.
'user1+2' also worked.  There were no errors creating these users.
<TAG,981207,jsumsion,Unverified-14,TAG>
 </remedy_details>
---------
<remedy_notes> aclark (  9/14/99 4:57:44 PM  Testing - Information
      Required ) This was reported against a different service provider.
      Verify that this is still an issue with the LDAP service provider.
Files Involved:  ,  Attached is the code

import java.util.*;
import javax.naming.*;
import javax.naming.directory.*;
import com.novell.service.nds.*;

/**
 *
 */
public class SPD219514
{
   /**
    *
    */
   public static void main (String[] args)
   {
      String name = "usera+b.novell";

      DirContext ctxInitial;
      Attributes attrs;
      NameParser parser;

      try
      {
         // Initial Context
         ctxInitial = new InitialDirContext (getEnvironmentInstance ());

         parser = ctxInitial.getNameParser ("");

         // create a user object
         attrs = new BasicAttributes ();

         // mandatory attributes
         attrs.put ("Object Class",new NdsClassName ("user"));
         attrs.put ("Surname", new NdsCaseIgnoreString ("test"));

         ctxInitial.createSubcontext (parser.parse (name), attrs);

         System.out.println("done");
      }
      catch (NamingException e)
      {
         e.printStackTrace ();
      }

   } /* main () */

   /**
    *
    */
   private static Hashtable getEnvironmentInstance ()
   {
      Hashtable environment = new Hashtable ();

      // factory.initial
      environment.put (
                     "java.naming.factory.initial",
                     "com.novell.service.nds.naming.NdsInitialContextFactory");

      // provider.url
      environment.put ("java.naming.provider.url", "SYRINX_TREE");

      // batchsize
      environment.put ("java.naming.batchsize", "57344");

      return (environment);

   } /* getEnvironmentInstance () */

} /* SPD219514 */
<TAG,981207,bberg,Unverified-14,TAG>
 </remedy_notes>
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here, vrajkumar@novell.com.
   Previous reporter was mtebbs@novell.com.