Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread David Jencks

On 2002.08.26 22:44:02 -0400 Curt Johnson wrote:
> David Jencks wrote:
> 
> >I don't know where it is but someone mentioned that there is an sql/jdbc
> >way of accessing ldap. If this really exists, you can wrap that driver
> in
> >one of the jca-jdbc wrappers (probably the local tx one) and use it like
> >any other datasource with cmp.
> >
> Haven't ever heard of using SQL or JDBC to access an LDAP directory via 
> LDAP. Seems impractical since there is quite a bit of difference in 
> syntax. If you have any pointers let me know and I'll take a look. 
> Castor's DAX works as an SPI (Service Provider Interface) to their 
> DataBinding service. You can have an LDAP server backended by an RDBMS 
> acting as sort of a gateway, but this is considered sub-optimal and only 
> to be used for legacy databases.
> 

a couple of minutes searching the forums and googling turned up
http://developer.novell.com/ndk/ldapjdbc.htm

cmp is not magic.  jboss currently supports only cmp through jdbc.  You
could write your own ldap cmp PersistenceManager, if you have minimal
requirements it might not take forever.

david jencks

> >
> >If you do this I'd appreciate your contributing details of how,
> especially
> >the datasource configuration (ldap-service.xml or ldap-ds.xml for
> 3.2/4).
> >
> >If ldap does not support transactions you may need to be careful if you
> >write or update information that your writes always succeed;-)
> >
> You bring up a good point about transactions. I'll have to check on 
> that. I don't think I've ever heard of LDAP servers doing rollbacks, it 
> seems outside the scope of what most LDAP servers do. Of course it will 
> be in scope if I'm using it instead of an RDBMS.
> 
> Can't promise I'll find anything... I'm not really looking to have SQL 
> translated to LDAP to hit the server... It seems to kind of defeat the 
> purpose. Escpecially since CMP Entity Beans should be agnostic as far as 
> their datasource is concerned.
> 
> If you're looking for a way to have an LDAP server federated into the 
> JNDI tree, I believe the JBoss docs have that info. I'm quite sure I've 
> seen it in there.
> 
> Curt Johnson
> 
> >
> >david jencks
> >
> >On 2002.08.26 21:19:41 -0400 Curt Johnson wrote:
> >  
> >
> >>Holger Baxmann wrote:
> >>
> >>
> >>
> >>>AFAIK, matrix2 should provide valueable :) improvements for the
> >>>  
> >>>
> >>persistence
> >>
> >>
> >>>manager, including interceptors, detyped invokers on mbean level. so,
> >>>  
> >>>
> >>then
> >>
> >>
> >>>you may have serveral impl's for the persistance layer independend
> from
> >>>  
> >>>
> >>the
> >>
> >>
> >>>ejb container 8-). there should then ejbql working with hierarchical
> >>>  
> >>>
> >>data, a
> >>
> >>
> >>>parser for i.e. ldap dn syntax presumed.
> >>>
> >>>but, what is your objective? you want to have transactions, security
> ...
> >>>  
> >>>
> >>?
> >>
> >>
> >>I want to store app data in LDAP like users and such. In the same way 
> >>that you would use an RDBMS. For instance I can have my users conform
> to 
> >>the inetOrgPerson schema in LDAP then have a my entity beans do 
> >>operations to the LDAP server rather than the database. It's
> essentially 
> >>a way to have application potability in the data layer.
> >>
> >>For instance, one application I'm working on has a list of vendors for 
> >>our company, we also want a CRM application. LDAP is perfect for this
> so 
> >>I would like to have basic vendor information stored in the LDAP 
> >>directory where it can also be used for Address Books and CRM.
> >>
> >>
> >>
> >>>what is different from using the federated namespace in jndi for this
> >>>  
> >>>
> >>job ?
> >>
> >>
> >>Nothing really. In fact, that's what I would assume it would do. I
> could 
> >>write them as BMPs right now, but I figure as long as I'm looking for 
> >>ways to reduce the amount of code I have to write and maintain, like 
> >>using XDoclet, it would be nice if I could do CMP with an LDAP server 
> >>(or any JNDI provider) as the data store.
>

Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Dain Sundstrom

This is planed for the new JBossCMP architecture planed for JBoss 4.0.

-dain

Curt Johnson wrote:
> Hi guys, I was wondering if anyone had used LDAP for the backend for CMP 
> entity beans.
> Does the CMP engine in Jboss support this? I'm looking for something 
> like Castor's DAX but for CMP.
> 
> Is this a planned feature? Should I put in a feature request? Any 
> pointers to information would be greatly appreciated.
> 
> Curt Johnson



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Holger Baxmann

> If you're looking for a way to have an LDAP server federated into the
> JNDI tree, I believe the JBoss docs have that info. I'm quite sure I've
> seen it in there.

jboss-service.xml:



external/ldap/nds
nds.ldap
javax.naming.ldap.InitialLdapContext
true


nds.ldap:

java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
java.naming.provider.url=ldap://SONYBERT:636/dc=bitwind,dc=de
java.naming.security.principal=cn=Holger,ou=Technology,o=bitwind,c=DE,dc=bit
wind,dc=de
java.naming.security.authentication=simple
java.naming.security.credentials=manager

it runs over a ssl connection with mutual auth too.

bax
>
> Curt Johnson




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Holger Baxmann

> I don't know where it is but someone mentioned that there is an sql/jdbc
> way of accessing ldap. If this really exists, you can wrap that driver in
> one of the jca-jdbc wrappers (probably the local tx one) and use it like
> any other datasource with cmp.
>
yeap, there is one - in the novell ldap sdk. forget it ...
it has really rudimentary, you may call it functionality :)
they could not agree how they should treat the mapping between the dir
contexts and the database metadata databases, catalogs and schemas. they
stumbled and fall asleep.

1st rule: do not tweak ldap to relational use. so it is not recommendable to
try mapping the user/passwd/roles tables into ldap. instead use the source -
in this case the ldap source :)
inetOrgPerson schema object is a good starting point.
but if one dive deeper there are serveral incompatibilities which let you
alone in a complex porting world with a least the lowest common denominator
of functionalities - same procedure as last year, miss sophie. a good
example is the implementation of x509 certs in the ldap tree and the
proprietary extensions/modifications. openldap, novell edirectory and the
planet server from 'who will not be named', which is the netscape ldap.

a good example for this is how to get the metadata of the ldap, sometimes it
goes  ldap://my.ldap.host.jboss.org/cn=Schema, sometimes.

if we get the possibility to abstract from the varieties of the serveral
relational databases, we should use this mechs for other then table based
data [ldap, xml, xsd, mof ]

very interesting is the ability of ldap to store java classes _and_ objects,
JNDIReferences serialzied and marshalled objects by default - if the vendor
has the java schema loaded.

> If you do this I'd appreciate your contributing details of how, especially
> the datasource configuration (ldap-service.xml or ldap-ds.xml for 3.2/4).
>
i am always too late  just in the CA/RA/signing darkness to make it
usable

> If ldap does not support transactions you may need to be careful if you
> write or update information that your writes always succeed;-)
>
ldap is per se transactional, because all orperations are atomic =|-)
one should generally avoid read/write [update] operations - this is not the
world oof ldap: it is a more write once memory. a delete/create strategy
would be appreciated regarding the performance [whatever this is].

bax

> david jencks
>
> On 2002.08.26 21:19:41 -0400 Curt Johnson wrote:
> > Holger Baxmann wrote:
> >
> > >AFAIK, matrix2 should provide valueable :) improvements for the
> > persistence
> > >manager, including interceptors, detyped invokers on mbean level. so,
> > then
> > >you may have serveral impl's for the persistance layer independend from
> > the
> > >ejb container 8-). there should then ejbql working with hierarchical
> > data, a
> > >parser for i.e. ldap dn syntax presumed.
> > >
> > >but, what is your objective? you want to have transactions, security
...
> > ?
> > >
> > I want to store app data in LDAP like users and such. In the same way
> > that you would use an RDBMS. For instance I can have my users conform to
> > the inetOrgPerson schema in LDAP then have a my entity beans do
> > operations to the LDAP server rather than the database. It's essentially
> > a way to have application potability in the data layer.
> >
> > For instance, one application I'm working on has a list of vendors for
> > our company, we also want a CRM application. LDAP is perfect for this so
> > I would like to have basic vendor information stored in the LDAP
> > directory where it can also be used for Address Books and CRM.
> >
> > >
> > >what is different from using the federated namespace in jndi for this
> > job ?
> > >
> > Nothing really. In fact, that's what I would assume it would do. I could
> > write them as BMPs right now, but I figure as long as I'm looking for
> > ways to reduce the amount of code I have to write and maintain, like
> > using XDoclet, it would be nice if I could do CMP with an LDAP server
> > (or any JNDI provider) as the data store.
> >
> > BTW, it would be nice if there was a roadmap with feature lists like
> > this somewhere on the JBoss website... I pick up on some stuff from the
> > developers list but it would be cool to have an idea of what features
> > are coming down the pipe. This project never ceases to amaze me.
> >
> > Curt
> >
> > >
> > >thanks
> > >bax
> > >
> > >but, whats your
> > >- Original Message -
> > >From: "Curt Johnson" <[EMAIL PROTECTED]>
> > >To: &l

Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Curt Johnson

David Jencks wrote:

>I don't know where it is but someone mentioned that there is an sql/jdbc
>way of accessing ldap. If this really exists, you can wrap that driver in
>one of the jca-jdbc wrappers (probably the local tx one) and use it like
>any other datasource with cmp.
>
Haven't ever heard of using SQL or JDBC to access an LDAP directory via 
LDAP. Seems impractical since there is quite a bit of difference in 
syntax. If you have any pointers let me know and I'll take a look. 
Castor's DAX works as an SPI (Service Provider Interface) to their 
DataBinding service. You can have an LDAP server backended by an RDBMS 
acting as sort of a gateway, but this is considered sub-optimal and only 
to be used for legacy databases.

>
>If you do this I'd appreciate your contributing details of how, especially
>the datasource configuration (ldap-service.xml or ldap-ds.xml for 3.2/4).
>
>If ldap does not support transactions you may need to be careful if you
>write or update information that your writes always succeed;-)
>
You bring up a good point about transactions. I'll have to check on 
that. I don't think I've ever heard of LDAP servers doing rollbacks, it 
seems outside the scope of what most LDAP servers do. Of course it will 
be in scope if I'm using it instead of an RDBMS.

Can't promise I'll find anything... I'm not really looking to have SQL 
translated to LDAP to hit the server... It seems to kind of defeat the 
purpose. Escpecially since CMP Entity Beans should be agnostic as far as 
their datasource is concerned.

If you're looking for a way to have an LDAP server federated into the 
JNDI tree, I believe the JBoss docs have that info. I'm quite sure I've 
seen it in there.

Curt Johnson

>
>david jencks
>
>On 2002.08.26 21:19:41 -0400 Curt Johnson wrote:
>  
>
>>Holger Baxmann wrote:
>>
>>
>>
>>>AFAIK, matrix2 should provide valueable :) improvements for the
>>>  
>>>
>>persistence
>>
>>
>>>manager, including interceptors, detyped invokers on mbean level. so,
>>>  
>>>
>>then
>>
>>
>>>you may have serveral impl's for the persistance layer independend from
>>>  
>>>
>>the
>>
>>
>>>ejb container 8-). there should then ejbql working with hierarchical
>>>  
>>>
>>data, a
>>
>>
>>>parser for i.e. ldap dn syntax presumed.
>>>
>>>but, what is your objective? you want to have transactions, security ...
>>>  
>>>
>>?
>>
>>
>>I want to store app data in LDAP like users and such. In the same way 
>>that you would use an RDBMS. For instance I can have my users conform to 
>>the inetOrgPerson schema in LDAP then have a my entity beans do 
>>operations to the LDAP server rather than the database. It's essentially 
>>a way to have application potability in the data layer.
>>
>>For instance, one application I'm working on has a list of vendors for 
>>our company, we also want a CRM application. LDAP is perfect for this so 
>>I would like to have basic vendor information stored in the LDAP 
>>directory where it can also be used for Address Books and CRM.
>>
>>
>>
>>>what is different from using the federated namespace in jndi for this
>>>  
>>>
>>job ?
>>
>>
>>Nothing really. In fact, that's what I would assume it would do. I could 
>>write them as BMPs right now, but I figure as long as I'm looking for 
>>ways to reduce the amount of code I have to write and maintain, like 
>>using XDoclet, it would be nice if I could do CMP with an LDAP server 
>>(or any JNDI provider) as the data store.
>>
>>BTW, it would be nice if there was a roadmap with feature lists like 
>>this somewhere on the JBoss website... I pick up on some stuff from the 
>>developers list but it would be cool to have an idea of what features 
>>are coming down the pipe. This project never ceases to amaze me.
>>
>>Curt
>>
>>
>>
>>>thanks
>>>bax
>>>
>>>but, whats your
>>>- Original Message -
>>>From: "Curt Johnson" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Monday, August 26, 2002 11:50 PM
>>>Subject: [JBoss-user] LDAP as CMP backend?
>>>
>>>
>>> 
>>>
>>>  
>>>
>>>>Hi guys, I was wondering if anyone had used LDAP for the backend for
>>>>
>>>>
&

Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread David Jencks

I don't know where it is but someone mentioned that there is an sql/jdbc
way of accessing ldap. If this really exists, you can wrap that driver in
one of the jca-jdbc wrappers (probably the local tx one) and use it like
any other datasource with cmp.

If you do this I'd appreciate your contributing details of how, especially
the datasource configuration (ldap-service.xml or ldap-ds.xml for 3.2/4).

If ldap does not support transactions you may need to be careful if you
write or update information that your writes always succeed;-)

david jencks

On 2002.08.26 21:19:41 -0400 Curt Johnson wrote:
> Holger Baxmann wrote:
> 
> >AFAIK, matrix2 should provide valueable :) improvements for the
> persistence
> >manager, including interceptors, detyped invokers on mbean level. so,
> then
> >you may have serveral impl's for the persistance layer independend from
> the
> >ejb container 8-). there should then ejbql working with hierarchical
> data, a
> >parser for i.e. ldap dn syntax presumed.
> >
> >but, what is your objective? you want to have transactions, security ...
> ?
> >
> I want to store app data in LDAP like users and such. In the same way 
> that you would use an RDBMS. For instance I can have my users conform to 
> the inetOrgPerson schema in LDAP then have a my entity beans do 
> operations to the LDAP server rather than the database. It's essentially 
> a way to have application potability in the data layer.
> 
> For instance, one application I'm working on has a list of vendors for 
> our company, we also want a CRM application. LDAP is perfect for this so 
> I would like to have basic vendor information stored in the LDAP 
> directory where it can also be used for Address Books and CRM.
> 
> >
> >what is different from using the federated namespace in jndi for this
> job ?
> >
> Nothing really. In fact, that's what I would assume it would do. I could 
> write them as BMPs right now, but I figure as long as I'm looking for 
> ways to reduce the amount of code I have to write and maintain, like 
> using XDoclet, it would be nice if I could do CMP with an LDAP server 
> (or any JNDI provider) as the data store.
> 
> BTW, it would be nice if there was a roadmap with feature lists like 
> this somewhere on the JBoss website... I pick up on some stuff from the 
> developers list but it would be cool to have an idea of what features 
> are coming down the pipe. This project never ceases to amaze me.
> 
> Curt
> 
> >
> >thanks
> >bax
> >
> >but, whats your
> >- Original Message -
> >From: "Curt Johnson" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, August 26, 2002 11:50 PM
> >Subject: [JBoss-user] LDAP as CMP backend?
> >
> >
> >  
> >
> >>Hi guys, I was wondering if anyone had used LDAP for the backend for
> CMP
> >>entity beans.
> >>Does the CMP engine in Jboss support this? I'm looking for something
> >>like Castor's DAX but for CMP.
> >>
> >>Is this a planned feature? Should I put in a feature request? Any
> >>pointers to information would be greatly appreciated.
> >>
> >>Curt Johnson
> >>
> >>
> >>
> >>---
> >>This sf.net email is sponsored by: OSDN - Tired of that same old
> >>cell phone?  Get a new here for FREE!
> >>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
> >
> >
> >
> >---
> >This sf.net email is sponsored by: OSDN - Tired of that same old
> >cell phone?  Get a new here for FREE!
> >https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >  
> >
> 
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Curt Johnson

Holger Baxmann wrote:

>AFAIK, matrix2 should provide valueable :) improvements for the persistence
>manager, including interceptors, detyped invokers on mbean level. so, then
>you may have serveral impl's for the persistance layer independend from the
>ejb container 8-). there should then ejbql working with hierarchical data, a
>parser for i.e. ldap dn syntax presumed.
>
>but, what is your objective? you want to have transactions, security ... ?
>
I want to store app data in LDAP like users and such. In the same way 
that you would use an RDBMS. For instance I can have my users conform to 
the inetOrgPerson schema in LDAP then have a my entity beans do 
operations to the LDAP server rather than the database. It's essentially 
a way to have application potability in the data layer.

For instance, one application I'm working on has a list of vendors for 
our company, we also want a CRM application. LDAP is perfect for this so 
I would like to have basic vendor information stored in the LDAP 
directory where it can also be used for Address Books and CRM.

>
>what is different from using the federated namespace in jndi for this job ?
>
Nothing really. In fact, that's what I would assume it would do. I could 
write them as BMPs right now, but I figure as long as I'm looking for 
ways to reduce the amount of code I have to write and maintain, like 
using XDoclet, it would be nice if I could do CMP with an LDAP server 
(or any JNDI provider) as the data store.

BTW, it would be nice if there was a roadmap with feature lists like 
this somewhere on the JBoss website... I pick up on some stuff from the 
developers list but it would be cool to have an idea of what features 
are coming down the pipe. This project never ceases to amaze me.

Curt

>
>thanks
>bax
>
>but, whats your
>- Original Message -
>From: "Curt Johnson" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, August 26, 2002 11:50 PM
>Subject: [JBoss-user] LDAP as CMP backend?
>
>
>  
>
>>Hi guys, I was wondering if anyone had used LDAP for the backend for CMP
>>entity beans.
>>Does the CMP engine in Jboss support this? I'm looking for something
>>like Castor's DAX but for CMP.
>>
>>Is this a planned feature? Should I put in a feature request? Any
>>pointers to information would be greatly appreciated.
>>
>>Curt Johnson
>>
>>
>>
>>---
>>This sf.net email is sponsored by: OSDN - Tired of that same old
>>cell phone?  Get a new here for FREE!
>>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Holger Baxmann

AFAIK, matrix2 should provide valueable :) improvements for the persistence
manager, including interceptors, detyped invokers on mbean level. so, then
you may have serveral impl's for the persistance layer independend from the
ejb container 8-). there should then ejbql working with hierarchical data, a
parser for i.e. ldap dn syntax presumed.

but, what is your objective? you want to have transactions, security ... ?

what is different from using the federated namespace in jndi for this job ?

thanks
bax

but, whats your
- Original Message -
From: "Curt Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 11:50 PM
Subject: [JBoss-user] LDAP as CMP backend?


> Hi guys, I was wondering if anyone had used LDAP for the backend for CMP
> entity beans.
> Does the CMP engine in Jboss support this? I'm looking for something
> like Castor's DAX but for CMP.
>
> Is this a planned feature? Should I put in a feature request? Any
> pointers to information would be greatly appreciated.
>
> Curt Johnson
>
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] LDAP as CMP backend?

2002-08-26 Thread Curt Johnson

Hi guys, I was wondering if anyone had used LDAP for the backend for CMP 
entity beans.
Does the CMP engine in Jboss support this? I'm looking for something 
like Castor's DAX but for CMP.

Is this a planned feature? Should I put in a feature request? Any 
pointers to information would be greatly appreciated.

Curt Johnson



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user