@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { if (attributeNames == null) { super.handleAttributes(conn, request, entry); } else { for (String s : attributeNames) { final LdapAttribute la = entry.getAttribute(s); if (la != null) { handleAttribute(conn, request, la); } } } }
LdapAttribute newAttr = entry.getAttribute(attrTypeName); if (newAttr == null) { newAttr = new LdapAttribute(la.getSortBehavior(), la.isBinary());
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { if (attributeNames == null) { super.handleAttributes(conn, request, entry); } else { for (String s : attributeNames) { final LdapAttribute la = entry.getAttribute(s); if (la != null) { handleAttribute(conn, request, la); } } } }
LdapAttribute newAttr = entry.getAttribute(attrTypeName); if (newAttr == null) { newAttr = new LdapAttribute(la.getSortBehavior(), la.isBinary());
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { if (entry.getAttribute(dnAttributeName) == null) { entry.addAttribute(new LdapAttribute(dnAttributeName, entry.getDn())); } else if (addIfExists) { entry.getAttribute(dnAttributeName).addStringValue(entry.getDn()); } }
LdapAttribute newAttr = entry.getAttribute(attrTypeName); if (newAttr == null) { newAttr = new LdapAttribute(la.getSortBehavior(), la.isBinary());
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { if (entry.getAttribute(dnAttributeName) == null) { entry.addAttribute(new LdapAttribute(dnAttributeName, entry.getDn())); } else if (addIfExists) { entry.getAttribute(dnAttributeName).addStringValue(entry.getDn()); } }
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { if (entry.getAttribute(dnAttributeName) == null) { entry.addAttribute(new LdapAttribute(dnAttributeName, entry.getDn())); } else if (addIfExists) { entry.getAttribute(dnAttributeName).addStringValue(entry.getDn()); } }
@Override public HandlerResult<SearchEntry> handle(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { // Recursively searches a list of attributes and merges those results with // the existing entry. final List<String> searchedDns = new ArrayList<>(); if (entry.getAttribute(searchAttribute) != null) { searchedDns.add(entry.getDn()); readSearchAttribute(conn, entry, searchedDns); } else { recursiveSearch(conn, entry.getDn(), entry, searchedDns); } return new HandlerResult<>(entry); }
@Override public HandlerResult<SearchEntry> handle(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { // Recursively searches a list of attributes and merges those results with // the existing entry. final List<String> searchedDns = new ArrayList<>(); if (entry.getAttribute(searchAttribute) != null) { searchedDns.add(entry.getDn()); readSearchAttribute(conn, entry, searchedDns); } else { recursiveSearch(conn, entry.getDn(), entry, searchedDns); } return new HandlerResult<>(entry); }
@Override public HandlerResult<SearchEntry> handle(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { // Recursively searches a list of attributes and merges those results with // the existing entry. final List<String> searchedDns = new ArrayList<>(); if (entry.getAttribute(searchAttribute) != null) { searchedDns.add(entry.getDn()); readSearchAttribute(conn, entry, searchedDns); } else { recursiveSearch(conn, entry.getDn(), entry, searchedDns); } return new HandlerResult<>(entry); }
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { boolean newAttribute = false; LdapAttribute mergedAttribute = entry.getAttribute(mergeAttributeName); if (mergedAttribute == null) { mergedAttribute = new LdapAttribute(mergeAttributeName); newAttribute = true; } for (String s : attributeNames) { final LdapAttribute la = entry.getAttribute(s); if (la != null) { if (la.isBinary()) { mergedAttribute.addBinaryValues(la.getBinaryValues()); } else { mergedAttribute.addStringValues(la.getStringValues()); } } } if (mergedAttribute.size() > 0 && newAttribute) { entry.addAttribute(mergedAttribute); } }
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { boolean newAttribute = false; LdapAttribute mergedAttribute = entry.getAttribute(mergeAttributeName); if (mergedAttribute == null) { mergedAttribute = new LdapAttribute(mergeAttributeName); newAttribute = true; } for (String s : attributeNames) { final LdapAttribute la = entry.getAttribute(s); if (la != null) { if (la.isBinary()) { mergedAttribute.addBinaryValues(la.getBinaryValues()); } else { mergedAttribute.addStringValues(la.getStringValues()); } } } if (mergedAttribute.size() > 0 && newAttribute) { entry.addAttribute(mergedAttribute); } }
@Override protected void handleAttributes(final Connection conn, final SearchRequest request, final SearchEntry entry) throws LdapException { boolean newAttribute = false; LdapAttribute mergedAttribute = entry.getAttribute(mergeAttributeName); if (mergedAttribute == null) { mergedAttribute = new LdapAttribute(mergeAttributeName); newAttribute = true; } for (String s : attributeNames) { final LdapAttribute la = entry.getAttribute(s); if (la != null) { if (la.isBinary()) { mergedAttribute.addBinaryValues(la.getBinaryValues()); } else { mergedAttribute.addStringValues(la.getStringValues()); } } } if (mergedAttribute.size() > 0 && newAttribute) { entry.addAttribute(mergedAttribute); } }
throws LdapException final LdapAttribute objectSid = entry.getAttribute("objectSid"); final LdapAttribute primaryGroupId = entry.getAttribute("primaryGroupID"); logger.debug("could not find primary group for SID {}", groupSid); } else { LdapAttribute memberOf = entry.getAttribute("memberOf"); if (memberOf == null) { memberOf = new LdapAttribute("memberOf");
throws LdapException final LdapAttribute objectSid = entry.getAttribute("objectSid"); final LdapAttribute primaryGroupId = entry.getAttribute("primaryGroupID"); logger.debug("could not find primary group for SID {}", groupSid); } else { LdapAttribute memberOf = entry.getAttribute("memberOf"); if (memberOf == null) { memberOf = new LdapAttribute("memberOf");
throws LdapException final LdapAttribute objectSid = entry.getAttribute("objectSid"); final LdapAttribute primaryGroupId = entry.getAttribute("primaryGroupID"); logger.debug("could not find primary group for SID {}", groupSid); } else { LdapAttribute memberOf = entry.getAttribute("memberOf"); if (memberOf == null) { memberOf = new LdapAttribute("memberOf");