Package org.jivesoftware.util

Examples of org.jivesoftware.util.JiveInitialLdapContext.addToEnvironment()


       
        /* Set login credentials only if SSL session has been
         * negotiated successfully - otherwise user/password
         * could be transmitted in clear text. */
        if (adminDN != null) {
          context.addToEnvironment(
              Context.SECURITY_AUTHENTICATION,
              "simple");
          context.addToEnvironment(
              Context.SECURITY_PRINCIPAL,
              adminDN);
View Full Code Here


         * could be transmitted in clear text. */
        if (adminDN != null) {
          context.addToEnvironment(
              Context.SECURITY_AUTHENTICATION,
              "simple");
          context.addToEnvironment(
              Context.SECURITY_PRINCIPAL,
              adminDN);
          if (adminPassword != null)
            context.addToEnvironment(
                Context.SECURITY_CREDENTIALS,
View Full Code Here

              "simple");
          context.addToEnvironment(
              Context.SECURITY_PRINCIPAL,
              adminDN);
          if (adminPassword != null)
            context.addToEnvironment(
                Context.SECURITY_CREDENTIALS,
                adminPassword);
        }
      } catch (java.io.IOException ex) {
        Log.error(ex.getMessage(), ex);
View Full Code Here

              Log.debug("LdapManager: ... peer host: "
                  + session.getPeerHost()
                  + ", CipherSuite: " + session.getCipherSuite());
            }

            ctx.addToEnvironment(Context.SECURITY_AUTHENTICATION, "simple");
            ctx.addToEnvironment(Context.SECURITY_PRINCIPAL,
                userDN + "," + baseDN);
            ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, password);
         
          } catch (java.io.IOException ex) {
View Full Code Here

                  + session.getPeerHost()
                  + ", CipherSuite: " + session.getCipherSuite());
            }

            ctx.addToEnvironment(Context.SECURITY_AUTHENTICATION, "simple");
            ctx.addToEnvironment(Context.SECURITY_PRINCIPAL,
                userDN + "," + baseDN);
            ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, password);
         
          } catch (java.io.IOException ex) {
            Log.error(ex.getMessage(), ex);
View Full Code Here

            }

            ctx.addToEnvironment(Context.SECURITY_AUTHENTICATION, "simple");
            ctx.addToEnvironment(Context.SECURITY_PRINCIPAL,
                userDN + "," + baseDN);
            ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, password);
         
          } catch (java.io.IOException ex) {
            Log.error(ex.getMessage(), ex);
          }
View Full Code Here

                      Log.debug("LdapManager: ... peer host: "
                          + session.getPeerHost()
                          + ", CipherSuite: " + session.getCipherSuite());
                    }

                    ctx.addToEnvironment(Context.SECURITY_AUTHENTICATION, "simple");
                    ctx.addToEnvironment(Context.SECURITY_PRINCIPAL,
                        userDN + "," + alternateBaseDN);
                    ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, password);
                 
                  } catch (java.io.IOException ex) {
View Full Code Here

                          + session.getPeerHost()
                          + ", CipherSuite: " + session.getCipherSuite());
                    }

                    ctx.addToEnvironment(Context.SECURITY_AUTHENTICATION, "simple");
                    ctx.addToEnvironment(Context.SECURITY_PRINCIPAL,
                        userDN + "," + alternateBaseDN);
                    ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, password);
                 
                  } catch (java.io.IOException ex) {
                    Log.error(ex.getMessage(), ex);
View Full Code Here

                    }

                    ctx.addToEnvironment(Context.SECURITY_AUTHENTICATION, "simple");
                    ctx.addToEnvironment(Context.SECURITY_PRINCIPAL,
                        userDN + "," + alternateBaseDN);
                    ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, password);
                 
                  } catch (java.io.IOException ex) {
                    Log.error(ex.getMessage(), ex);
                  }
               
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.