-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rui Miguel Silva Seabra
committed
Nov 2, 2024
1 parent
0f86b0b
commit 3706cf7
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -228,7 +228,7 @@ Create :file:`/etc/security/ldap/ldap.cfg`, **note that you don't want to allow | |
krbkeypath:/etc/krb5/krb5.keytab | ||
krbprincipal:host/[email protected] | ||
defaultentrylocation:local | ||
userbasedn:cn=users,cn=accounts,dc=example,dc=com??(!(nsaccountlocked=TRUE)) | ||
userbasedn:cn=users,cn=accounts,dc=example,dc=com??(!(nsaccountlock=TRUE)) | ||
groupbasedn:cn=groups,cn=accounts,dc=example,dc=com | ||
netgroupbasedn:cn=ng,cn=compat,dc=example,dc=com | ||
userclasses:posixaccount | ||
|
@@ -276,7 +276,7 @@ And add the following to :file:`/etc/pam.cfg`: | |
:: | ||
|
||
(...) | ||
userbasedn:cn=users,cn=accounts,dc=example,dc=com??(&(!(nsaccountlocked=TRUE))(memberOf=ipaUniqeID=12345678-1234-1234-1234567890ab,cn=hbac,dc=example,dc=com)) | ||
userbasedn:cn=users,cn=accounts,dc=example,dc=com??(&(!(nsaccountlock=TRUE))(memberOf=ipaUniqeID=12345678-1234-1234-1234567890ab,cn=hbac,dc=example,dc=com)) | ||
(...) | ||
|
||
Or... **if you don't want to use HBAC, or prevent locked users from logging in**, your `userbasedn` parameter may be specified without any additional filters, like: | ||
|