Issue 7579 - back-sql does not update DIT when DB is updated
Summary: back-sql does not update DIT when DB is updated
Status: VERIFIED SUSPENDED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: backends (show other issues)
Version: 2.4.35
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-29 12:33 UTC by mail@benjamin-behringer.de
Modified: 2020-06-25 23:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mail@benjamin-behringer.de 2013-04-29 12:33:29 UTC
Full_Name: Benjamin Behringer
Version: 2.4.35
OS: Ubuntu 12.04 64bit
URL: 
Submission from: (NULL) (2001:7c0:409:8eaa:cb:7a6a:91f0:f867)


Hi,

I'm using OpenLDAP and back-sql to make the information, stored in a MySQL
Database, available over LDAP (for Authentication purposes). Unfortunately, when
I insert or update an entry in the Database, the DIT is not updated. In
contrast, a delete on the ldap_entries table will cause slapd to reflect the DB
change in the DIT. The issue only occurs, when the DIT has already been loaded,
and the subtree you will make the change to has already been read at least once.
If you restart slapd, the changes are reflected.

Software Versions:

Distribution: Ubuntu 12.04 64bit
MySQL: 5.5.31-0ubuntu0.12.04.1
OpenLDAP: 2.4.35
libmyodbc: 5.2.4
unixodbc: 2.3.0-2ubuntu1

Here are

a sample configuration file:
http://pastebin.de/34104

odbc config files:
http://pastebin.de/34103

sample db script:
http://pastebin.de/34101

and insert script:
http://pastebin.de/34102

Is there a patch, workaround, anything?

Regards
Comment 1 ando@openldap.org 2013-04-29 13:07:11 UTC
On 04/29/2013 02:33 PM, mail@benjamin-behringer.de wrote:
> Full_Name: Benjamin Behringer
> Version: 2.4.35
> OS: Ubuntu 12.04 64bit
> URL:
> Submission from: (NULL) (2001:7c0:409:8eaa:cb:7a6a:91f0:f867)
>
>
> Hi,
>
> I'm using OpenLDAP and back-sql to make the information, stored in a MySQL
> Database, available over LDAP (for Authentication purposes). Unfortunately, when
> I insert or update an entry in the Database, the DIT is not updated. In
> contrast, a delete on the ldap_entries table will cause slapd to reflect the DB
> change in the DIT. The issue only occurs, when the DIT has already been loaded,
> and the subtree you will make the change to has already been read at least once.
> If you restart slapd, the changes are reflected.
>
> Software Versions:
>
> Distribution: Ubuntu 12.04 64bit
> MySQL: 5.5.31-0ubuntu0.12.04.1
> OpenLDAP: 2.4.35
> libmyodbc: 5.2.4
> unixodbc: 2.3.0-2ubuntu1
>
> Here are
>
> a sample configuration file:
> http://pastebin.de/34104
>
> odbc config files:
> http://pastebin.de/34103
>
> sample db script:
> http://pastebin.de/34101
>
> and insert script:
> http://pastebin.de/34102
>
> Is there a patch, workaround, anything?

There is no caching of the contents of ldap_entries in back-sql; maybe 
some caching at the odbc level?

p.

-- 
Pierangelo Masarati
Associate Professor
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano

Comment 2 OpenLDAP project 2017-04-13 20:20:14 UTC
someone needs to confirm this is not a bug in back-sql but an issue with odbc
Comment 3 Quanah Gibson-Mount 2017-04-13 20:20:14 UTC
changed notes
moved from Incoming to Software Bugs
Comment 4 Quanah Gibson-Mount 2020-06-25 23:28:03 UTC
patches welcome