LDAP Authentication for OpenERP
LDAP Authentication is pretty easy. It is a well written addons and it just work out of the box. Here is how,
Prerequisite:
-
Have python-ldap library installed.
-
In OpenERP, install addons auth_ldap
Note:
- For Windows, the easiest way to have python-ldap is via binary file, downloaded fromwww.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap
- For Linux, simply type in the command line,
> sudo apt-get install python-ldap
OpenERP 7 Setup for LDAP
Simple Python Script to test LDAP connection
Here is the pure python code, you can simply create a .py file and execute with python on command line.
import ldap try: conn = ldap.initialize("ldap://10.226.1.86:389") conn.simple_bind_s("cn=USER,ou=People,dc=idm,dc=ldap","PASSWORD") print 'Success' except ldap.LDAPError, e: print e