directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r573242 - /directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
Date Thu, 06 Sep 2007 12:18:52 GMT
Author: seelmann
Date: Thu Sep  6 05:18:52 2007
New Revision: 573242

URL: http://svn.apache.org/viewvc?rev=573242&view=rev
Log:
Fix for DIRSTUDIO-162

Modified:
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java

Modified: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java?rev=573242&r1=573241&r2=573242&view=diff
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
(original)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/JNDIConnectionWrapper.java
Thu Sep  6 05:18:52 2007
@@ -366,14 +366,22 @@
             private NamingException namingException = null;
 
 
-            // TODO: delteOldRdn
-
             public void run()
             {
                 try
                 {
                     LdapContext modCtx = context.newInstance( controls );
                     modCtx.addToEnvironment( Context.REFERRAL, "throw" ); //$NON-NLS-1$
+
+                    if ( deleteOldRdn )
+                    {
+                        modCtx.addToEnvironment( "java.naming.ldap.deleteRDN", "true" );
//$NON-NLS-1$ //$NON-NLS-2$
+                    }
+                    else
+                    {
+                        modCtx.addToEnvironment( "java.naming.ldap.deleteRDN", "false" );
//$NON-NLS-1$ //$NON-NLS-2$
+                    }
+
                     modCtx.rename( new LdapName( oldDn ), new LdapName( newDn ) );
                 }
                 catch ( NamingException ne )



Mime
View raw message