Package org.openengsb.connector.userprojects.ldap.internal

Examples of org.openengsb.connector.userprojects.ldap.internal.LdapRuntimeException


        Entry entry = new DefaultEntry(dn);
        try {
            entry.add(SchemaConstants.OBJECT_CLASS_ATTRIBUTE, SchemaConstants.ORGANIZATIONAL_UNIT_OC);
            entry.add(SchemaConstants.OU_ATTRIBUTE, dn.getRdn().getName());
        } catch (LdapException e) {
            throw new LdapRuntimeException(e);
        }
        return entry;
    }
View Full Code Here


        Entry entry = new DefaultEntry(dn);
        try {
            entry.add(SchemaConstants.OBJECT_CLASS_ATTRIBUTE, SchemaConstants.NAMED_OBJECT_OC);
            entry.add(SchemaConstants.CN_ATTRIBUTE, dn.getRdn().getName());
        } catch (LdapException e) {
            throw new LdapRuntimeException(e);
        }
        return entry;
    }
View Full Code Here

                // case 3
                entry.add(SchemaConstants.STRING_ATTRIBUTE,
                        StringUtils.join(descriptions, ServerConfig.multipleValueSeparator));
            }
        } catch (LdapException e) {
            throw new LdapRuntimeException(e);
        }
    }
View Full Code Here

    public static Dn concatDn(String rdnAttribute, String rdnValue, Dn basedn) {
        try {
            Rdn rdn = new Rdn(rdnAttribute, rdnValue);
            return basedn.add(rdn);
        } catch (LdapInvalidDnException e) {
            throw new LdapRuntimeException(e);
        }
    }
View Full Code Here

            return null;
        }
        try {
            return attribute.getString();
        } catch (LdapInvalidAttributeValueException e) {
            throw new LdapRuntimeException(e);
        }
    }
View Full Code Here

            while (cursor.next()) {
                Entry entry = cursor.getEntry();
                result.add(extractAttributeEmptyCheck(entry, attributeType));
            }
        } catch (Exception e) {
            throw new LdapRuntimeException(e);
        }
        return result;
    }
View Full Code Here

    public static Dn baseDn() {
        try {
            return new Dn(SchemaConstants.BASE_DN);
        } catch (LdapInvalidDnException e) {
            throw new LdapRuntimeException(e);
        }
    }
View Full Code Here

        List<User> userList;
        try {
            userList = createUsers(ldapDao.getDirectChildren(DnFactory.users()));
        } catch (NoSuchNodeException | MissingParentException e) {
            LOGGER.error("LDAP exception", e);
            throw new LdapRuntimeException(e);
        }
        return userList;
    }
View Full Code Here

        List<Assignment> assignmentList;
        try {
            assignmentList = createAssignments(ldapDao.getDirectChildren(DnFactory.assignments()));
        } catch (NoSuchNodeException | MissingParentException e) {
            LOGGER.error("LDAP exception", e);
            throw new LdapRuntimeException(e);
        }
        return assignmentList;
    }
View Full Code Here

        List<Project> projectList;
        try {
            projectList = createProjects(ldapDao.getDirectChildren(DnFactory.projects()));
        } catch (NoSuchNodeException | MissingParentException e) {
            LOGGER.error("LDAP exception", e);
            throw new LdapRuntimeException(e);
        }
        return projectList;
    }
View Full Code Here

TOP

Related Classes of org.openengsb.connector.userprojects.ldap.internal.LdapRuntimeException

Copyright © 2018 www.massapicom. 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.