Hi Devs,
I'm unable to run the acme-ldap-1.0.jar test ldap server from:
https://docs.geoserver.org/latest/en/user/security/tutorials/ldap/index.html
It seems trivial to fix (see below), but the jar has only class files in it.
On Debian BookWorm,
$ java -version
openjdk version "11.0.14.1" 2022-02-08
OpenJDK Runtime Environment (build 11.0.14.1+1-post-Debian-1)
OpenJDK 64-Bit Server VM (build 11.0.14.1+1-post-Debian-1, mixed mode, sharing)
Where does the code live?
Regards and thanks for any pointers
Richard Duivenvoorde
$ java -jar acme-ldap-1.0.jar
[2022-52-20T10:52:42.042+0200] INFO [org.apache.directory.server.core.DefaultDirectoryService] - ApacheDS shutdown hook has been registered with the runtime.
[2022-52-20T10:52:42.042+0200] DEBUG [org.apache.directory.server.core.DefaultDirectoryService] - ---> Initializing the DefaultDirectoryService
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.directory.server.core.partition.ldif.LdifPartition.getOSFileName(LdifPartition.java:630)
at org.apache.directory.server.core.partition.ldif.LdifPartition.getFileName(LdifPartition.java:621)
at org.apache.directory.server.core.partition.ldif.LdifPartition.doInit(LdifPartition.java:187)
at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:65)
at org.apache.directory.server.core.schema.SchemaPartition.doInit(SchemaPartition.java:229)
at org.apache.directory.server.core.partition.AbstractPartition.initialize(AbstractPartition.java:65)
at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1426)
at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:907)
at org.acme.Ldap.initDirectoryService(Ldap.java:192)
at org.acme.Ldap.<init>(Ldap.java:272)
at org.acme.Ldap.main(Ldap.java:306)
Caused by: java.lang.NumberFormatException: multiple points
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
at java.base/jdk.internal.math.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.base/java.lang.Float.parseFloat(Float.java:455)
at org.apache.directory.shared.ldap.util.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1336)
at org.apache.directory.shared.ldap.util.SystemUtils.<clinit>(SystemUtils.java:944)
... 11 more
On 20-05-2022 11:01, Richard Duivenvoorde wrote:
Hi Devs,
I'm unable to run the acme-ldap-1.0.jar test ldap server from:
https://docs.geoserver.org/latest/en/user/security/tutorials/ldap/index.html
It seems trivial to fix (see below), but the jar has only class files in it.
On Debian BookWorm,
$ java -version
openjdk version "11.0.14.1" 2022-02-08
OpenJDK Runtime Environment (build 11.0.14.1+1-post-Debian-1)
OpenJDK 64-Bit Server VM (build 11.0.14.1+1-post-Debian-1, mixed mode, sharing)
Where does the code live?
DuckDuck suggests it lives (lived) at https://github.com/bhoefling-c2c/acme-ldap but that no longer exists
You may be able to contact Björn Höfling (https://github.com/bhoefling-c2c) or Camptocamp directly.
It seems to be a slightly customized version of Apache DS which lives at https://directory.apache.org/apacheds/
it probably has problems with the Java version, you could try running with java 7 or 8
Mark
(attachments)
Looks like there is a copy buried inside the GeoServer docs too:
https://github.com/geoserver/geoserver/tree/main/doc/en/user/source/security/tutorials/ldap/acme-ldap
Does not build for me though, there are issues in the pom file (I see recent activity related to the
Log4J upgrade).
Cheres
Andrea
(attachments)
···
Regards,
Andrea Aime
==
GeoServer Professional Services from the experts!
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions Group
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
https://www.geosolutionsgroup.com/
http://twitter.com/geosolutions_it
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail