Initial port from thekey-cas-server-core,common to idm-user-management
Also porting from spring ldap to ldaptive.