Issue 5448 - CONTRIB: Java slapd
Summary: CONTRIB: Java slapd
Status: VERIFIED WONTFIX
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: contrib (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 03:01 UTC by Howard Chu
Modified: 2020-03-18 22:11 UTC (History)
0 users

See Also:


Attachments
jslapd.java (545 bytes, text/x-java)
2009-01-26 03:14 UTC, Howard Chu
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Howard Chu 2008-04-01 03:01:26 UTC
Full_Name: Howard Chu
Version: 0.0.1
OS: 
URL: ftp://ftp.openldap.org/incoming/jslapd.tgz
Submission from: (NULL) (76.91.220.157)
Submitted by: hyc


Given the increasing popularity of Java, I decided it was time that the
OpenLDAP Project had its own Java implementation of an LDAP server. It
gave me a good opportunity to explore all of the benefits of rapid
development, introspection, and other advantages of the Java system.
Indeed, drawing on my experience with the existing OpenLDAP code base,
it took only a matter of hours to create my first working server, which
I present here. Of course it's still experimental in nature.

Invocation is similar to the regular C-based slapd, and it accepts all
of the same arguments and reads all of the same config settings. In
addition, the first commandline argument must be the name of the directory
where slapd resides, so that the java app can locate the config files,
schema, etc.

E.g. for a typical OpenLDAP installation in /usr/local you would run
        java jslapd /usr/local/libexec -h ldap://:389

A small shell script has been provided to simplify this invocation.

Comment 1 ando@openldap.org 2008-04-01 07:13:47 UTC
hyc@OpenLDAP.org wrote:

> Given the increasing popularity of Java, I decided it was time that the
> OpenLDAP Project had its own Java implementation of an LDAP server. It
> gave me a good opportunity to explore all of the benefits of rapid
> development, introspection, and other advantages of the Java system.
> Indeed, drawing on my experience with the existing OpenLDAP code base,
> it took only a matter of hours to create my first working server, which
> I present here. Of course it's still experimental in nature.
> 
> Invocation is similar to the regular C-based slapd, and it accepts all
> of the same arguments and reads all of the same config settings. In
> addition, the first commandline argument must be the name of the directory
> where slapd resides, so that the java app can locate the config files,
> schema, etc.
> 
> E.g. for a typical OpenLDAP installation in /usr/local you would run
>         java jslapd /usr/local/libexec -h ldap://:389
> 
> A small shell script has been provided to simplify this invocation.

Howard,

many thanks for the contribution.  I haven't stressed it yet 
intensively, but at a first glance it seems to be as performing as the 
latest 2.4.  Will this be released in 2.4, or do we need to wait until 
2.5 (what about making it 3.0?).

p.



Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
---------------------------------------
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it
---------------------------------------


Comment 2 Kurt Zeilenga 2008-04-01 17:21:13 UTC
On Mar 31, 2008, at 8:01 PM, hyc@OpenLDAP.org wrote:
> Full_Name: Howard Chu
> Version: 0.0.1
> OS:
> URL: ftp://ftp.openldap.org/incoming/jslapd.tgz
> Submission from: (NULL) (76.91.220.157)
> Submitted by: hyc
>
>
> Given the increasing popularity of Java, I decided it was time that  
> the
> OpenLDAP Project had its own Java implementation of an LDAP server. It
> gave me a good opportunity to explore all of the benefits of rapid
> development, introspection, and other advantages of the Java system.
> Indeed, drawing on my experience with the existing OpenLDAP code base,
> it took only a matter of hours to create my first working server,  
> which
> I present here. Of course it's still experimental in nature.
>
> Invocation is similar to the regular C-based slapd, and it accepts all
> of the same arguments and reads all of the same config settings. In
> addition, the first commandline argument must be the name of the  
> directory
> where slapd resides, so that the java app can locate the config files,
> schema, etc.
>
> E.g. for a typical OpenLDAP installation in /usr/local you would run
>        java jslapd /usr/local/libexec -h ldap://:389
>
> A small shell script has been provided to simplify this invocation.
>

In my initial testing, I found jslapd to have performance on par with  
slapd(8)!  And the memory footprint doesn't appear all that much larger.

Good work!  -- Kurt

Comment 3 Howard Chu 2008-04-05 08:00:01 UTC
moved from Incoming to Contrib
Comment 4 Kurt Zeilenga 2008-06-25 01:08:42 UTC
changed notes
Comment 5 Howard Chu 2009-01-26 03:14:22 UTC
hyc@OpenLDAP.org wrote:
> Full_Name: Howard Chu
> Version: 0.0.1
> OS:
> URL: ftp://ftp.openldap.org/incoming/jslapd.tgz
> Submission from: (NULL) (76.91.220.157)
> Submitted by: hyc

For completeness sake, here's the source code... ;)
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/
Comment 6 OpenLDAP project 2014-08-01 21:03:28 UTC
No source provided