Merge Request

Includes
1)Fix for Issue WM-4825, in the case of Active Directory user principal is not wrapped with WMUserDetails object. Where as in the case of LDAP principal is wrapped. Need to further investigate why in the case of Active Directory this wrapping is not done.
2)Fix for Issue WM-4839(Postgres db security is failing)