Skip to content

Commit 30c184f

Browse files
fix(deps): update module github.com/netresearch/simple-ldap-go to v1.12.0 (#231)
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.11.0` → `v1.12.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fnetresearch%2fsimple-ldap-go/v1.12.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fnetresearch%2fsimple-ldap-go/v1.11.0/v1.12.0?slim=true) | --- ### Release Notes <details> <summary>netresearch/simple-ldap-go (github.com/netresearch/simple-ldap-go)</summary> ### [`v1.12.0`](https://redirect.github.com/netresearch/simple-ldap-go/blob/HEAD/CHANGELOG.md#v1120---2026-04-22) [Compare Source](https://redirect.github.com/netresearch/simple-ldap-go/compare/v1.11.0...v1.12.0) ##### Added - **`(*LDAP).DisableUser(dn)` / `EnableUser(dn)` and their `*Context` variants.** Flip the `ACCOUNTDISABLE` bit (0x2) on AD `userAccountControl`, preserving every other flag via a read-modify-write. Idempotent — a second disable on an already-disabled account is a no-op, not an error. - **`(*LDAP).DisableComputer(dn)` / `EnableComputer(dn)` and their `*Context` variants.** Same mechanism as user, same idempotency. Preserves `WORKSTATION_TRUST_ACCOUNT` and any other UAC flags on the entry. - **`ACCOUNTDISABLE` exported constant** (`uint32 = 0x2`) for callers who want to compose their own UAC writes. - **`User.AdminCount bool`** — mapped from the `adminCount` AD attribute; `true` when AD has flagged the user as privileged via `adminSDHolder` (members of Domain Admins / Enterprise Admins / Administrators / Account Operators / Backup Operators, etc.). `false` on OpenLDAP entries which never set this attribute. The field is sticky: AD does not clear it when a user leaves a protected group, so `AdminCount=true` means "is OR was privileged", not a perfect real-time check. Documented inline on the struct field. - `adminCount` added to the internal `userFields` attribute list fetched by every user search. ##### Notes - Disable/Enable require Active Directory. OpenLDAP `inetOrgPerson` has no portable disable attribute; calls return a clear error ("userAccountControl attribute missing on … (not an Active Directory entry?)") instead of a silent no-op. - Disable/Enable are NOT atomic across concurrent callers — the read-modify-write window is visible to parallel UAC writes on the same DN. The ACCOUNTDISABLE-bit case converges to whichever write commits last; callers needing strict ordering should serialise their admin operations. *** </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:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDEuMyIsInVwZGF0ZWRJblZlciI6IjQzLjE0MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
2 parents ba8db16 + 58cdbab commit 30c184f

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.13
77
github.com/gofiber/fiber/v2 v2.52.12
8-
github.com/netresearch/simple-ldap-go v1.11.0
8+
github.com/netresearch/simple-ldap-go v1.12.0
99
github.com/spf13/cobra v1.10.2
1010
github.com/testcontainers/testcontainers-go v0.42.0
1111
github.com/testcontainers/testcontainers-go/modules/openldap v0.42.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ github.com/netresearch/simple-ldap-go v1.10.0 h1:NRewkF6TFxpAsfKoFRbOVnMsFbvWhHW
115115
github.com/netresearch/simple-ldap-go v1.10.0/go.mod h1:TgUTDRc9SFd0MpBnzdGoM9A/XX5eAhErHdquURlZ0lo=
116116
github.com/netresearch/simple-ldap-go v1.11.0 h1:MoI/3TdYNlVR8R3jUdVHKP2Ez6lFLSB5TRFaX1Ai02M=
117117
github.com/netresearch/simple-ldap-go v1.11.0/go.mod h1:TgUTDRc9SFd0MpBnzdGoM9A/XX5eAhErHdquURlZ0lo=
118+
github.com/netresearch/simple-ldap-go v1.12.0 h1:6OmPlACaM9KgT/PhDQ1d3rF0KA8TPTJyL1GE18RgrpI=
119+
github.com/netresearch/simple-ldap-go v1.12.0/go.mod h1:TgUTDRc9SFd0MpBnzdGoM9A/XX5eAhErHdquURlZ0lo=
118120
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
119121
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
120122
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=

0 commit comments

Comments
 (0)