Package com.novell.ldap

Examples of com.novell.ldap.LDAPAttributeSet.addAll()


     *   -- Specify the DN of the entry to be created
     *   -- Create an LDAPEntry object with the DN and the attribute set
     *   -- Call the LDAPConnection add method to add it to the directory
     */
    if (extra) {
      attributeSet.addAll(getAttributesFromDN(dn, MATCHINGEXTRAATTRIBUTES));

      // Only persons have (normally) all these extra attributes.
      // A CA might have them if you don't use the default objectClass, but we don't
      // handle that case.
      if (person) {
View Full Code Here


      // Only persons have (normally) all these extra attributes.
      // A CA might have them if you don't use the default objectClass, but we don't
      // handle that case.
      if (person) {
        // First get the easy ones where LDAP and EJBCA spelling is the same
        attributeSet.addAll(getAttributesFromDN(dn, MATCHINGPERSONALATTRIBUTES));
        // sn means surname in LDAP, and is required for persons
        String cn = CertTools.getPartFromDN(dn, "CN");
        String sn = CertTools.getPartFromDN(dn, "SURNAME");
        if ( (sn == null) && (cn != null) ) {
          // Only construct this if we are the standard object class
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.