← Back to team overview

openerp-india team mailing list archive

[Bug 894227] Re: "Setup your LDAP Server" fails

 

** Changed in: openobject-addons
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/894227

Title:
  "Setup your LDAP Server" fails

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  There are two options for for setting up LDAP authentication (once the
  users_ldap module is installed).

  The first is through Administration >> Companies >> 'company name' >>
  Configuration  This works as intended.

  The other is through the Administration Dashboard using the "Setup
  your LDAP Server" option.   Checking the "Setup your LDAP Server" box
  takes you are  to a screen that seems to allow you to configure the
  LDAP connections.,  This fails because it doesn't take into account
  that the LDAP configuration is distinct per Company, with company
  being a required field.

  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
  =====

  The view also doesn't give the option to enable TLS authentication
  with the LDAP server.

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

  This is installed from openerp_6.1dev-20111122-020001-1_all.deb

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/894227/+subscriptions


References