| 1 |
/* |
| 2 |
* Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 |
* contributor license agreements. See the NOTICE file distributed with |
| 4 |
* this work for additional information regarding copyright ownership. |
| 5 |
* The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 |
* (the "License"); you may not use this file except in compliance with |
| 7 |
* the License. You may obtain a copy of the License at |
| 8 |
* |
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
* |
| 11 |
* Unless required by applicable law or agreed to in writing, software |
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
* See the License for the specific language governing permissions and |
| 15 |
* limitations under the License. |
| 16 |
*/ |
| 17 |
PropertiesLogin { |
| 18 |
org.apache.activemq.jaas.PropertiesLoginModule required |
| 19 |
debug=true |
| 20 |
org.apache.activemq.jaas.properties.user="users.properties" |
| 21 |
org.apache.activemq.jaas.properties.group="groups.properties"; |
| 22 |
}; |
| 23 |
|
| 24 |
PropertiesLoginReload { |
| 25 |
org.apache.activemq.jaas.PropertiesLoginModule required |
| 26 |
debug=true |
| 27 |
reload=true |
| 28 |
baseDir="target/loginReloadTest/" |
| 29 |
org.apache.activemq.jaas.properties.user="users.properties" |
| 30 |
org.apache.activemq.jaas.properties.group="groups.properties"; |
| 31 |
}; |
| 32 |
|
| 33 |
EncryptedPropertiesLogin { |
| 34 |
org.apache.activemq.jaas.PropertiesLoginModule required |
| 35 |
debug=true |
| 36 |
org.apache.activemq.jaas.properties.user="users-encrypted.properties" |
| 37 |
org.apache.activemq.jaas.properties.group="groups.properties" |
| 38 |
decrypt=true; |
| 39 |
}; |
| 40 |
|
| 41 |
EncryptedAESPropertiesLogin { |
| 42 |
org.apache.activemq.jaas.PropertiesLoginModule required |
| 43 |
debug=true |
| 44 |
org.apache.activemq.jaas.properties.user="users-encrypted-aes.properties" |
| 45 |
org.apache.activemq.jaas.properties.group="groups.properties" |
| 46 |
algorithm=PBEWITHHMACSHA1ANDAES_128 |
| 47 |
decrypt=true; |
| 48 |
}; |
| 49 |
|
| 50 |
LDAPLogin { |
| 51 |
org.apache.activemq.jaas.LDAPLoginModule required |
| 52 |
debug=true |
| 53 |
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory |
| 54 |
connectionURL="ldap://localhost:1024" |
| 55 |
connectionUsername="uid=admin,ou=system" |
| 56 |
connectionPassword=secret |
| 57 |
connectionProtocol=s |
| 58 |
authentication=simple |
| 59 |
userBase="ou=system" |
| 60 |
userSearchMatching="(uid={0})" |
| 61 |
userSearchSubtree=false |
| 62 |
roleBase="ou=system" |
| 63 |
roleName=dummyRoleName |
| 64 |
roleSearchMatching="(uid={1})" |
| 65 |
roleSearchSubtree=false |
| 66 |
; |
| 67 |
}; |
| 68 |
|
| 69 |
EncryptedLDAPLogin { |
| 70 |
org.apache.activemq.jaas.EncryptableLDAPLoginModule required |
| 71 |
debug=true |
| 72 |
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory |
| 73 |
connectionURL="ldap://localhost:1024" |
| 74 |
connectionUsername="uid=admin,ou=system" |
| 75 |
connectionPassword="ENC(dZSxRJoRDuI58eYkWIuH4Q==)" |
| 76 |
connectionProtocol=s |
| 77 |
authentication=simple |
| 78 |
userBase="ou=system" |
| 79 |
userSearchMatching="(uid={0})" |
| 80 |
userSearchSubtree=false |
| 81 |
roleBase="ou=system" |
| 82 |
roleName=dummyRoleName |
| 83 |
roleSearchMatching="(uid={1})" |
| 84 |
roleSearchSubtree=false |
| 85 |
encryptionPassword="activemq" |
| 86 |
; |
| 87 |
}; |
| 88 |
|
| 89 |
EncryptedAESLDAPLogin { |
| 90 |
org.apache.activemq.jaas.EncryptableLDAPLoginModule required |
| 91 |
debug=true |
| 92 |
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory |
| 93 |
connectionURL="ldap://localhost:1024" |
| 94 |
connectionUsername="uid=admin,ou=system" |
| 95 |
connectionPassword="ENC(l3ZDKzR+ADzlmYr2Csd/CBXnFRd5Jk02JGKaraMHc7NRQp5amOxvHbuUCQNUQ0cE)" |
| 96 |
connectionProtocol=s |
| 97 |
authentication=simple |
| 98 |
userBase="ou=system" |
| 99 |
userSearchMatching="(uid={0})" |
| 100 |
userSearchSubtree=false |
| 101 |
roleBase="ou=system" |
| 102 |
roleName=dummyRoleName |
| 103 |
roleSearchMatching="(uid={1})" |
| 104 |
roleSearchSubtree=false |
| 105 |
encryptionAlgorithm=PBEWITHHMACSHA256ANDAES_256 |
| 106 |
encryptionPassword="activemq" |
| 107 |
; |
| 108 |
}; |
| 109 |
|
| 110 |
UnAuthenticatedLDAPLogin { |
| 111 |
org.apache.activemq.jaas.LDAPLoginModule required |
| 112 |
debug=true |
| 113 |
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory |
| 114 |
connectionURL="ldap://localhost:1024" |
| 115 |
connectionUsername="uid=admin,ou=system" |
| 116 |
connectionPassword="" |
| 117 |
connectionProtocol=s |
| 118 |
authentication=simple |
| 119 |
userBase="ou=system" |
| 120 |
userSearchMatching="(uid={0})" |
| 121 |
userSearchSubtree=false |
| 122 |
roleBase="ou=system" |
| 123 |
roleName=dummyRoleName |
| 124 |
roleSearchMatching="(uid={1})" |
| 125 |
roleSearchSubtree=false |
| 126 |
; |
| 127 |
}; |
| 128 |
|
| 129 |
AnonBindCheckUserLDAPLogin { |
| 130 |
org.apache.activemq.jaas.LDAPLoginModule required |
| 131 |
debug=true |
| 132 |
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory |
| 133 |
connectionURL="ldap://localhost:1024" |
| 134 |
connectionUsername=none |
| 135 |
connectionPassword=none |
| 136 |
connectionProtocol=s |
| 137 |
authentication=none |
| 138 |
userBase="ou=system" |
| 139 |
userSearchMatching="(uid={0})" |
| 140 |
userSearchSubtree=false |
| 141 |
roleBase="ou=system" |
| 142 |
roleName=cn |
| 143 |
roleSearchMatching="(member=uid={1},ou=system)" |
| 144 |
roleSearchSubtree=false |
| 145 |
; |
| 146 |
}; |
| 147 |
|
| 148 |
ExpandedLDAPLogin { |
| 149 |
org.apache.activemq.jaas.LDAPLoginModule required |
| 150 |
debug=true |
| 151 |
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory |
| 152 |
connectionURL="ldap://localhost:1024" |
| 153 |
connectionUsername="uid=admin,ou=system" |
| 154 |
connectionPassword=secret |
| 155 |
connectionProtocol=s |
| 156 |
authentication=simple |
| 157 |
userBase="ou=system" |
| 158 |
userSearchMatching="(uid={0})" |
| 159 |
userSearchSubtree=false |
| 160 |
roleBase="ou=system" |
| 161 |
roleName=cn |
| 162 |
roleSearchMatching="(uid={1})" |
| 163 |
roleSearchSubtree=false |
| 164 |
expandRoles=true |
| 165 |
expandRolesMatching="(member={0})" |
| 166 |
; |
| 167 |
}; |
| 168 |
|
| 169 |
GuestLogin { |
| 170 |
org.apache.activemq.jaas.GuestLoginModule required |
| 171 |
debug=true |
| 172 |
org.apache.activemq.jaas.guest.user="foo" |
| 173 |
org.apache.activemq.jaas.guest.group="bar"; |
| 174 |
|
| 175 |
}; |
| 176 |
|
| 177 |
GuestLoginWithDefaults { |
| 178 |
org.apache.activemq.jaas.GuestLoginModule required |
| 179 |
debug=true; |
| 180 |
}; |
| 181 |
|
| 182 |
OpenLdapConfiguration { |
| 183 |
org.apache.activemq.jaas.LDAPLoginModule required |
| 184 |
debug=true |
| 185 |
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory |
| 186 |
connectionURL="ldap://localhost:389" |
| 187 |
connectionUsername="cn=mqbroker,ou=Services,ou=system,dc=fusesource,dc=com" |
| 188 |
connectionPassword="sunflower" |
| 189 |
connectionProtocol="s" |
| 190 |
topicSearchMatchingFormat="cn={0},ou=Topic,ou=Destination,ou=ActiveMQ,ou=system,dc=fusesource,dc=com" |
| 191 |
topicSearchSubtreeBool=true |
| 192 |
authentication=simple |
| 193 |
userBase="ou=User,ou=ActiveMQ,ou=system,dc=fusesource,dc=com" |
| 194 |
userSearchMatching="(uid={0})" |
| 195 |
userSearchSubtree=false |
| 196 |
roleSearchMatching="(uid={1})" |
| 197 |
queueSearchMatchingFormat="cn={0},ou=Queue,ou=Destination,ou=ActiveMQ,ou=system,dc=fusesource,dc=com" |
| 198 |
queueSearchSubtreeBool=true |
| 199 |
roleBase="ou=Group,ou=ActiveMQ,ou=system,dc=fusesource,dc=com" |
| 200 |
roleName=cn |
| 201 |
roleSearchMatching="(member:=uid={1})" |
| 202 |
roleSearchSubtree=true |
| 203 |
; |
| 204 |
}; |