Package de.terrestris.shoguncore.service
Class LdapService
- java.lang.Object
-
- de.terrestris.shoguncore.service.LdapService
-
@Service public class LdapService extends java.lang.Objectterrestris GmbH & Co. KGLdap service
-
-
Constructor Summary
Constructors Constructor Description LdapService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(java.lang.String username, java.lang.String password)Authenticate against ldap.java.util.List<java.lang.String>getGroups(java.lang.String username, java.lang.String property)Extract groups from ldap.voidsetLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)Set the ldap template property for ldap access.
-
-
-
Method Detail
-
setLdapTemplate
public void setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)
Set the ldap template property for ldap access.- Parameters:
ldapTemplate- the template to set
-
authenticate
public void authenticate(java.lang.String username, java.lang.String password)Authenticate against ldap.- Parameters:
username- the usernamepassword- the password
-
getGroups
public java.util.List<java.lang.String> getGroups(java.lang.String username, java.lang.String property)Extract groups from ldap.- Parameters:
username- username to search forproperty- the property to extract the groups from- Returns:
- a list of group names from ldap
-
-