Full_Name: Pierangelo Masarati
Version: HEAD
OS: irrelevant
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (131.175.154.148)
Submitted by: ando
I see an issue in slapo-constraint(5): it does not handle rename ops; as a
consequence, a rename could result in violating constraints on the values of the
naming attributes.
p.
Full_Name: Pierangelo Masarati
Version: HEAD
OS: irrelevant
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (81.72.89.40)
Submitted by: ando
I've added a "set" type to slapo-constraint(5) that allows to write complex
constraints like
constraint_attribute cn,sn,givenName set
"(this/givenName + [ ] + this/sn) & this/cn"
forcing a relationship between the values of cn, sn and givenName.
The possibility to enforce the same constraint on multiple attributes separated
by commas is given to all constraint types, as a side-effect.
The check is passed the entry during add operations, while it attempts to build
the entry resulting from a set of modifications during modify operations.
p.
ando(a)sys-net.it wrote:
> BTW: there are some minor bugs in that patch; for example, don't start
> slapd with -F :).
Michael,
please try this one instead:
<ftp://ftp.openldap.org/incoming/pierangelo-masarati-x-subst-2008-09-17.patch>.
I won't probably be able to work at this stuff for a few days.
Cheers, p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando(a)sys-net.it
-----------------------------------
michael(a)stroeder.com wrote:
> You rock! I'll give it a try.
BTW: there are some minor bugs in that patch; for example, don't start
slapd with -F :). I should either submit a new one, or commit the whole
stuff, but perhaps I'd wait for 2.4.12 to be out.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando(a)sys-net.it
-----------------------------------
Michael Ströder wrote:
> Pierangelo Masarati wrote:
>> I have a patch
>> <ftp://ftp.openldap.org/incoming/pierangelo-masarati-x-subst-2008-09-16.patch>
>> that implements support for "ldapsyntax" (slapd.conf) and
>> "olcLdapSyntaxes" (back-config) in order to allow run-time configuration
>> of syntaxes that have NULL handlers and thus need to have the X-SUBST
>> extension in place.
>
> You rock! I'll give it a try.
>
>> ldapsyntax ( <my-syntax-oid> NAME 'MySyntax'
>> DESC 'this is the description'
>> X-SUBST 1.3.6.1.4.1.1466.115.121.1.15 )
>
> Looking at RFC 4512 the SyntaxDescription does not mention NAME
> (although I'd appreciate it would).
Correct. I was mistaken by the presence of the field in the schema
stucture of include/ldap_schema.h:
typedef struct ldap_syntax {
char *syn_oid; /* REQUIRED */
char **syn_names; /* OPTIONAL */
char *syn_desc; /* OPTIONAL */
LDAPSchemaExtensionItem **syn_extensions; /* OPTIONAL */
} LDAPSyntax;
We should probably trim it, although it could (would) break binary
interoperability at the libldap level. I'd note rfc4517 does not
mention extensions, either...
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando(a)sys-net.it
-----------------------------------
Pierangelo Masarati wrote:
>
> I have a patch
> <ftp://ftp.openldap.org/incoming/pierangelo-masarati-x-subst-2008-09-16.patch>
> that implements support for "ldapsyntax" (slapd.conf) and
> "olcLdapSyntaxes" (back-config) in order to allow run-time configuration
> of syntaxes that have NULL handlers and thus need to have the X-SUBST
> extension in place.
You rock! I'll give it a try.
> ldapsyntax ( <my-syntax-oid> NAME 'MySyntax'
> DESC 'this is the description'
> X-SUBST 1.3.6.1.4.1.1466.115.121.1.15 )
Looking at RFC 4512 the SyntaxDescription does not mention NAME
(although I'd appreciate it would).
Ciao, Michael.
On Tue, 16 Sep 2008, Howard Chu wrote:
> What is the value of c_conn_state in each of these occurrences?
In case 1 and 2, connections[*index].c_conn_state = 2 (SLAP_C_ACTIVE).
In case 3, connections[*index].c_conn_state = 1 (SLAP_C_INACTIVE).
richton(a)nbcs.rutgers.edu wrote:
> Full_Name: Aaron Richton
> Version: RE24
> OS: Solaris 9
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (128.6.31.135)
>
>
> Rare connection.c assertion during test008s of RE24. Here are three different
> examples:
>
> t@6 (l@6) terminated by signal ABRT (Abort)
> 0xffffffff7f0a8d4c: __lwp_kill+0x0008: bcc,a,pt %icc,__lwp_kill+0x18 !
> 0xffffffff7f0a8d5c
> Current function is connection_next
> 871 assert( connections[*index].c_conn_state ==
> SLAP_C_INVALID );
What is the value of c_conn_state in each of these occurrences?
> I have the testrun directories from each of these runs, if desired.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
Michael,
I have a patch
<ftp://ftp.openldap.org/incoming/pierangelo-masarati-x-subst-2008-09-16.patch>
that implements support for "ldapsyntax" (slapd.conf) and
"olcLdapSyntaxes" (back-config) in order to allow run-time configuration
of syntaxes that have NULL handlers and thus need to have the X-SUBST
extension in place. The patch is very intrusive, that's why I didn't
commit it right now, as I'd like someone to give it a look first. It
applies to HEAD as of right now. Please test and report. My current
test configuration is something like
ldapsyntax ( <my-syntax-oid> NAME 'MySyntax'
DESC 'this is the description'
X-SUBST 1.3.6.1.4.1.1466.115.121.1.15 )
followed by
attributeType ( <my-at-oid> NAME 'MyAttr'
SYNTAX <my-syntax-oid> )
It seems to work just fine, although I didn't check many features like
deletion of schema via back-config and so.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando(a)sys-net.it
-----------------------------------