Thanks for your answer Benjamin! I was able to set up a custom Authenticator which selects a Realm depending on a given name. However, using this Authenticator results in issues whenever using
SecurityUtils.GetSubject().checkRole("admin"); as seemingly all loaded Realms try to check the role. However, only the fitting Realm should be used. Is there any easy way to achieve this result? -- Sent from: http://shiro-user.582556.n2.nabble.com/