Re: (ITS#7340) Regression in slapo-constraint
by jsynacek@redhat.com
On 07/30/2012 08:38 PM, Michael Ströder wrote:
> Jan Synacek wrote:
>> On 07/27/2012 10:47 PM, michael(a)stroeder.com wrote:
>>> It seems there's a regression in slapo-constraint possibly caused by a patch for
>>> ITS#7168.
>>
>> This works for me:
>>
>> slapd.ldif:
>> ...
>> dn: olcOverlay=constraint,olcDatabase={1}bdb,cn=config
>> objectClass: olcOverlayConfig
>> objectClass: olcConstraintConfig
>> olcOverlay: constraint
>> olcConstraintAttribute: mail count 3
>> olcConstraintAttribute: description count 2
>> ...
>
> From the excerpt above it seems you've only added a count constraint.
>
> Please use more features of slapo-constraint for testing, e.g. regex- or
> URL-based constraints.
>
> The patch for ITS#7168 broke all my customer setups since I'm slapo-constraint
> quite heavily.
>
> Ciao, Michael.
>
I'm having hard time reproducing this. Still works for me.
Please provide a minimal setup and an example that fails, so I can fix the
patch. Thank you.
--
Jan Synacek
Software Engineer, BaseOS team Brno, Red Hat
10 years, 10 months
Re: (ITS#7340) Regression in slapo-constraint
by michael@stroeder.com
This is a cryptographically signed message in MIME format.
--------------ms010302040303070900010905
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Jan Synacek wrote:
> On 07/27/2012 10:47 PM, michael(a)stroeder.com wrote:
>> It seems there's a regression in slapo-constraint possibly caused by a=
patch for
>> ITS#7168.
>=20
> This works for me:
>=20
> slapd.ldif:
> ...
> dn: olcOverlay=3Dconstraint,olcDatabase=3D{1}bdb,cn=3Dconfig
> objectClass: olcOverlayConfig
> objectClass: olcConstraintConfig
> olcOverlay: constraint
> olcConstraintAttribute: mail count 3
> olcConstraintAttribute: description count 2
> ...
=46rom the excerpt above it seems you've only added a count constraint.
Please use more features of slapo-constraint for testing, e.g. regex- or
URL-based constraints.
The patch for ITS#7168 broke all my customer setups since I'm slapo-const=
raint
quite heavily.
Ciao, Michael.
--------------ms010302040303070900010905
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content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ms010302040303070900010905--
10 years, 10 months
Re: (ITS#7340) Regression in slapo-constraint
by jsynacek@redhat.com
On 07/27/2012 10:47 PM, michael(a)stroeder.com wrote:
> Full_Name:
> Version: RE24 8a0ce24c5abaf687a41696d988f6a1330128368d
> OS:
> URL:
> Submission from: (NULL) (79.227.171.183)
>
>
> It seems there's a regression in slapo-constraint possibly caused by a patch for
> ITS#7168.
>
> If the client sends valid data which not violates a constraint
> CONSTRAINT_VIOLATION is returned:
>
> delete: departmentNumber
> departmentNumber: old_number
> -
> add: departmentNumber
> departmentNumber: new_number
> -
>
> It seems turning off only the constraint for departmentNumber does not help.
> Turning off all constraints makes it work.
>
This works for me:
slapd.ldif:
...
dn: olcOverlay=constraint,olcDatabase={1}bdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcConstraintConfig
olcOverlay: constraint
olcConstraintAttribute: mail count 3
olcConstraintAttribute: description count 2
...
root.ldif:
dn: dc=my-domain,dc=com
objectclass: dcObject
objectclass: organization
dc: my-domain
o: My Domain corp.
user.ldif:
dn: cn=usr2,dc=my-domain,dc=com
objectclass: inetOrgPerson
objectclass: organizationalPerson
cn: usr2
sn: usr2
mail: original(a)email.com
description: desc1
description: desc2
test.ldif:
dn: cn=usr2,dc=my-domain,dc=com
changetype: modify
delete: description
description: desc1
-
add: description
description: desc1-mod
< operation is successful >
Am I misunderstanding something? If it still doesn't work for you, please,
provide more information including your configuration and an example that fails.
--
Jan Synacek
Software Engineer, BaseOS team Brno, Red Hat
10 years, 10 months
(ITS#7340) Regression in slapo-constraint
by michael@stroeder.com
Full_Name:
Version: RE24 8a0ce24c5abaf687a41696d988f6a1330128368d
OS:
URL:
Submission from: (NULL) (79.227.171.183)
It seems there's a regression in slapo-constraint possibly caused by a patch for
ITS#7168.
If the client sends valid data which not violates a constraint
CONSTRAINT_VIOLATION is returned:
delete: departmentNumber
departmentNumber: old_number
-
add: departmentNumber
departmentNumber: new_number
-
It seems turning off only the constraint for departmentNumber does not help.
Turning off all constraints makes it work.
10 years, 10 months
(ITS#7339) back-mdb aborts with online index additions
by hyc@OpenLDAP.org
Full_Name: Howard Chu
Version: HEAD/RE24
OS:
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (37.19.97.21)
Submitted by: hyc
Already fixed in d1a7fa267bdb9e27777ba87db44034ce83a75084
If new databases are added (such as when adding a new index via cn=config) they
may cause additional pages to be dirtied during txn_commit. The pages would be
pulled from the freelist. But the updates occurred after the freelist had
already been written out, so the new state of the freelist wasn't being saved.
Subsequent transactions would abort due to internal corruption.
10 years, 10 months
(ITS#7338) Problems changing bdb DB_CONFIG parameters using back-config
by mhardin@symas.com
Full_Name: Matthew Hardin
Version: 2.4.31
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (69.43.206.100)
Using back-config to update bdb DB_CONFIG parameters has problems.
Changing the parameters with back-config does work, and writes out a new
DB_CONFIG file, but a database reopen doesn't occur and therefore the
environment is not rebuilt. Furthermore, if one restarts slapd, a checkpoint
occurs, which in turn causes mtimes to change in the database and so the
rebuild-env-on-dbopen step isn't triggered.
The proper sequence should be:
close the db
write the new DB_CONFIG
open the db
The checkpoint will take place before DB_CONFIG is written, and on reopen, the
environment will be rebuilt.
10 years, 10 months
(ITS#7337) libmdb can corrupt when reaching maxsize
by hyc@OpenLDAP.org
Full_Name: Howard Chu
Version: HEAD/RE24
OS:
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (37.19.97.21)
Submitted by: hyc
Already fixed by commit 234cd9dfb54ef2f7f83963d95b6eb8e9735bb372
If the DB maxsize was reached while pruning consumed records from the free list
inside mdb_txn_commit, the error was ignored. As a result the txn_commit would
return success even though it only partly succeeded.
The code is now fixed to abort the txn and return the error code.
10 years, 10 months
Re: (ITS#7335) Error in slapo-refint man page
by hyc@symas.com
riggs(a)umn.edu wrote:
> Full_Name: Benjamin Riggs
> Version: 2.4.23
> OS: http://ftp.scientificlinux.org/linux/scientific/6x/i386/os/Packages/openl...
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (128.101.155.71)
>
>
> The slapo-refint man page has only documentation for slapd.conf, not
> slapd-config. Normally this wouldn't be a problem, but the configuration
> keywords are not the usual map of simply adding 'olc':
>
> refint_attributes is changed to olcRefintAttribute (no 's'!)
> refint_nothing is changed to olcRefintNothing
> refint_modifiersname is changed to olcRefintModifiersName
That's true. All of the manpages should be updated for cn=config. In that
respect this ITS can be combined with ITS#7288.
However, we need to decide on how the new information will be presented, to
avoid any unnecessary duplication. It's already quite redundant to maintain
both the cn=config and slapd.conf chapters of the Admin Guide.
Also, the overall issue is an extremely low priority, since all of the schema
definitions can simply be read out of the cn=schema,cn=config entry. The
slapd-config(5) manpage and Admin Guide already note that all of the schema
are present here, so anyone looking for this information should already know
to look there.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
10 years, 10 months