At 09:19 AM 11/7/2006, mmollet(a)westar.com wrote:
>Full_Name: Matthieu Mollet
>Version: 2.2.13
>OS: Centos 4
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (208.45.242.10)
>
>
>Built the smbk5pwd.la overlay and installed it with the 2.2.13 openldap that
>comes with Centos. Added module = pathto/smbk5pwd.la and overlay = smbk5pwd
>slapd fails with "overlay smbk5pwd not found"
While there is no indication that this behavior is due to a bug
in OpenLDAP Software and 2.2 is Historic, there seems this
report should be closed. If you believe this behavior
due to a bug in OpenLDAP Software, I suggest you duplicate
it in the latest 2.3 release and then file a new bug report
that elaborates on why you believe the behavior is due to a
bug in OpenLDAP Software.
Full_Name: Matthieu Mollet
Version: 2.2.13
OS: Centos 4
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (208.45.242.10)
Built the smbk5pwd.la overlay and installed it with the 2.2.13 openldap that
comes with Centos. Added module = pathto/smbk5pwd.la and overlay = smbk5pwd
slapd fails with "overlay smbk5pwd not found"
--On Tuesday, November 07, 2006 12:35 AM +0000 quanah(a)stanford.edu wrote:
> I've finally figured out how to reproduce this -- The problem is related
> to the log purging done by access log. Here is what I did:
After applying the commit to HEAD to my source, behavior after log purge
was correct.
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
I've finally figured out how to reproduce this -- The problem is related to
the log purging done by access log. Here is what I did:
Make changes to the database, that were replicated. Everything is happy.
Shut down slapd, modify the logpurge parameter so that log purging is done.
Restart slapd
Verified that log purging was done, and that everything was still happily
in sync.
Stop slapd, restart slapd
Now the access log DB has generated a new CSN that is in the future of the
suffix stored CSN.
So it appears that somehow the logpurge operation either causes a new
contextCSN to be written at the time the server is shut down, or it erases
the contextCSN held by the accesslog db.
Now, this is when I restarted slapd:
Nov 6 16:27:14 ldap-dev0 slapd[27400]: @(#) $OpenLDAP: slapd 2.3.28 (Oct
26 2006 13:41:27) $
^Iquanah@ldap-uat00.stanford.edu:/usr/local/build/openldap-2.3.28/servers/slapd
However, the contextCSN that was generated is:
contextCSN: 20061107002625Z#000000#00#000000
This matches the time at which I started slapd when log purging was run:
Nov 6 16:26:25 ldap-dev0 slapd[27385]: @(#) $OpenLDAP: slapd 2.3.28 (Oct
26 2006 13:41:27) $
^Iquanah@ldap-uat00.stanford.edu:/usr/local/build/openldap-2.3.28/servers/slapd
so I'd say that when log purge is run, it resets the contextCSN in the
accesslog DB to the time at which slapd last started...
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
Christopher Moore wrote:
>> This trace indicates that an attribute in the given entry had NULL for
>> its AttributeDescription, which is pretty much a "this-can't-happen"
>> situation. It would probably be useful to look at the contents of the
>> Entry e in frame 2, and all of its attributes. How was this database
>> created, how was the entry created?
>>
>
> I forgot to mention that I have just upgraded from Openldap 2.2.23 and the
> database was created by open-xchange.
> Here is entry e in frame 2. I hope this is what you are after:
> (gdb) frame 2
> #2 0x0807e491 in test_filter (op=0x8265c88, e=0x8266140, f=0x40d3b14c) at
> filterentry.c:797
> 797 for(a = attrs_find( e->e_attrs, desc );
> (gdb) print *e
> $1 = {e_id = 16777216, e_name = {bv_len = 100, bv_val = 0x8265ef5
> "c=open-xchange,dc=org"},
> e_nname = {bv_len = 103, bv_val = 0x8265f5b "e"}, e_attrs = 0x8266168,
> e_ocflags = 0, e_bv = {
> bv_len = 585, bv_val = 0x8265ef0 "\202\001è\026dc=open-xchange,dc=org"},
> e_private = 0x8265e90}
> (gdb)
Apparently you are using the OpenLDAP 2.2 database files with OpenLDAP
2.3. This is not supported since the database format changed between 2.2
and 2.3; you have to export with 2.2 slapcat and import with 2.3 slapadd
as described in the docs on upgrading. This ITS will be closed.
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/
> chris(a)linuxepos.com wrote:
>
> > #0 is_ad_subtype (sub=0x0, super=0x81eafb0) at ad.c:489
> > 489 for ( a = sub->ad_type; a; a=a->sat_sup ) {
> > (gdb) where
> > #0 is_ad_subtype (sub=0x0, super=0x81eafb0) at ad.c:489
> > #1 0x0806952e in attrs_find (a=0x8266168, desc=0x81eafb0) at attr.c:347
> > #2 0x0807e491 in test_filter (op=0x8265c88, e=0x8266140, f=0x40d3b14c)
> at
> > filterentry.c:797
> > #3 0x080c83cf in bdb_search (op=0x8265c88, rs=0x40d3a8bc) at
> search.c:853
> > #4 0x080632b9 in fe_op_search (op=0x8265c88, rs=0x40d3a8bc) at
> search.c:355
> > #5 0x08062a44 in do_search (op=0x8265c88, rs=0x40d3a8bc) at
> search.c:217
> > #6 0x08061218 in connection_operation (ctx=0x40d3a93c, arg_v=0x8265c88)
> at
> > connection.c:1307
> > #7 0x08133ff8 in ldap_int_thread_pool_wrapper (xpool=0x81f1558) at
> tpool.c:478
> > #8 0x40263d70 in pthread_start_thread (arg=0x40d3abe0) at manager.c:301
> > #9 0x4038d4a7 in __clone () from /lib/libc.so.6
> > (gdb)
>
> This trace indicates that an attribute in the given entry had NULL for
> its AttributeDescription, which is pretty much a "this-can't-happen"
> situation. It would probably be useful to look at the contents of the
> Entry e in frame 2, and all of its attributes. How was this database
> created, how was the entry created?
>
I forgot to mention that I have just upgraded from Openldap 2.2.23 and the
database was created by open-xchange.
Here is entry e in frame 2. I hope this is what you are after:
(gdb) frame 2
#2 0x0807e491 in test_filter (op=0x8265c88, e=0x8266140, f=0x40d3b14c) at
filterentry.c:797
797 for(a = attrs_find( e->e_attrs, desc );
(gdb) print *e
$1 = {e_id = 16777216, e_name = {bv_len = 100, bv_val = 0x8265ef5
"c=open-xchange,dc=org"},
e_nname = {bv_len = 103, bv_val = 0x8265f5b "e"}, e_attrs = 0x8266168,
e_ocflags = 0, e_bv = {
bv_len = 585, bv_val = 0x8265ef0 "\202\001è\026dc=open-xchange,dc=org"},
e_private = 0x8265e90}
(gdb)
_________________________________________________________________________________
Scanned by an Igaware Box - protecting computers from viruses, spam, spyware and other Internet junk.
For more information visit http://www.igaware.com/security.html
_________________________________________________________________________________
rk(a)owen.sj.ca.us wrote:
> Full_Name: R.K. Owen
> Version: HEAD
> OS: linux
> URL: ftp://ftp.openldap.org/incoming/rkowen-061106.patch
> Submission from: (NULL) (66.87.79.68)
>
>
> When using the back-sql with the Oracle XE DB, the Oracle ODBC library
> libsqora.so.10.1 was designed to be linked against the unixODBC interface
> library instead of the iODBC interface library. This can be demonstrated by
> using the unixODBC isql tool which will allow successful interactive querying
> of the Oracle DB. However, when trying to start up the slapd daemon with 'slapd
> -d 1' the daemon will quit with an error claiming:
> Message: [iODBC][Driver Manager]
> /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libsqora.so.10.1:
> undefined symbol: bcuMsgBoxError
>
> The cause for this is that the configure script will first search for iodbc,
> then odbc, and thus cause slapd to be built against the iodbc library.
> By adding the -with-odbc option the configure script will allow the
> administrator to choose which library to use in a flexible way:
>
> --with-odbc=iodbc # current default (-liodbc)
> --with-odbc=odbc # try -lodbc
> --with-odbc=/usr/lib/libodbc.so.1 # link against the shared object library
>
> The changes have been made to the source configure.in file and uploaded as a
> patch.
>
>
The patch is not acceptable, since it requires to specify the desired
OBDC support, which is counter-intuitive, as most of the RDBMS have
drivers or allow to use drivers for both implementations of ODBC.
However, your need is clear. I've designed a different fix, which
requires to set --with-odbc to the preferred sequence of ODBCs to try
(iodbc | unixodbc), while the default (auto) tries the original
sequence. It is now committed to HEAD; please test.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati(a)sys-net.it
------------------------------------------