From ac96b0966e30dc6f9121fd694937157cbec9c419 Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Mon, 7 Oct 2024 11:43:00 +0300 Subject: [PATCH] =?UTF-8?q?"=D0=A8=D0=BF=D0=B0=D1=80=D0=B3=D0=B0=D0=BB?= =?UTF-8?q?=D0=BA=D0=B0=20Update"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openldap/Шпаргалка.txt | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/openldap/Шпаргалка.txt b/openldap/Шпаргалка.txt index 7a9e752..6f77eb3 100644 --- a/openldap/Шпаргалка.txt +++ b/openldap/Шпаргалка.txt @@ -34,4 +34,31 @@ ldap_version 3 tls_cacertfile /etc/ssl/certs/ca-certificates.crt # The search scope. -#scope sub \ No newline at end of file +#scope sub + + + +#/etc/nsswitch.conf +passwd: files ldap +group: files ldap +shadow: files ldap + + +#/etc/pam.d/common-auth +auth [success=1 default=ignore] pam_unix.so nullok_secure +auth requisite pam_deny.so +auth required pam_permit.so +auth optional pam_ldap.so + +#/etc/pam.d/common-account +account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so +account required pam_ldap.so + +#/etc/pam.d/common-session +session required pam_unix.so +session optional pam_ldap.so +session required pam_mkhomedir.so skel=/etc/skel/ umask=077 + +commands: +sudo systemctl restart nslcd +getent passwd \ No newline at end of file