ce62dc
diff -up cups-1.5b1/conf/cups.password-auth.system-auth cups-1.5b1/conf/cups.password-auth
ce62dc
--- cups-1.5b1/conf/cups.password-auth.system-auth	2011-05-23 17:27:27.000000000 +0200
ce62dc
+++ cups-1.5b1/conf/cups.password-auth	2011-05-23 17:27:27.000000000 +0200
ce62dc
@@ -0,0 +1,4 @@
ce62dc
+#%PAM-1.0
ce62dc
+# Use password-auth common PAM configuration for the daemon
ce62dc
+auth        include     password-auth
ce62dc
+account     include     password-auth
ce62dc
diff -up cups-1.5b1/conf/cups.system-auth.system-auth cups-1.5b1/conf/cups.system-auth
ce62dc
--- cups-1.5b1/conf/cups.system-auth.system-auth	2011-05-23 17:27:27.000000000 +0200
ce62dc
+++ cups-1.5b1/conf/cups.system-auth	2011-05-23 17:27:27.000000000 +0200
ce62dc
@@ -0,0 +1,3 @@
ce62dc
+#%PAM-1.0
ce62dc
+auth	include		system-auth
ce62dc
+account	include		system-auth
ce62dc
diff -up cups-1.5b1/conf/Makefile.system-auth cups-1.5b1/conf/Makefile
ce62dc
--- cups-1.5b1/conf/Makefile.system-auth	2011-05-12 07:21:56.000000000 +0200
ce62dc
+++ cups-1.5b1/conf/Makefile	2011-05-23 17:27:27.000000000 +0200
ce62dc
@@ -90,10 +90,16 @@ install-data:
ce62dc
 	done
ce62dc
 	-if test x$(PAMDIR) != x; then \
ce62dc
 		$(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
ce62dc
-		if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \
ce62dc
-			$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
ce62dc
+		if test -f /etc/pam.d/password-auth; then \
ce62dc
+			$(INSTALL_DATA) cups.password-auth $(BUILDROOT)$(PAMDIR)/cups; \
ce62dc
+		elif test -f /etc/pam.d/system-auth; then \
ce62dc
+			$(INSTALL_DATA) cups.system-auth $(BUILDROOT)$(PAMDIR)/cups; \
ce62dc
 		else \
ce62dc
-			$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
ce62dc
+			if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \
ce62dc
+				$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
ce62dc
+			else \
ce62dc
+				$(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
ce62dc
+			fi ; \
ce62dc
 		fi ; \
ce62dc
 	fi
ce62dc