@Service public class LdapUserService extends Object
LdapClient
Constructor and Description |
---|
LdapUserService(LdapClient ldapClient,
MetricsUtilService metricService) |
Modifier and Type | Method and Description |
---|---|
OneOpsUser |
authenticate(String userName,
char[] password,
String domain)
Authenticates the username and password using the LDAP/AD service.
|
public LdapUserService(LdapClient ldapClient, MetricsUtilService metricService)
@Nullable public OneOpsUser authenticate(String userName, char[] password, String domain) throws org.ldaptive.LdapException
userName
- ldap usernamepassword
- ldap passworddomain
- mgmt domain.OneOpsUser
details object if successfully authenticated, else returns
null
.org.ldaptive.LdapException
- throws if any error authenticating/connecting to ldap server.Copyright © 2018 Walmart, Inc.. All rights reserved.