Commits on Source (18)
-
Ludwig Krispenz authored
-
Mark Reynolds authored
Description: Previously the replication update status messages were updated to a more readable format. This should also be done with the total update status messages. https://pagure.io/389-ds-base/issue/49599 Reviewed by: lkrispen(Thanks!) (cherry picked from commit b67f0f82)
-
Thierry Bordaz authored
Ticket 49619 - adjustment of csn_generator can fail so next generated csn can be equal to the most recent one received Bug Description: On consumer side csn_generator ajustment occurs (let CSN = highest known csn) when a replication session starts when a csn is generated locally and than csn is <= CSN During adjustment, in the case there is no remote/local offset (time change) the current_time on the consumer is identical to CSN Then next locally generated csn will only differ with seqnum The seqnum of the csn_generator is increased only if CSN.seqnum is larger than the csn_generator one. In case of egality, it remains unchanged. The consequence is that the next locally generated csn will be identical to CSN (except for the RID). So even after csn_generator adjustment, csn_generator may create csn that are not larger than the CSN Fix Description: compare the new generated timestamp (time+offsets) with adjustment one. If the new is greater or EQUAL, make sure the local seqnum is ahead the remote one https://pagure.io/389-ds-base/issue/49619 Reviewed by: Mark Reynolds Platforms tested: F27 Flag Day: no Doc impact: no
-
Mark Reynolds authored
-
Ludwig Krispenz authored
Bug: if in the csn adjustment the local time was less or equal than the remote time the sequence number has always been adjusted to remote++ but if the csn time was equal and the local seq number was larger the effect was a reset of the csn generato. Fix: correctly handles seqnum in csn adjustment Reviewed by: Mark, thanks
-
Mark Reynolds authored
Description: In a debug build of the server it crashes when searching the cn=config. This is due to a pointer not being initialized before being dereferenced. https://pagure.io/389-ds-base/issue/49644 Reviewed by: mreynolds(one line commit rule) (cherry picked from commit 5bfc18a2)
-
Mark Reynolds authored
Bug Description: We were previously using crypt() which is not thread safe and reuired a lock. Using pwdhash cli tool caused a crash because the lock was not created when invoked by the cli. Fix Description: Use crypt_r() instead which does not require any locking. https://pagure.io/389-ds-base/issue/49649 Reviewed by: Simon(Thanks!) (cherry picked from commit 530a2db1)
-
Mark Reynolds authored
Bug Description: There are really two issues here. One, when a resource is denied by a DENY aci the cached results for that resource are not proprely set, and on the same connection if the same operation repeated it will be allowed instead of denied because the cache result was not proprely updated. Two, if there are no ALLOW aci's on a resource, then we don't check the deny rules, and resources that are restricted are returned to the client. Fix Description: For issue one, when an entry is denied access reset all the attributes' cache results to DENIED as it's possible previously evaluated aci's granted access to some of these attributes which are still present in the acl result cache. For issue two, if there are no ALLOW aci's on a resource but there are DENY aci's, then set the aclpb state flags to process DENY aci's https://pagure.io/389-ds-base/issue/49652 Reviewed by: tbordaz & lkrispenz(Thanks!!) (cherry picked from commit d77c7f07)
-
Mark Reynolds authored
Signed-off-by:
Mark Reynolds <mreynolds@redhat.com> (cherry picked from commit 9d8d096b)
-
Mark Reynolds authored
Description: Fix crpyt.h include https://pagure.io/389-ds-base/issue/49649 Reviewed by: mreynolds(one line commit rule)
-
Mark Reynolds authored
-
Mark Reynolds authored
Description: There is no upgrade script to add the PBKDF2 plugin, this fix adds the script. https://pagure.io/389-ds-base/issue/49665 Reviewed by: ? (cherry picked from commit dc690dd2)
-
Mark Reynolds authored
Description: There is no upgrade script to add the new CRYPT plugins, this fix adds the script. https://pagure.io/389-ds-base/issue/49665 Reviewed by: vashirov(Thanks!) (cherry picked from commit 91dc8324)
-
Mark Reynolds authored
Bug Description: When a hub receives an update that triggers the memberOf plugin, but that interal operation has no csn and that causes the update to the changelog to fail and break replication. Fix Description: Do not write internal updates with no csns to the changelog on read-only replicas. https://pagure.io/389-ds-base/issue/49671 Reviewed by: simon, tbordaz, and lkrispen (Thanks!!!) (cherry picked from commit afb755bd)
-
Ludwig Krispenz authored
Bug: there was a scenario where two threads could process replication operations in parallel. The reason was that for a new repl start request the repl conn flag is not set and the connection is made readable. When the start repl op is finished, the flagi set, but in a small window the supplier could already have sent updates and more_data would trigger this thread also to continue to process repl operations. Fix: In the situation where a thread successfully processed a start repl request and just set the repl_conn flag do not use more_data. Reviewed by: Thierry, thanks
-
Thierry Bordaz authored
Bug description: During shutdown we would not close connections. In the past this may have just been an annoyance, but now with the way nunc-stans works, io events can still trigger on open xeisting connectinos during shutdown. Because of NS dynamic it can happen that several jobs wants to work on the same connection. In such case (a job is already set in c_job) we delay the new job that will retry. In addition: - some call needed c_mutex - test uninitialized nunc-stans in case of shutdown while startup is not completed Fix Description: Close connections during shutdown rather than leaving them alive. https://pagure.io/389-ds-base/issue/48184 Reviewed by: Original was Ludwig and Viktor Second fix reviewed by Mark Platforms tested: F26 Flag Day: no Doc impact: no (cherry picked from commit e562157c)
-
Mark Reynolds authored