Package com.novell.ldap

Examples of com.novell.ldap.LDAPConnection.disconnect()


                configs.put(cn.getStringValue(), config);

            }

            // Disconnect
            ldapConnection.disconnect();
            return configs;

        }
        catch (LDAPException e) {
            throw new GuacamoleServerException("Error while querying for connections.", e);
View Full Code Here


            log.error(msg, e);
            throw new PublisherException(msg);           
          } finally {
            // disconnect with the server
            try {
              lc.disconnect(ldapDisconnectConstraints);
            } catch (LDAPException e) {
              String msg = intres.getLocalizedMessage("publisher.errordisconnect", getLoginPassword());
              log.error(msg, e);
            }
          }
View Full Code Here

        log.error(msg, e);
        throw new PublisherException(msg);           
      } finally {
        // disconnect with the server
        try {
          lc.disconnect(ldapDisconnectConstraints);
        } catch (LDAPException e) {
          String msg = intres.getLocalizedMessage("publisher.errordisconnect");
          log.error(msg, e);
        }
      }
View Full Code Here

        log.error(msg, e);
        throw new PublisherException(msg);           
      } finally {
        // disconnect with the server
        try {
          lc.disconnect(ldapDisconnectConstraints);
        } catch (LDAPException e) {
          String msg = intres.getLocalizedMessage("publisher.errordisconnect");
          log.error(msg, e);
        }
      }
View Full Code Here

        log.error(msg, e);
        throw new PublisherConnectionException(msg);           
      } finally {
        // disconnect with the server
        try {
          lc.disconnect(ldapDisconnectConstraints);
        } catch (LDAPException e) {
          String msg = intres.getLocalizedMessage("publisher.errordisconnect");
          log.error(msg, e);
        }
      }
View Full Code Here

            throw new EasyJException(null,
                    "easyJ.system.service.LDAPService.getUserFromLDAP(String)",
                    "验证服务器出错", "验证服务器出错");
        } finally {
            try {
                connection.disconnect();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
View Full Code Here

            connection.connect(LDAPServerAddress, 389);
            connection.bind(LDAPConnection.LDAP_V3, "cn=admin,dc=sei,dc=pku",
                    "seiseforge");
            connection.add(entry);
            System.out.println("成功的添加了一条记录!");
            connection.disconnect();
        } catch (Exception e) {
            e.printStackTrace();
            throw new EasyJException(null,
                    "easyJ.system.service.LDAPService.addUserToLDAP(SysUser)",
                    "验证服务器出错", "验证服务器出错");
View Full Code Here

                    + ",ou=People,o=SEForge,dc=sei,dc=pku",
                    new LDAPModification(LdapContext.REPLACE_ATTRIBUTE,
                            new LDAPAttribute("userPassword", user
                                    .getPassword())));
            System.out.println("成功修改一条记录!");
            connection.disconnect();
        } catch (LDAPException e) {
            e.printStackTrace();
            throw new EasyJException(null,
                    "easyJ.system.service.LDAPService.changePassword(SysUser)",
                    "验证服务器出错", "验证服务器出错");
View Full Code Here

     }catch (LDAPException e) {
         System.out.println("errore in UserContext:: getUserAttributes: " + e);            
         throw e;
     }finally {
       if (connection != null)
         connection.disconnect();
     }
     
      }
     
      return userAttributes;
View Full Code Here

     }catch (LDAPException e) {
         System.out.println("errore in UserContext:: getUserAttributes: " + e);            
         throw e;
     }finally {
       if (connection != null)
         connection.disconnect();
     }
     
      }
     
      return userAttributes;
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.