[sssd PR#5597][comment] sss_cache: reset original timestamp and USN
by elkoniu
URL: https://github.com/SSSD/sssd/pull/5597
Title: #5597: sss_cache: reset original timestamp and USN
elkoniu commented:
"""
Test environment:
- client machine
- LDAP server providing `user-1`
Result of the test without and with this PR:
```
[VANILA]==========================================================
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# returned 1 records
# 1 entries
# 0 referrals
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# id user-1
uid=10001(user-1) gid=10001(user-1) groups=10001(user-1)
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# record 2
dn: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
dataExpireTimestamp: 1620384937
lastUpdate: 1620379537
objectCategory: user
originalModifyTimestamp: 20210507092448Z
entryUSN: 20210507092448Z
initgrExpireTimestamp: 1620384937
distinguishedName: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
# returned 2 records
# 2 entries
# 0 referrals
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# sss_cache -E
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# record 2
dn: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
lastUpdate: 1620379537
objectCategory: user
originalModifyTimestamp: 20210507092448Z
entryUSN: 20210507092448Z
dataExpireTimestamp: 1
initgrExpireTimestamp: 1
distinguishedName: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
# returned 2 records
# 2 entries
# 0 referrals
[SUMIT PR]==========================================================
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# returned 1 records
# 1 entries
# 0 referrals
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# id user-1
uid=10001(user-1) gid=10001(user-1) groups=10001(user-1)
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# record 2
dn: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
dataExpireTimestamp: 1620386518
lastUpdate: 1620381118
objectCategory: user
originalModifyTimestamp: 20210507092448Z
entryUSN: 20210507092448Z
initgrExpireTimestamp: 1620386518
distinguishedName: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
# returned 2 records
# 2 entries
# 0 referrals
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# sss_cache -E
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# record 2
dn: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
lastUpdate: 1620381118
objectCategory: user
dataExpireTimestamp: 1
initgrExpireTimestamp: 1
originalModifyTimestamp: 1
entryUSN: 1
distinguishedName: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
# returned 2 records
# 2 entries
# 0 referrals
```
"""
See the full comment at https://github.com/SSSD/sssd/pull/5597#issuecomment-834227538
2 years, 12 months
[sssd PR#5597][comment] sss_cache: reset original timestamp and USN
by elkoniu
URL: https://github.com/SSSD/sssd/pull/5597
Title: #5597: sss_cache: reset original timestamp and USN
elkoniu commented:
"""
Test environment:
- client machine
- LDAP server providing `user-1`
Result of test without and with this PR:
```
[VANILA]==========================================================
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# returned 1 records
# 1 entries
# 0 referrals
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# id user-1
uid=10001(user-1) gid=10001(user-1) groups=10001(user-1)
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# record 2
dn: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
dataExpireTimestamp: 1620384937
lastUpdate: 1620379537
objectCategory: user
originalModifyTimestamp: 20210507092448Z
entryUSN: 20210507092448Z
initgrExpireTimestamp: 1620384937
distinguishedName: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
# returned 2 records
# 2 entries
# 0 referrals
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# sss_cache -E
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# record 2
dn: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
lastUpdate: 1620379537
objectCategory: user
originalModifyTimestamp: 20210507092448Z
entryUSN: 20210507092448Z
dataExpireTimestamp: 1
initgrExpireTimestamp: 1
distinguishedName: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
# returned 2 records
# 2 entries
# 0 referrals
[SUMIT PR]==========================================================
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# returned 1 records
# 1 entries
# 0 referrals
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# id user-1
uid=10001(user-1) gid=10001(user-1) groups=10001(user-1)
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# record 2
dn: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
dataExpireTimestamp: 1620386518
lastUpdate: 1620381118
objectCategory: user
originalModifyTimestamp: 20210507092448Z
entryUSN: 20210507092448Z
initgrExpireTimestamp: 1620386518
distinguishedName: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
# returned 2 records
# 2 entries
# 0 referrals
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# sss_cache -E
#----------------------------------------------------------------
[root(a)master.client.vm /var/log/sssd]# ldbsearch -H /var/lib/sss/db/timestamps_ldap.vm.ldb -b cn=Users,cn=ldap.vm,cn=sysdb
# record 1
dn: cn=users,cn=ldap.vm,cn=sysdb
cn: Users
distinguishedName: cn=users,cn=ldap.vm,cn=sysdb
# record 2
dn: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
lastUpdate: 1620381118
objectCategory: user
dataExpireTimestamp: 1
initgrExpireTimestamp: 1
originalModifyTimestamp: 1
entryUSN: 1
distinguishedName: name=user-1(a)ldap.vm,cn=users,cn=ldap.vm,cn=sysdb
# returned 2 records
# 2 entries
# 0 referrals
```
"""
See the full comment at https://github.com/SSSD/sssd/pull/5597#issuecomment-834227538
2 years, 12 months
[sssd PR#5585][opened] Poor man's backtrace.
by alexey-tikhonov
URL: https://github.com/SSSD/sssd/pull/5585
Author: alexey-tikhonov
Title: #5585: Poor man's backtrace.
Action: opened
PR body:
"""
In case SSSD is run with debug_level < 9, log everything
to a ring buffer in memory and flush the buffer to a log file on any
error (up to and including `min(0x0040, debug_level)`)
(i.e. if `debug_level` is explicitly set to 0 or 1 then only those
error levels will trigger backtrace, otherwise up to 2).
Feature is only supported for `logger == files`.
Feature is configurable via 'debug_backtrace_enabled' option.
"""
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5585/head:pr5585
git checkout pr5585
3 years
[sssd PR#5617][opened] man: fix p11_uri example URIs
by sigmaris
URL: https://github.com/SSSD/sssd/pull/5617
Author: sigmaris
Title: #5617: man: fix p11_uri example URIs
Action: opened
PR body:
"""
The p11_uri requires a pkcs11: scheme, using `p11_uri = slot-description=My..` without pkcs11: as a prefix will cause p11_child to log an error:
p11_kit_uri_parse failed [-2][URI scheme must be 'pkcs11:'].
Fix the examples to include the pkcs11: scheme.
"""
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5617/head:pr5617
git checkout pr5617
3 years