Comment 9 for bug 389033

Revision history for this message
Ian Beardslee (ibeardslee) wrote :

There is another setup to the LDAP authentication that isn't using the option to use TLS.

In the Administration Dashboard there is an option to "Setup your LDAP Server". Checking this box takes you to a screen that seems to allow you to configure the LDAP connections.

Entering the details into that screen (View#195) I get an error..
=====
Integrity Error

The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set

[object with reference: company - company]
=====

In the logs, I get (after substituting internal information) ..
=====
[2011-11-22 20:05:09,437][?] ERROR:db.cursor:bad query: insert into "res_company_ldap" (id,"ldap_tls","sequence","ldap_password","ldap_base","ldap_binddn","ldap_server","create_user","ldap_server_port","user","ldap_filter",create_uid,create_date) values (4,E'False',10,NULL,E'ldapbase',NULL,E'127.0.0.1',E'True',389,NULL,E'ldapfilter',1,now())
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openerp/sql_db.py", line 215, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "company" violates not-null constraint
=====

Unless there is an option to choose a company and configure TLS this "Administration Dashboard" >> "Setup your LDAP Server setup should be removed.