Package de.terrestris.shoguncore.service
Class LdapService
- java.lang.Object
-
- de.terrestris.shoguncore.service.LdapService
-
@Service public class LdapService extends Object
terrestris GmbH & Co. KGLdap service
-
-
Constructor Summary
Constructors Constructor Description LdapService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(String username, String password)Authenticate against ldap.List<String>getGroups(String username, 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(String username, String password)
Authenticate against ldap.- Parameters:
username- the usernamepassword- the password
-
-