Package javax.naming.ldap

Examples of javax.naming.ldap.LdapContext.unbind()


      LdapContext ldapContext = getConnectionContext().createInitialContext();

      try
      {
         log.debug("removing entry: " + ldapu.getDn());
         ldapContext.unbind(ldapu.getDn());
      }
      catch (Exception e)
      {
         throw new IdentityException("Failed to remove user: ", e);
      }
View Full Code Here


            try {
                // Step 1: Unbind the user preferences data
                //System.out.println("Unbind[" + count + "]" + bindOp);
                _logger.info("Unbind[" + count + "]" + bindOp);
                derivedContext.unbind(bindOp);
            } catch (CommunicationException ce) {
                System.out.println("Trying to re-connect to RDS");
                _logger.info("Trying to re-connect to RDS");
                //Impl reconnect logic
View Full Code Here

      System.out.println("##############################REMOVE##############################");
      for (int i = 0; i < 10; i++)
      {
         String cn = "exo" + i;
         String dn = "cn=" + cn + ", " + DEVELOPER_UNIT_DN;
         ctx.unbind(dn);
         System.out.println("remove " + dn + " successfully");
      }
   }

   private void printAttributes(String entry, Attributes attrs)
View Full Code Here

      LdapContext ldapContext = getConnectionContext().createInitialContext();

      try
      {
         log.debug("removing entry: " + ldapr.getDn());
         ldapContext.unbind(ldapr.getDn());

         fireRoleDestroyedEvent(ldapr.getId(), ldapr.getName());
      }
      catch (Exception e)
      {
View Full Code Here

      LdapContext ldapContext = getConnectionContext().createInitialContext();

      try
      {
         log.debug("removing entry: " + ldapu.getDn());
         ldapContext.unbind(ldapu.getDn());
      }
      catch (Exception e)
      {
         throw new IdentityException("Failed to remove user: ", e);
      }
View Full Code Here

      LdapContext ldapContext = getConnectionContext().createInitialContext();

      try
      {
         log.debug("removing entry: " + ldapu.getDn());
         ldapContext.unbind(ldapu.getDn());
      }
      catch (Exception e)
      {
         throw new IdentityException("Failed to remove user: ", e);
      }
View Full Code Here

      LdapContext ldapContext = getConnectionContext().createInitialContext();

      try
      {
         log.debug("removing entry: " + ldapr.getDn());
         ldapContext.unbind(ldapr.getDn());

         fireRoleDestroyedEvent(ldapr.getId(), ldapr.getName());
      }
      catch (Exception e)
      {
View Full Code Here

      LdapContext ldapContext = getLDAPContext(invocationCtx);

      try
      {
         log.finer("removing entry: " + dn);
         ldapContext.unbind(dn);
      }
      catch (Exception e)
      {
         throw new IdentityException("Failed to remove identity: ", e);
      }
View Full Code Here

            try
            {
                // Step 1: Unbind the user preferences data
                //System.out.println("Unbind[" + count + "]" + bindOp);
                _logger.info( "Unbind[" + count + "]" + bindOp );
                derivedContext.unbind( bindOp );
            }
            catch ( CommunicationException ce )
            {
                System.out.println( "Trying to re-connect to RDS" );
                _logger.info( "Trying to re-connect to RDS" );
View Full Code Here

            try {
                // Step 1: Unbind the user preferences data
                //System.out.println("Unbind[" + count + "]" + bindOp);
                _logger.info("Unbind[" + count + "]" + bindOp);
                derivedContext.unbind(bindOp);
            } catch (CommunicationException ce) {
                System.out.println("Trying to re-connect to RDS");
                _logger.info("Trying to re-connect to RDS");
                //Impl reconnect logic
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.