Skip to content

Commit

Permalink
Merge pull request #33 from NethServer/fix-6823
Browse files Browse the repository at this point in the history
Fix enabled/disable user action
  • Loading branch information
DavidePrincipi authored Jan 22, 2024
2 parents de81f7a + e3c2f9a commit b30d489
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions imageroot/update-module.d/60fix_pwdlockout
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

#
# Copyright (C) 2023 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

#
# Fix for bug 6823
# See https://github.com/NethServer/ns8-openldap/pull/33
#
podman exec -i openldap ash -c 'envsubst | ldapmodify -c' <<'EOF'
dn: cn=default,ou=PPolicy,${LDAP_SUFFIX}
changetype: modify
replace: pwdLockout
pwdLockout: TRUE
EOF
2 changes: 1 addition & 1 deletion server/usr/local/lib/templates/mdb0.ldif
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pwdMinAge: 0
pwdMaxAge: 15552000
pwdMinLength: 8
pwdInHistory: 12
pwdLockout: FALSE
pwdLockout: TRUE
pwdUseCheckModule: TRUE
pwdCheckModuleArg: default
pwdExpireWarning: 0
Expand Down

0 comments on commit b30d489

Please sign in to comment.