Package javax.naming.directory

Examples of javax.naming.directory.InitialDirContext.bind()


      env.put(Context.SECURITY_CREDENTIALS, ConfigMain.getParameter("ldap_adminPassword"));

      LdapUser dr = new LdapUser();
      dr.configure(inBenutzer, inPasswort, getNextUidNumber());
      DirContext ctx = new InitialDirContext(env);
      ctx.bind(getUserDN(inBenutzer), dr);
      ctx.close();
      setNextUidNumber();
      Helper.setMeldung(null, Helper.getTranslation("ldapWritten") + " " + inBenutzer.getNachVorname(), "");
      /*
       * -------------------------------- check if HomeDir exists, else create it --------------------------------
View Full Code Here


            DirContext dirContext = new InitialDirContext(environment);
            for (String ou : ous) {
                log.write("checking ou: " + ou + "\n", LdapHelper.class);
                if (!exists.contains(ou)) {
                    log.write("creating Organisation Unit " + ou + "\n", LdapHelper.class);
                    dirContext.bind(ou, null, getOuAttributes(ou));
                    creationCount++;
                }
            }
            dirContext.close();
        } catch (NamingException 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.