Spring security get current user. Configuration; LDAP; Migrating to 6.