If it is something that is going into the project, then it would be best if the data sharing was bidirectional - so that changes in LDAP are be copied to OFBiz.

-Adrian

On 12/2/2010 7:16 AM, Naveen Kumar B V wrote:
Thank you guys for your support,
    So is it final that, we should write a Custom Groovy Script to save
details in LDAP also, while
the details are being saved in OFBiz during registration process.
And no such functionality is already implemented??

Please comment on this..

Regards,
Naveen Kumar B.V

On Mon, Nov 29, 2010 at 1:29 PM, Jacques Le Roux<
[email protected]>  wrote:

Then I'd prefer to use Groovy than BSH and please, as already requested by
Adrian, use users ML than dev ML for such dicussions

Thanks

Jacques

From: "Abhishake Agarwal"<[email protected]>

Hi,

I would have prefer to call the service from minilang through bsh script
which can be embedded in minilang.

You cab refer:
http://www.opensourcestrategies.com/ofbiz/ofbiz_minilang_cookbook.txt

Regards,
Abhishake


On Sun, Nov 28, 2010 at 2:07 PM, Naveen Kumar B V<
[email protected]>  wrote:

Hi Abhishek,
   Yes true, modifying both the files you mentioned will ensure that the
details will be saved from both store-front and
backoffice. But, how is the actual implementation logic written. I
suppose
it cannot be done only with OFBiz Mini-Lang in the xml files.
Should a separate service be written for example in Java (using JLDAP).
   Can you throw some light on the implementation and some sample code.
Thank you once again for your time. Your inputs are really taking me
forward.

Regards,
Naveen Kumar B.V




On Sun, Nov 28, 2010 at 12:16 PM, Abhishake Agarwal<
[email protected]>  wrote:

Hi,

Also if you want party userlogin created from ofbiz backoffice should
be
stored in ldap, you should also modify  ofbiz/applications/party/
script/org/ofbiz/party/customer/CustomerEvents.xml

Regards,
Abhishake

On Sun, Nov 28, 2010 at 11:40 AM, Abhishake Agarwal<
  [email protected]>  wrote:

Hi,

I think you have to use :






ofbiz/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml

Regards,
Abhishake


On Sun, Nov 28, 2010 at 1:22 AM, Naveen Kumar B V<
[email protected]>  wrote:

Hi Abhishek,

      Thanks for your reply, that gives me some hope that while user
registration,  details can be stored
in LDAP also.
When i tried to figure out how to do this,  i found
CustomerEvents.xml
file
in 3 locations as below:

*




  ofbiz/applications/order/script/org/ofbiz/order/customer/CustomerEvents.xml
*
*




  ofbiz/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml
*
*




  
ofbiz/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
*
*
*
Can you help me in identifying which is the file to be modified so
that
user
details can be stored in LDAP,
also how do we actually specify other details related to LDAP like
Distinguished Name(DN), Organizational Unit(OU), username, password,
LDAP
location,  etc

Some sample code.. to do this.. would really be helping me..

Thanks&  Regards,
Naveen Kumar B.V



On Sun, Nov 28, 2010 at 12:36 AM, Abhishake Agarwal<
[email protected]>  wrote:

Hi,

You have to modify createCustomer events in CustomerEvents.xml to
store
user
details in LDAP when user gets registered.

Regards,
Abhishake

On Sat, Nov 27, 2010 at 11:26 PM, Naveen Bahatam<
[email protected]>  wrote:

Hi Adrian,

    Thanks for your reply. If at all the users data is to be
stored
in
LDAP,
when the user is getting registered, or for password
updations, can you tell me how can it be done.??. Is it possible
with
the
current implementation in OFBiz, or should we write a service to
perform
such an operation.
And yes, i will make sure to post these questions on user
mailing
list.
Thank you once again.


Regards,
Naveen Kumar B.V




On 26 November 2010 21:20, Adrian Crum<[email protected]>
wrote:

The current LDAP integration is used for authentication only.
User
data
is
not stored in LDAP.

By the way, this type of question should be posted on the user
mailing
list.

-Adrian

--- On Fri, 11/26/10, Naveen Bahatam<
[email protected]

wrote:

From: Naveen Bahatam<[email protected]>
Subject: Configuring LDAP with OFBiz
To: [email protected]
Date: Friday, November 26, 2010, 2:27 AM
  >  Hi,

     I have understood configuring LDAP with OFBiz
by editing two properties
file as below:

*jndiLdap.properties file:*
*
*
# OFBiz LDAP Authentication Settings
####

# JNDI LDAP settings. Change the following line to
# point to your LDAP server.
java.naming.provider.url=ldap://localhost:389
java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
java.naming.security.authentication=simple
com.sun.jndi.ldap.connect.timeout=5000

# Distinguished Name template. This is used as a default
if
# UserLogin.userLdapDn is empty.
# The %u placeholder will be replaced by the user's login
name,
# then the resulting string will be used to authenticate
the user.
ldap.dn.template=cn=%u,dc=example,dc=com

# The following property controls whether the user's OFBiz
password
# is synchronized with the user's LDAP password.
ldap.synchronize.passwords=true


*security.properties file:*
# -- Use LDAP for user authentication? --
security.ldap.enable=true

# -- Fail login if LDAP authentication fails? --
security.ldap.fail.login=true

*
*
*
    Can anyone help me how to synchronize the
details in LDAP
and OFbiz database.*
*
*
*Doubt:*
*    When a new customer/user is registered in a
store, all the details are
saved in local OFBiz database. How do i ensure that the
user details also*
*get updated in LDAP accordingly.. How to maintain
consistency of user
information in DB and LDAP.*
*
*
















Reply via email to