Configuring LDAP with OFBiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Configuring LDAP with OFBiz

Naveen Kumar B V
 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.*
**
Regards,
Naveen Kumar B.V