|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.handler.AbstractSearchEntryHandler
org.ldaptive.ad.handler.PrimaryGroupIdHandler
public class PrimaryGroupIdHandler
Constructs the primary group SID and then searches for that group and puts
it's 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
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.handler.AbstractSearchEntryHandler |
|---|
logger |
| Constructor Summary | |
|---|---|
PrimaryGroupIdHandler()
|
|
| Method Summary | |
|---|---|
String |
getBaseDn()
Returns the base DN to search for the primary group. |
String |
getGroupFilter()
Returns the search filter used to find the primary group. |
protected void |
handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the attributes of a search entry. |
int |
hashCode()
|
void |
setBaseDn(String dn)
Sets the base DN to search for the primary group. |
void |
setGroupFilter(String filter)
Sets the search filter used to find the primary group. |
| Methods inherited from class org.ldaptive.handler.AbstractSearchEntryHandler |
|---|
equals, handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, initializeRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrimaryGroupIdHandler()
| Method Detail |
|---|
public String getGroupFilter()
public void setGroupFilter(String filter)
filter - search filterpublic String getBaseDn()
public void setBaseDn(String dn)
dn - base DN
protected void handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
throws LdapException
handleAttributes in class AbstractSearchEntryHandlerconn - the search was performed onrequest - used to find the search entryentry - search entry to extract the attributes from
LdapException - if the LDAP returns an errorpublic int hashCode()
hashCode in class AbstractSearchEntryHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||