顯示頁面 舊版 反向連結 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== LDAP client ====== ===== Install ===== <code bash> sudo apt-get install libnss-ldap sudo dpkg-reconfigure ldap-auth-config </code> /etc/pam.d/common-session session required pam_mkhomedir.so skel=/etc/skel/ ===== optional ===== sudo auth-client-config -t nss -p lac_ldap sudo pam-auth-update # pam password vi /etc/pam.d/common-password ===== delete use_authtok ===== <code> #password [success=1 user_unknown=ignore default=die] pam_ldap.so use_authtok try_first_pass password [success=1 user_unknown=ignore default=die] pam_ldap.so try_first_pass </code> ===== clear caceh ===== <code> nscd --invalidate=passwd </code> ===== docker-openldap-backup ===== https://github.com/osixia/docker-openldap-backup ==== Restore ==== <code> rm -rf /var/lib/ldap rm -rf /etc/ldap/slapd.d slapd-restore-config 20170311T040001-config.gz slapd-restore-data 20170311T040001-data.gz # try to restore mutiple times slapd-restore-config 20170311T040001-config.gz slapd-restore-data 20170311T040001-data.gz </code>