SyntaxFix
Write A Post
Hire A Developer
Questions
You will have to provide the entire user dn in SECURITY_PRINCIPAL
dn
SECURITY_PRINCIPAL
like this
env.put(Context.SECURITY_PRINCIPAL, "cn=username,ou=testOu,o=test");