Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 4685 invoked from network); 16 Jul 2007 00:42:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2007 00:42:03 -0000 Received: (qmail 8135 invoked by uid 500); 15 Jul 2007 15:42:05 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 8102 invoked by uid 500); 15 Jul 2007 15:42:05 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 8091 invoked by uid 99); 15 Jul 2007 15:42:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jul 2007 08:42:05 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jul 2007 08:42:02 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 006E71A981A; Sun, 15 Jul 2007 08:41:42 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r556417 - /directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/internal/model/JNDIConnectionContext.java Date: Sun, 15 Jul 2007 15:41:41 -0000 To: commits@directory.apache.org From: seelmann@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070715154142.006E71A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: seelmann Date: Sun Jul 15 08:41:41 2007 New Revision: 556417 URL: http://svn.apache.org/viewvc?view=rev&rev=556417 Log: Fix for DIRSTUDIO-149: Using LdapDN instead of the String DN. Modified: directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/internal/model/JNDIConnectionContext.java Modified: directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/internal/model/JNDIConnectionContext.java URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/internal/model/JNDIConnectionContext.java?view=diff&rev=556417&r1=556416&r2=556417 ============================================================================== --- directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/internal/model/JNDIConnectionContext.java (original) +++ directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/internal/model/JNDIConnectionContext.java Sun Jul 15 08:41:41 2007 @@ -40,6 +40,7 @@ import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSession; +import org.apache.directory.shared.ldap.name.LdapDN; import org.apache.directory.studio.ldapbrowser.core.BrowserCoreMessages; import org.apache.directory.studio.ldapbrowser.core.jobs.ExtendedProgressMonitor; @@ -218,7 +219,7 @@ try { - this.namingEnumeration = searchCtx.search( searchBase, filter, controls ); + this.namingEnumeration = searchCtx.search( new LdapDN( searchBase ), filter, controls ); } catch ( NamingException ne ) { @@ -286,7 +287,7 @@ LdapContext modCtx = context.newInstance( controls ); modCtx.addToEnvironment( Context.REFERRAL, "throw" ); //$NON-NLS-1$ - modCtx.modifyAttributes( dn, modificationItems ); + modCtx.modifyAttributes( new LdapDN( dn ), modificationItems ); } catch ( NamingException ne ) { @@ -337,7 +338,7 @@ LdapContext modCtx = context.newInstance( controls ); modCtx.addToEnvironment( Context.REFERRAL, "throw" ); //$NON-NLS-1$ - modCtx.rename( oldDn, newDn ); + modCtx.rename( new LdapDN( oldDn ), new LdapDN( newDn ) ); } catch ( NamingException ne ) @@ -389,7 +390,7 @@ LdapContext modCtx = context.newInstance( controls ); modCtx.addToEnvironment( Context.REFERRAL, "throw" ); //$NON-NLS-1$ - modCtx.createSubcontext( dn, attributes ); + modCtx.createSubcontext( new LdapDN( dn ), attributes ); } catch ( NamingException ne ) { @@ -440,7 +441,7 @@ LdapContext modCtx = context.newInstance( controls ); modCtx.addToEnvironment( Context.REFERRAL, "throw" ); //$NON-NLS-1$ - modCtx.destroySubcontext( dn ); + modCtx.destroySubcontext( new LdapDN( dn ) ); } catch ( NamingException ne ) {