Thoughts Electrique

Posts Tagged ‘OU’

How to log in a user of a specified OpenCms OU

Monday, October 12th, 2009

I recently had to login a user of a specified OU (Organizational Unit) through a JSP. This is done by simply prepending the username with the path to the OU.

Example: I want to login the user “foo” of the OU “/germany/marketing“. Simple specify the String “/germany/marketing/foo” as a username and you’re all set.