4 Replies Latest reply on Jun 22, 2004 1:19 PM by sthomasg27

    LDAP JDBC driver and CMP

    zifra

      Hi,
      could anybody please tell me is there a way to have
      CMP feature with JBoss, when LDAP is used as persistent storage, if you have an appropriate JDBC driver like Novell's LDAP JDBC. Has anybody tried something
      similar? Or is this approach doom to fail? We are using
      OpenLDAP.
      Help would be appreciated.

        • 1. Re: LDAP JDBC driver and CMP
          dsundstrom

          Rumor is the Novell driver doesn't really work, but I have never tried it. LDAP will be supported as backing store in JBoss 4.0.

          • 2. Re: LDAP JDBC driver and CMP
            sthomasg27

            hmmm... that makes me wonder. Has anyone ever tried using a JDBC-LDAP bridge driver like open ldap's
            http://www.openldap.org/jdbcldap/

            with jboss for persistant storage (BMP or CMP) ???

            supposedly you can make SQL calls over this driver to an LDAP directory.

            • 3. LDAP - Mysql  synchronization
              madadi

              Dear all..

              I am new to j2ee and LDAP . in my project iam using jboss 3.2.1, mysql and directory service LDAP.

              iam able to write servlets and ejb to store data in mysql . now user can fill up registration form and that data is available in mysql.

              i want to store same data in LDAP .and user can search for other users...etc using LDAP.

              how could i do that ? is it possible to write servlet for LDAP. can jboss 3.2.1 supports this feature. i configured jboss insuch a way to use mysql . is any thing i have to do for using LDAP.

              Thanking you in advance.....

              regards
              madadi

              • 4. Re: LDAP JDBC driver and CMP
                sthomasg27

                Hi all,

                this discussion piqued my interest, so I started experimenting with the JDBC-LDAP bridge driver (available free under the "OpenLdap Licence") from
                OctetString.

                available here: http://www.octetstring.com/products/BridgeDriver.php

                be sure to check out the getting started documentation.
                http://www.octetstring.com/support/jdbcldapdriver/GettingStarted.php


                anyway, it works just like using Jdbc, except that the "SQL" statements are written in "DirectoryServerese", ....reaching across directory entities, rather than table relations. I would guess that a BMP bean would be something you could implement using this technique - but not sure exactly how the keys would work yet...

                looks promising! And BMP beans are really not that hard to implement anyway.

                anyone ever try this?