pam: Use LDAP for authentication.
[matthijs/servers/drsnuggles.git] / etc / pam.d / common-session
index dc11da6d7845c32341f15e0cd84e9f61a523d7b1..c6eb1960182a6be3008e79575fbf1a1890f9879f 100644 (file)
@@ -6,4 +6,13 @@
 # at the start and end of sessions of *any* kind (both interactive and
 # non-interactive).  The default is pam_unix.
 #
-session        required        pam_unix.so
+# Default was:
+#
+# session      required        pam_unix.so
+
+# LDAP config copied from http://wiki.debian.org/LDAP/PAM
+session     required      pam_limits.so
+session     required      pam_unix.so
+session     optional      pam_ldap.so
+
+session     required      pam_mkhomedir.so skel=/etc/skel umask=0022