https://bugs.openldap.org/show_bug.cgi?id=8458
Howard Chu <hyc(a)openldap.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Howard Chu <hyc(a)openldap.org> ---
The bug report makes no sense.
(In reply to mozo(a)mozo.jp from comment #0)
> As LDIF backend tries to store the values for the attributes in "prettified"
> form and the value is transferred verbatim in wire, replication of
> pwdAttribute
> (1.3.6.1.4.1.42.2.27.8.1.1) ends up with the following error:
>
> > syncrepl_message_to_entry: rid=001 mo cheheck (pwdAttribute: value #0 invalid
> per syntax)
>
> The validation causing the error itself is done in the following part in
> servers/slapd/modify.c:
>
> /*
> * check that each value is valid per syntax
> * and pretty if appropriate
> */
> for ( nvals = 0; !BER_BVISNULL( &ml->sml_values[nvals] );
> nvals++ )
> {
> struct berval pval;
>
> if ( pretty ) {
> rc = ordered_value_pretty( ad,
> &ml->sml_values[nvals], &pval, ctx );
> } else {
> rc = ordered_value_validate( ad,
> &ml->sml_values[nvals], ml->sml_op );
> }
>
> if( rc != 0 ) {
> snprintf( textbuf, textlen,
> "%s: value #%ld invalid per syntax",
> ml->sml_type.bv_val, (long) nvals );
> *text = textbuf;
> return LDAP_INVALID_SYNTAX;
> }
>
> if( pretty ) {
> ber_memfree_x( ml->sml_values[nvals].bv_val, ctx );
> ml->sml_values[nvals] = pval;
> }
> }
>
> where pwdAttribute has the corresponding prettifier assigned to its schema
> (servers/slapd/overlays/ppolicy.c), which eventually is fed with the value in
> prettified form that will effectively make slap_bv2ad() in attrPretty() fail.
attrPretty will only fail if the item it's passed has not been defined
in the schema.
>
> {
> Syntax *syn;
> MatchingRule *mr;
>
> syn = ch_malloc( sizeof( Syntax ));
> *syn = *ad_pwdAttribute->ad_type->sat_syntax;
> syn->ssyn_pretty = attrPretty;
> ad_pwdAttribute->ad_type->sat_syntax = syn;
>
> mr = ch_malloc( sizeof( MatchingRule ));
> *mr = *ad_pwdAttribute->ad_type->sat_equality;
> mr->smr_normalize = attrNormalize;
> ad_pwdAttribute->ad_type->sat_equality = mr;
> }
>
> The replication works fine for other such attributes that have the same
> syntax
> (OID, 1.3.6.1.4.1.1466.115.121.1.38) like objectClass because those
> attributes
> are accompanied by the validators as well as prettifiers which validate the
> value both in prettified and OID form. For instance, objectClass has the
> corresponding validator oialalidate() besides the prettifier
> objectClassPretty().
The code you quoted from slapd/modify.c clearly shows that if a prettifier is
defined, then the validator is ignored, therefore it is irrelevant.
So again, this only fails if the schema element in question is not defined,
which means you have a configuration error. Closing this ITS.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=7295
Howard Chu <hyc(a)openldap.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |TEST
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Howard Chu <hyc(a)openldap.org> ---
Fixed in master
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=8246
Howard Chu <hyc(a)openldap.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |TEST
--- Comment #1 from Howard Chu <hyc(a)openldap.org> ---
fixed in master
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=9016
Quanah Gibson-Mount <quanah(a)openldap.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
Keywords|OL_2_5_REQ, reviewed |
--- Comment #2 from Quanah Gibson-Mount <quanah(a)openldap.org> ---
Commits:
• 3c12993f
by Ondřej Kuzník at 2021-03-18T21:07:43+00:00
ITS#9016 Check confdir is empty before generating from scratch
• 1d5e16fa
by Ondřej Kuzník at 2021-03-18T21:07:43+00:00
ITS#9438 Do not regenerate config on startup
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=6830
Quanah Gibson-Mount <quanah(a)openldap.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|2.5.4 |2.5.3
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=6830
Quanah Gibson-Mount <quanah(a)openldap.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #11 from Quanah Gibson-Mount <quanah(a)openldap.org> ---
Commits:
• eafcc405
by Ondřej Kuzník at 2021-03-18T17:32:30+00:00
ITS#6830 Enable NO-USER-MODIFICATION on ppolicy attributes
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=9051
Quanah Gibson-Mount <quanah(a)openldap.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|CONFIRMED |RESOLVED
--- Comment #6 from Quanah Gibson-Mount <quanah(a)openldap.org> ---
Commits:
• 6809a942
by Quanah Gibson-Mount at 2021-03-18T16:36:56+00:00
ITS#9051 Regression test
• 152c12d4
by Ondřej Kuzník at 2021-03-18T16:36:56+00:00
ITS#9051 Do not remove callback on intermediate responses
• 4d6b0180
by Ondřej Kuzník at 2021-03-18T16:36:56+00:00
ITS#9051 Check for more success result codes
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=9505
Issue ID: 9505
Summary: Should be admin guide section on logging detail
Product: OpenLDAP
Version: 2.5
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: ---
Component: documentation
Assignee: bugs(a)openldap.org
Reporter: quanah(a)openldap.org
Target Milestone: ---
Currently we do not document information about the log levels, particularly
stats.
For example, we don't document anywhere outside the slap.h header what time
units etime and qtime use (microseconds). This would be helpful, since other
directory servers use (and DOCUMENT) milliseconds.
Overall it would likely be helpful to end users so they understand more about
what the information stats logging is providing.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=9449
Issue ID: 9449
Summary: When the "lockdetect" is setted in slapd.conf, the db
deadlock detected policy is setted incorrected
Product: OpenLDAP
Version: 2.4.57
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: ---
Component: slapd
Assignee: bugs(a)openldap.org
Reporter: li(a)lihaitao.cn
Target Milestone: ---
I have the "lockdetect random" setted in slapd.conf,the expected deadlock
detected policy is "DB_LOCK_RANDOM" but I got the valude "DB_LOCK_EXPIRE".
After many search of the source file, the lockdetect parse source is found on
openldap-2.4.57\servers\slapd\back-bdb\config.c :Line 894-903
---------------------
case BDB_LOCKD:
rc = verb_to_mask( c->argv[1], bdb_lockd );
if ( BER_BVISNULL(&bdb_lockd[rc].word) ) {
fprintf( stderr, "%s: "
"bad policy (%s) in \"lockDetect <policy>\" line\n",
c->log, c->argv[1] );
return 1;
}
bdb->bi_lock_detect = (u_int32_t)rc;
break;
---------------------
After analyse the verb_to_mask's return value, the "rc" is the index of the
bdb_lockd's setting items. So it can't be passwd to bi_lock_detect.
The right value is The "bdb_lockd[rc].mask".
I think it is a bug, my recommendation fix is like the next.
bdb->bi_lock_detect = (u_int32_t)rc;
->
bdb->bi_lock_detect = bdb_lockd[rc].mask;
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=8996
Quanah Gibson-Mount <quanah(a)openldap.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|IN_PROGRESS |RESOLVED
--- Comment #9 from Quanah Gibson-Mount <quanah(a)openldap.org> ---
Commits:
• 3eea13bd
by Hugh McMaster at 2021-03-15T21:39:55+00:00
ITS#8996 - Generate and install a pkg-config file for the liblber library
• baee6c47
by Hugh McMaster at 2021-03-15T21:39:55+00:00
ITS#8996 - Generate and install a pkg-config file for the libldap library
--
You are receiving this mail because:
You are on the CC list for the issue.