This question has been flagged
3 Replies
26118 Views

I can't find any documentation on the Internet explaining how to Setup OpenERP v7.0 to use LDAP as an user database.

It seems like there is an auth_ldap module in the addons directory, but I can't find anything to configure this.

Best Regards

Avatar
Discard

I did the above, but how can i check the Connection between OPENERP and LDAP server is success or not.

Best Answer

Once installed, the ldap module will add a new table inside the "company" records. You'll be able to access through:

Settings > Companies

You select your company and then go on the configuration tab. You'll then enter your connection info.

Step by step screenshot to be given when enough karma :s

Avatar
Discard

is there anywhere else a step by step configuration guide available?

Best Answer

Check out the link below

http://openerpmanagementsystem.blogspot.jp/2012/02/configuring-ldap-authentication-with.html

Avatar
Discard

The ldap authentication works great for a user that already exixts in openerp, but if it has to create a new user from ldap or active directory you get an error message. File "/opt/openerp/server/openerp/addons/auth_ldap/users_ldap.py", line 255, in login cr, SUPERUSER_ID, conf, login, entry) File "/opt/openerp/server/openerp/addons/auth_ldap/users_ldap.py", line 195, in get_or_create_user default={'active': True}) TypeError: copy() got an unexpected keyword argument 'default'

Face the same error ...

Best Answer

I downloaded the openLDAP virtualbox version from turnkeylinux.org, import it into virtualbox.

after that add a new group names people, so that i got ou=people, and add an user under ou=people.

then i follow the setting from this link http://www.zbeanztech.com/blog/can-joomla-users-login-openerp-using-ldap

below are some setting i copy from that link:

OpenERP-LDAP

 6.Install python package,otherwise users_ldap module in openerp will not function
            sudo apt-get install python-ldap

 7.Install users_ldap module in the openerp which comes by default with openerp-server addons

 8.Configuration at the openerp side,
       "Administration-->Companies-->Companies",Your company profile and enter following details in ldap parametres
          LDAP Server Address : your machine IP (127.0.0.1 <-if ldap running on the same server)
          LDAP Server Port   : 389
         LDAP Bind Dn   :   cn=admin,dc=example,dc=com (if you had changed dc component then enter the same here and for followings)
         LDAP password  :   Your admin ldap password
         LDAP Base      :   ou=people,dc=example,dc=com        <-- change 'dc' here
         LDAP filter    :  (uid=%s)
         create user    : checked
         Model User     : demo user
         sequence      :  10

then you can login if your ldap user is exist in openERP, but got ERROR if the new user your create in openLDAP but not in openERP, hope some one can solve this problem.

Thank you.

best regards

Avatar
Discard

I found the problem and solved this ... in addons/auth_ldap/users_ldap.py, line 225, the ldap_server default they hardcode it to 127.0.0.1, but my ldap server is in another server, so I change this default to my ldap server's IP, then I can get the new user information from ldap server, this solved the default() error. so some one have to modify this programming method so that it will get the ldap server IP from users setting if the setting is existed. but another thing is if I create a new user in openERP, it will not update to ldap server ???

Thank you! I was stuck wondering what should I enter in the filter field.

I am getting " LDAP bind failed " error. My values are --> ldapbindin --> cn=admin,dc=mail.kgtest,dc=com, ldap base --> ou=admin,dc=mail.kgtest,dc=com . I don't know the cn,dc,dc values. Kindly help me what value need to give instead of the above value.