[jboss-jira] [JBoss JIRA] Updated: (JBASM-23) multiple servers with different credentials
Shelly McGowan (JIRA)
jira-events at lists.jboss.org
Mon Jan 5 12:52:54 EST 2009
[ https://jira.jboss.org/jira/browse/JBASM-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shelly McGowan updated JBASM-23:
--------------------------------
I have the following changes in getNamingContext() method in Server.java ready to commit:
if (username!=null)
{
+ SimplePrincipal principal = new SimplePrincipal(username);
+ properties.setProperty(Context.SECURITY_PRINCIPAL, principal.getName());
+ properties.setProperty(Context.SECURITY_CREDENTIALS, password);
+
+ SecurityAssociation.setPrincipal(principal);
SecurityAssociation.setCredential(password);
> multiple servers with different credentials
> -------------------------------------------
>
> Key: JBASM-23
> URL: https://jira.jboss.org/jira/browse/JBASM-23
> Project: JBoss AS Server Manager
> Issue Type: Task
> Affects Versions: 1.0.0.GA
> Reporter: Aleksandar Kostadinov
> Assignee: Aleksandar Kostadinov
> Priority: Minor
>
> Currently server manager sets credentials like
> SecurityAssociation.setPrincipal(new SimplePrincipal(username));
> SecurityAssociation.setCredential(password);
> I think that in this case every managed server should use the same credentials. Probably using the JndiLoginInitialContextFactory can fix that but not for the http invoker.
> Alternative way with JAAS needed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list