Skip to content

Commit ccd851a

Browse files
fix(deps): update module github.com/netresearch/simple-ldap-go to v1.13.0 (#252)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/netresearch/simple-ldap-go](https://redirect.github.com/netresearch/simple-ldap-go) | `v1.12.2` → `v1.13.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fnetresearch%2fsimple-ldap-go/v1.13.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fnetresearch%2fsimple-ldap-go/v1.12.2/v1.13.0?slim=true) | --- ### Release Notes <details> <summary>netresearch/simple-ldap-go (github.com/netresearch/simple-ldap-go)</summary> ### [`v1.13.0`](https://redirect.github.com/netresearch/simple-ldap-go/blob/HEAD/CHANGELOG.md#v1130---2026-07-23) [Compare Source](https://redirect.github.com/netresearch/simple-ldap-go/compare/v1.12.2...v1.13.0) ##### Added - **Password-expiry reporting for Active Directory and OpenLDAP** ([#&#8203;186](https://redirect.github.com/netresearch/simple-ldap-go/pull/186)). `PasswordExpiryFor(ctx, user)` returns a directory-independent answer to when a password expires, and `UsersWithExpiringPasswords(ctx, within)` returns the enabled users whose password expires inside a window, oldest deadline first. The result distinguishes four states — `expires` (with the moment), `never-expires`, `must-change`, `unknown` — rather than a bare timestamp, because they are not interchangeable: a caller that treats `unknown` as expiring would act on every account the directory happens to be quiet about. - Active Directory resolves from the constructed `msDS-UserPasswordExpiryTimeComputed`, which folds in the domain policy and any Password Settings Object server-side, so no privileged read of the Password Settings Container is needed. New `User` fields `PasswordExpiresAt`, `PwdChangedAt`, `PasswordPolicyDN` expose the underlying attributes. - OpenLDAP resolves from the ppolicy operational `pwdChangedTime` plus the governing policy's `pwdMaxAge`, taken from the entry's `pwdPolicySubentry` or the new `Config.PasswordPolicyDN`. `pwdMaxAge` is memoised per policy DN, so a directory scan costs one policy read per distinct policy rather than one per user. - OpenLDAP has no `userAccountControl`, so every OpenLDAP user reads as enabled; a caller that must exclude deactivated OpenLDAP accounts has to do so by its own criterion. ##### Fixed - `FindUserByDNContext` requested a shorter attribute list than the other user searches, so it silently returned a `User` with `pwdLastSet`, `accountExpires`, `lockoutTime` and `whenCreated` zeroed — the same type meaning different things depending on which finder produced it. It now uses the shared `userFields` like every other user search. ##### CI - The codecov unit flag is declared as `unittests` to match what `go-check.yml` uploads under ([#&#8203;187](https://redirect.github.com/netresearch/simple-ldap-go/pull/187)); the previous `unit` name left real unit coverage attributed to an undeclared flag while a stale one carried forward. *** </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/netresearch/raybeam). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI4MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
2 parents dfee909 + 1472c17 commit ccd851a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.1
55
require (
66
github.com/go-ldap/ldap/v3 v3.4.14
77
github.com/gofiber/fiber/v2 v2.52.14
8-
github.com/netresearch/simple-ldap-go v1.12.2
8+
github.com/netresearch/simple-ldap-go v1.13.0
99
github.com/spf13/cobra v1.10.2
1010
github.com/testcontainers/testcontainers-go v0.43.0
1111
github.com/testcontainers/testcontainers-go/modules/openldap v0.43.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ github.com/netresearch/simple-ldap-go v1.12.1 h1:ve+kYx0zrCDqh8QXMVIti8Vv2IaJOU1
131131
github.com/netresearch/simple-ldap-go v1.12.1/go.mod h1:PHBAklheFIQUQRfoarVSMwlfcB9YhRhbaL8CuQq9awU=
132132
github.com/netresearch/simple-ldap-go v1.12.2 h1:nzFCDfZORADNE3N1rVlQEI2CnPoI+tUZKTls/WFlkLE=
133133
github.com/netresearch/simple-ldap-go v1.12.2/go.mod h1:PHBAklheFIQUQRfoarVSMwlfcB9YhRhbaL8CuQq9awU=
134+
github.com/netresearch/simple-ldap-go v1.13.0 h1:hP3zlKCsB+0me6TqV41RoPTanRaqDp4u2hcpDPuGoiY=
135+
github.com/netresearch/simple-ldap-go v1.13.0/go.mod h1:PHBAklheFIQUQRfoarVSMwlfcB9YhRhbaL8CuQq9awU=
134136
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
135137
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
136138
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=

0 commit comments

Comments
 (0)