[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#7666) segfault when searching regex minus than 3 characters over translucent
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#7666) segfault when searching regex minus than 3 characters over translucent
- From: theju3434@gmail.com
- Date: Wed, 14 Aug 2013 12:22:35 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
--001a11339f3813188a04e3e76889
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
# schema.perso/c.schema
attributetype ( 1.3.6.1.4.1.10000.13.2.20
NAME 'Application'
DESC 'Acces sur les application'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
objectclass ( 1.3.6.1.4.1.10013.2.2.1.0.0
NAME 'cPerson'
SUP 'inetOrgPerson'
STRUCTURAL
MUST ( uid )
MAY ( Application) )
#slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema.perso/c.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
loglevel 2
allow bind_v2
# The maximum number of entries that is returned for a search operation
sizelimit 500000
# The tool-threads parameter sets the actual amount of cpu's that is used
# for indexing.
tool-threads 1
database bdb
# The base of your directory in database #1
suffix "ou=3DPeople,dc=3Dc,dc=3Dfr"
# rootdn directive for specifying a superuser on the database. This is
needed
# for syncrepl.
rootdn "cn=3Dadmin,ou=3DPeople,dc=3Dc,dc=3Dfr"
rootpw "password"
# Where the database file are physically stored for database #1
directory "/var/lib/ldap-people"
dbconfig set_cachesize 0 536870912 0
dbconfig set_flags DB_LOG_AUTOREMOVE
dbconfig set_lk_max_objects 1500
dbconfig set_lk_max_locks 1500
dbconfig set_lk_max_lockers 1500
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uid eq,pres
index Application eq,pres,sub
overlay translucent
# on demande que les resultats des 2 annuaires soient merg=E9s
translucent_no_glue off
translucent_strict off
#liste des attribut a chercher sur l'overlay
translucent_local Application
#liste des attributs a chercher sur le master
translucent_remote
sn,GivenName,mail,street,Postalcode,l,uid,facsimileTelephoneNumber
#activation du bind local
translucent_bind_local on
# activation de la possibilit=E9 de changer le mot de passe
translucent_pwmod_local on
uri ldap://ldapr.c.fr
lastmod off
acl-bind binddn=3D"cn=3Dadmin,ou=3DPeople,dc=3Dc,dc=3Dfr"
credentials=3D"password"
access to attrs=3DuserPassword,shadowLastChange
by dn=3D"cn=3Dadmin,ou=3DPeople,dc=3Dc,dc=3Dfr" write
by anonymous auth
by self write
by * none
access to dn.base=3D""
by * read
Ex user :
dn: uid=3Dw.k.1,ou=3Dc,ou=3DPeople,dc=3Dc,dc=3Dfr
displayName: K W
givenName: W
postalCode: 44095
objectClass: cPerson
uid: w.k.1
mail: w.k@mail.fr
cn: K W
telephoneNumber: 06 06 06 06 06
o: C
l: MON
sn: KNAP
Application: contrat:ABC221:082534
2013/8/14 Howard Chu <hyc@symas.com>
> theju3434@gmail.com wrote:
>
>> --047d7b34397049627604e3e73688
>> Content-Type: text/plain; charset=3DISO-8859-1
>>
>>
>> Here is the stack:
>>
>>
>> gdb slapd
>> GNU gdb (GDB) 7.0.1-debian
>> Copyright (C) 2009 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.=
*
>> *html <http://gnu.org/licenses/gpl.html>
>>
>>>
>>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law. Type "show copyin=
g"
>> and "show warranty" for details.
>> This GDB was configured as "x86_64-linux-gnu".
>> For bug reporting instructions, please see:
>> <http://www.gnu.org/software/**gdb/bugs/<http://www.gnu.org/software/gdb=
/bugs/>
>> >...
>> Reading symbols from /usr/sbin/slapd...(no debugging symbols
>> found)...done.
>>
>
> This trace is useless since it doesn't have any symbols. Please reread th=
e
> FAQ article in my previous reply.
>
> --
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/**project/<http://ww=
w.openldap.org/project/>
>
--001a11339f3813188a04e3e76889
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"># schema.perso/c.schema<br><br>attributetype ( 1.3.6.1.4.1=
.10000.13.2.20<br>=A0=A0=A0=A0=A0=A0=A0 NAME 'Application'<br>=A0=
=A0=A0=A0=A0=A0=A0 DESC 'Acces sur les application'<br>=A0=A0=A0=A0=
=A0=A0=A0 EQUALITY caseIgnoreMatch<br>=A0=A0=A0=A0=A0=A0=A0 SUBSTR caseIgno=
reSubstringsMatch<br>
=A0=A0=A0=A0=A0=A0=A0 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )<br><br>objectc=
lass (=A0 1.3.6.1.4.1.10013.2.2.1.0.0<br>=A0=A0=A0=A0=A0=A0=A0 NAME 'cP=
erson'<br>=A0=A0=A0=A0=A0=A0=A0 SUP 'inetOrgPerson'<br>=A0=A0=
=A0=A0=A0=A0=A0 STRUCTURAL<br>=A0=A0=A0=A0=A0=A0=A0 MUST (=A0 uid )<br>=A0=
=A0=A0=A0=A0=A0=A0 MAY ( Application) )<br>
<br><br><br>#slapd.conf<br><br>include=A0=A0=A0=A0=A0=A0=A0=A0 /etc/openlda=
p/schema/core.schema<br>include=A0=A0=A0=A0=A0=A0=A0=A0 /etc/openldap/schem=
a/cosine.schema<br>include=A0=A0=A0=A0=A0=A0=A0=A0 /etc/openldap/schema/nis=
.schema<br>include=A0=A0=A0=A0=A0=A0=A0=A0 /etc/openldap/schema/inetorgpers=
on.schema<br>
include=A0=A0=A0=A0=A0=A0=A0=A0 /etc/openldap/schema.perso/c.schema<br><br>=
pidfile=A0=A0=A0=A0=A0=A0=A0=A0 /var/run/slapd/slapd.pid<br>argsfile=A0=A0=
=A0=A0=A0=A0=A0 /var/run/slapd/slapd.args<br>loglevel=A0=A0=A0=A0=A0 2<br><=
br>allow bind_v2<br><br># The maximum number of entries that is returned fo=
r a search operation<br>
sizelimit=A0=A0=A0=A0=A0=A0 500000<br><br># The tool-threads parameter sets=
the actual amount of cpu's that is used<br># for indexing.<br>tool-thr=
eads=A0=A0=A0 1<br><br><br>database=A0=A0=A0=A0=A0=A0=A0 bdb<br><br># The b=
ase of your directory in database #1<br>
suffix=A0=A0=A0=A0=A0=A0=A0=A0=A0 "ou=3DPeople,dc=3Dc,dc=3Dfr"<br=
><br># rootdn directive for specifying a superuser on the database. This is=
needed<br># for syncrepl.<br>rootdn=A0=A0=A0=A0=A0=A0=A0=A0=A0 "cn=3D=
admin,ou=3DPeople,dc=3Dc,dc=3Dfr"<br>rootpw=A0=A0=A0=A0=A0=A0=A0=A0=A0=
"password"<br>
<br><br># Where the database file are physically stored for database #1<br>=
directory=A0=A0=A0=A0=A0=A0 "/var/lib/ldap-people"<br><br>dbconfi=
g set_cachesize 0 536870912 0<br>dbconfig set_flags=A0=A0=A0 DB_LOG_AUTOREM=
OVE<br>dbconfig set_lk_max_objects 1500<br>
dbconfig set_lk_max_locks 1500<br>dbconfig set_lk_max_lockers 1500<br><br><=
br>index objectClass=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 eq,pres<br>index ou,cn,mail,surname,givenname=A0=A0=A0=A0=A0 e=
q,pres,sub<br>index uid=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 eq,pres<br>
index Application=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 eq,pres,sub<br><=
br><br>overlay=A0=A0=A0=A0=A0=A0=A0=A0 translucent<br><br># on demande que =
les resultats des 2 annuaires soient merg=E9s<br>translucent_no_glue off<br=
>translucent_strict off<br><br>#liste des attribut a chercher sur l'ove=
rlay<br>
translucent_local Application<br>#liste des attributs a chercher sur le mas=
ter<br>translucent_remote sn,GivenName,mail,street,Postalcode,l,uid,facsimi=
leTelephoneNumber<br><br>#activation du bind local<br>translucent_bind_loca=
l on<br>
<br># activation de la possibilit=E9 de changer le mot de passe<br>transluc=
ent_pwmod_local on<br><br>uri=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ldap://<a=
href=3D"http://ldapr.c.fr">ldapr.c.fr</a><br>lastmod=A0=A0=A0=A0=A0=A0=A0=
=A0 off<br>acl-bind=A0=A0=A0=A0=A0=A0=A0 binddn=3D"cn=3Dadmin,ou=3DPeo=
ple,dc=3Dc,dc=3Dfr" credentials=3D"password"<br>
<br>access to attrs=3DuserPassword,shadowLastChange<br>=A0=A0=A0=A0=A0=A0=
=A0 by dn=3D"cn=3Dadmin,ou=3DPeople,dc=3Dc,dc=3Dfr" write<br>=A0=
=A0=A0=A0=A0=A0=A0 by anonymous auth<br>=A0=A0=A0=A0=A0=A0=A0 by self write=
<br>=A0=A0=A0=A0=A0=A0=A0 by * none<br><br>access to dn.base=3D""=
<br>
=A0=A0=A0=A0=A0=A0=A0 by * read<br><br><br>Ex user : <br><br>dn: uid=3Dw.k.=
1,ou=3Dc,ou=3DPeople,dc=3Dc,dc=3Dfr<br>displayName: K W<br>givenName: W<br>=
postalCode: 44095<br>objectClass: cPerson<br>uid: w.k.1<br>mail: <a href=3D=
"mailto:w.k@mail.fr">w.k@mail.fr</a><br>
cn: K W<br>telephoneNumber: 06 06 06 06 06<br>o: C<br>l: MON<br>sn: KNAP<br=
>Application: contrat:ABC221:082534<br></div><div class=3D"gmail_extra"><br=
><br><div class=3D"gmail_quote">2013/8/14 Howard Chu <span dir=3D"ltr"><=
<a href=3D"mailto:hyc@symas.com" target=3D"_blank">hyc@symas.com</a>></s=
pan><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><a href=3D"mailto:theju3434@gmail.com" targe=
t=3D"_blank">theju3434@gmail.com</a> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
--047d7b34397049627604e3e73688<br>
Content-Type: text/plain; charset=3DISO-8859-1<div class=3D"im"><br>
<br>
Here is the stack:<br>
<br>
<br>
gdb slapd<br>
GNU gdb (GDB) 7.0.1-debian<br>
Copyright (C) 2009 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href=3D"http://gnu.org/li=
censes/gpl.html" target=3D"_blank">http://gnu.org/licenses/gpl.<u></u>html<=
/a><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<br>
</blockquote>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law. =A0Type "show co=
pying"<br>
and "show warranty" for details.<br>
This GDB was configured as "x86_64-linux-gnu".<br>
For bug reporting instructions, please see:<br>
<<a href=3D"http://www.gnu.org/software/gdb/bugs/" target=3D"_blank">htt=
p://www.gnu.org/software/<u></u>gdb/bugs/</a>>...<br>
Reading symbols from /usr/sbin/slapd...(no debugging symbols found)...done.=
<br>
</div></blockquote>
<br>
This trace is useless since it doesn't have any symbols. Please reread =
the FAQ article in my previous reply.<span class=3D"HOEnZb"><font color=3D"=
#888888"><br>
<br>
-- <br>
=A0 -- Howard Chu<br>
=A0 CTO, Symas Corp. =A0 =A0 =A0 =A0 =A0 <a href=3D"http://www.symas.com" t=
arget=3D"_blank">http://www.symas.com</a><br>
=A0 Director, Highland Sun =A0 =A0 <a href=3D"http://highlandsun.com/hyc/" =
target=3D"_blank">http://highlandsun.com/hyc/</a><br>
=A0 Chief Architect, OpenLDAP =A0<a href=3D"http://www.openldap.org/project=
/" target=3D"_blank">http://www.openldap.org/<u></u>project/</a><br>
</font></span></blockquote></div><br></div>
--001a11339f3813188a04e3e76889--