RE: TomeEE official maven repo

2024-01-10 Thread COURTAULT Francois
THALES GROUP LIMITED DISTRIBUTION to email recipients 

Hello Paul,

No Tomee 9.1.2 is available at 
https://repo.maven.apache.org/maven2/org/apache/tomee/apache-tomee/
I have checked again using 2 different browsers!
Please go to the this above URL and tell me if you're able to get any 9.1.2 
release.

The latest available is 9.1.1.

Best Regards.

-Original Message-
From: Paul Spencer  
Sent: mercredi 10 janvier 2024 18:12
To: users@tomee.apache.org
Subject: Re: TomeEE official maven repo

The Tomee 9.1.2 distribution and jars exist in 
https://repo.maven.apache.org/maven2/org/apache/tomee/apache-tomee/
The Tomee 9.1.2 jar is located at 
https://repo.maven.apache.org/maven2/org/apache/tomee/apache-tomee/9.1.2/apache-tomee-9.1.2.jar
a

I can not answer the "official TomEE maven repos" question.

Paul Spencer

On 2024/01/08 12:53:17 COURTAULT Francois wrote:
> THALES GROUP LIMITED DISTRIBUTION to email recipients
> 
> Hello everyone,
> 
> Could someone confirm or not to me that the official TomEE maven repos is 
> https://repo.maven.apache.org/maven2/org/apache/tomee/apache-tomee/
> If the answer is no then what is the official TomEE maven repo ?
> If the answer is no then  9.1.2 entry is missing, right ?
> 
> Best Regards.
> 
> 
> 
> 


Re: TomeEE official maven repo

2024-01-10 Thread Paul Spencer
The Tomee 9.1.2 distribution and jars exist in 
https://repo.maven.apache.org/maven2/org/apache/tomee/apache-tomee/
The Tomee 9.1.2 jar is located at 
https://repo.maven.apache.org/maven2/org/apache/tomee/apache-tomee/9.1.2/apache-tomee-9.1.2.jar
a

I can not answer the "official TomEE maven repos" question.

Paul Spencer

On 2024/01/08 12:53:17 COURTAULT Francois wrote:
> THALES GROUP LIMITED DISTRIBUTION to email recipients
> 
> Hello everyone,
> 
> Could someone confirm or not to me that the official TomEE maven repos is 
> https://repo.maven.apache.org/maven2/org/apache/tomee/apache-tomee/
> If the answer is no then what is the official TomEE maven repo ?
> If the answer is no then  9.1.2 entry is missing, right ?
> 
> Best Regards.
> 
> 
> 
> 


Only the first LdapIdentityStoreDefinition appears to be working. Why?

2024-01-10 Thread Paul Spencer
I have defined two classes implementing @LdapIdentityStoreDefinition, but only 
the groups from the validating store is used. What am I missing?

Based on the configuration below and the Jakarta Tutorial, I expect the groups 
"USER" and "ROLE_1" for my authenticated user.  Only group "USER" is listed.

***
* Jakarta Tutorial
***
https://jakartaee.github.io/jakartaee-documentation/jakartaee-tutorial/9.1/security/security-api/security-api.html#_overview_of_the_identity_store_interfaces

There is a built-in IdentityStoreHandler that implements a standard algorithm 
defined by Jakarta Security. The Jakarta Security specification provides a full 
description of the algorithm, but it can be roughly summarized as follows:
• Iterate over the available validating IdentityStores, in priority 
order, until the provided Credential is validated or there are no more 
IdentityStores.
• If the Credential was validated, iterate over the available 
group-providing IdentityStores, in priority order, aggregating the groups 
returned by each store.
• Return the validated caller and group information.

***
* LDAP Configuation
***
ou=groups,dc=example,dc=com contains
 cn=USERS
uniqueMember= uid=myuser,ou=people,dc=example,dc=com

ou=roles,dc=example,dc=com contains
 cn=ROLE_1
uniqueMember= uid=myuser,ou=people,dc=example,dc=com

***
* 1st LdapIdentityStoreDefinition
***
@LdapIdentityStoreDefinition(url = "ldap://localhost:10389;, //
   bindDn = "uid=admin,ou=system", //
   bindDnPassword = "secret", //
   callerBaseDn = "ou=people, dc=example,dc=com", //
   callerNameAttribute = "uid", //
   groupSearchBase = "ou=groups,dc=example,dc=com", //
   groupMemberAttribute = "uniqueMember"
@ApplicationScoped
public class LdapIdentity {

}

***
* 1st LdapIdentityStoreDefinition
***
@LdapIdentityStoreDefinition(url = "ldap://localhost:10389;, //
   bindDn = "uid=admin,ou=system", //
   bindDnPassword = "secret", //
   groupSearchBase = "ou=roles,dc=example,dc=com", //
   groupMemberAttribute = "uniqueMember",
   useFor = (ValidationType.PROVIDE_GROUPS),
   priority = 100)
@ApplicationScoped
public class RolesIdentity {

}

Paul Spencer