[
https://issues.apache.org/jira/browse/QPIDJMS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17414175#comment-17414175
]
ASF GitHub Bot commented on QPIDJMS-548:
----------------------------------------
gemmellr commented on a change in pull request #43:
URL: https://github.com/apache/qpid-jms/pull/43#discussion_r706099787
##########
File path:
qpid-jms-client/src/main/java/org/apache/qpid/jms/jndi/JmsInitialContextFactory.java
##########
@@ -80,6 +80,14 @@ public Context getInitialContext(Hashtable<?, ?>
environment) throws NamingExcep
String expanded = expand(location, environmentCopy);
if (ProviderFactory.findProviderFactory(new URI(expanded)) !=
null) {
environmentCopy.put(CONNECTION_FACTORY_DEFAULT_KEY_PREFIX
+ REMOTE_URI_PROP, expanded);
+ String principle =
environmentCopy.containsKey(Context.SECURITY_PRINCIPAL) ? (String)
environment.get(Context.SECURITY_PRINCIPAL) :
System.getProperty(Context.SECURITY_PRINCIPAL);
Review comment:
Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS aren't
listed as being specifiable via system property the way the provider URL
explicitly is. I think that makes sense given their intended use (for naming
access) that it would likely be context-specific. So if we ever were to do this
I would remove that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> Support using principle and credentials from jndi context for default CF when
> using naming url
> ----------------------------------------------------------------------------------------------
>
> Key: QPIDJMS-548
> URL: https://issues.apache.org/jira/browse/QPIDJMS-548
> Project: Qpid JMS
> Issue Type: Improvement
> Components: qpid-jms-client
> Reporter: Michael Andre Pearce
> Priority: Major
> Fix For: 1.2.0
>
>
> Since QPIDJMS-542 it possible to provide the url on the context via
> java.naming.provider.url, as an extension / enhancement to this would be to
> support using the jndi context security principle and security context.
> e.g.
> java.naming.factory.initial=org.apache.qpid.jms.jndi.JmsInitialContextFactory
> java.naming.provider.url=failover:(amqps://host1:5672,amqps://host2:5672)
> java.naming.security.principal=myuser
> java.naming.security.credentials=mypassword
>
> Would set the user and password on the connection factory to "myuser" and
> "mypassword"
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]