|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.account.AccountMapper gov.bnl.gums.account.LdapAccountMapper
public class LdapAccountMapper
Maps a user to a local account based on the CN of the certificate and the gecos field in the NIS/YP database. The mapping can't be perfect, but contains a series of heuristics that solve up to 90% of the cases, depending on how the NIS database itself is kept.
It's suggested not to use this policy by itself, but to have it part of a CompositeAccountMapper in which a ManualAccountMapper comes first. This allows to override those user mapping that are not satisfying.
Constructor Summary | |
---|---|
LdapAccountMapper()
|
|
LdapAccountMapper(Configuration configuration)
|
|
LdapAccountMapper(Configuration configuration,
java.lang.String name)
|
Method Summary | |
---|---|
AccountMapper |
clone(Configuration configuration)
Create a clone of itself |
java.lang.String |
getAccountField()
|
java.lang.String |
getDnField()
|
java.lang.String |
getJndiLdapUrl()
|
java.lang.String |
getType()
|
static java.lang.String |
getTypeStatic()
|
java.lang.String |
mapUser(java.lang.String userDN,
boolean createIfDoesNotExist)
Maps a grid identity to a local account name. |
void |
setAccountField(java.lang.String accountField)
|
void |
setDnField(java.lang.String dnField)
|
void |
setJndiLdapUrl(java.lang.String jndiLdapUrl)
|
java.lang.String |
toString(java.lang.String bgColor)
Get string representation of this object for displaying in the diagnostic summary web page |
java.lang.String |
toXML()
Get XML representation of this object for writing to gums.config |
Methods inherited from class gov.bnl.gums.account.AccountMapper |
---|
getConfiguration, getDescription, getName, setConfiguration, setDescription, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapAccountMapper()
public LdapAccountMapper(Configuration configuration)
public LdapAccountMapper(Configuration configuration, java.lang.String name)
Method Detail |
---|
public static java.lang.String getTypeStatic()
public AccountMapper clone(Configuration configuration)
AccountMapper
clone
in class AccountMapper
public java.lang.String getAccountField()
public java.lang.String getDnField()
public java.lang.String getJndiLdapUrl()
public java.lang.String getType()
getType
in class AccountMapper
public java.lang.String mapUser(java.lang.String userDN, boolean createIfDoesNotExist)
AccountMapper
mapUser
in class AccountMapper
userDN
- the certificate DN (i.e. '/DC=org/DC=doegrids/OU=People/CN=John Smith').
public void setAccountField(java.lang.String accountField)
public void setDnField(java.lang.String dnField)
public void setJndiLdapUrl(java.lang.String jndiLdapUrl)
public java.lang.String toString(java.lang.String bgColor)
AccountMapper
toString
in class AccountMapper
bgColor
- back ground color
public java.lang.String toXML()
AccountMapper
toXML
in class AccountMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |