public class UserPrincipalNameSearchMapper extends Object implements UsernameSearchMapper
userPrincipalName. This mapper maps the GSS name to the AD
attribute userPrincipalName which by default contains the implicit UPN unless it's
overwritten by the explicit (enterprise) UPN. In this case, the result will be empty. No
assumption is made about the root DN set in the given context, so you can narrow down your search
base if you like.| Modifier and Type | Class and Description |
|---|---|
protected static class |
UserPrincipalNameSearchMapper.UserPrincipalNameMappedValues |
UsernameSearchMapper.MappedValues| Constructor and Description |
|---|
UserPrincipalNameSearchMapper() |
| Modifier and Type | Method and Description |
|---|---|
UsernameSearchMapper.MappedValues |
map(DirContext context,
GSSName gssName)
Maps a GSS name to AD search parameters.
|
public UsernameSearchMapper.MappedValues map(DirContext context, GSSName gssName) throws NamingException
UsernameSearchMappercontext when an approriate GSS name is presented. The
implementor must be aware that the returned search base might need to be relativized to the
root DN of the context.map in interface UsernameSearchMappercontext - the search contextgssName - the GSS name to be mappedNamingException - if a context-related error has occuredCopyright © 2013–2020 Michael Osipov. All rights reserved.