Class PrimaryGroupIdHandler

All Implemented Interfaces:
Function<SearchResponse,SearchResponse>, Freezable, SearchResultHandler

public class PrimaryGroupIdHandler extends AbstractMessageFunctionalEntryHandler<SearchResponse> implements SearchResultHandler
Constructs the primary group SID and then searches for that group and puts its DN in the 'memberOf' attribute of the original search entry. This handler requires that entries contain both the 'objectSid' and 'primaryGroupID' attributes. If those attributes are not found this handler is a no-op. This handler should be used in conjunction with the ObjectSidHandler to ensure the 'objectSid' attribute is in the proper form. See http://support2.microsoft.com/kb/297951 This handler should only be used with the SearchOperation.execute() method since it leverages the connection to make further searches.