JHT ==> Still getting ready for 1.9.17 release.
authorJohn Terpstra <jht@samba.org>
Wed, 9 Jul 1997 13:39:29 +0000 (13:39 +0000)
committerJohn Terpstra <jht@samba.org>
Wed, 9 Jul 1997 13:39:29 +0000 (13:39 +0000)
(This used to be commit 84abac08419c6896d9b4f5c8340df6ad90ed9754)

examples/redhat/Instructions
examples/redhat/makerpms.sh
examples/redhat/samba.pamd [new file with mode: 0644]
examples/redhat/samba.spec

index c88f06e47d921a3e94e4322f0af35f920b415fbe..60c79076ee95e41d539d7d85f31e75e1d67dfdd2 100644 (file)
@@ -1,6 +1,5 @@
 January 8, 1997
 January 8, 1997
-
-John H Terpstra
+Copyright (C) John H Terpstra - 1997
 
 Subject:
 ========
 
 Subject:
 ========
index df54884a74bd7ae29355889cbc405b46785cd8e7..981dfa6a44d30fda4c3be5f3c9d8e51ee40eabcb 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
 #!/bin/sh
+# Copyright (C) John H Terpstra and Erik Troan - 1997
+#
 # First we move all our gear into place - a noble move!
 RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
 SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
 # First we move all our gear into place - a noble move!
 RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
 SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
diff --git a/examples/redhat/samba.pamd b/examples/redhat/samba.pamd
new file mode 100644 (file)
index 0000000..34393a9
--- /dev/null
@@ -0,0 +1,3 @@
+auth   required        /lib/security/pam_unix_auth.so
+auth   required        /lib/security/pam_pwd.so nullok shadow
+account        required        /lib/security/pam_unix_account.so
index ee427e0509bbe693c926d07597e03f6ca4432053..f019f5fbc57c65c44f7d094303d810f4125d2376 100644 (file)
@@ -100,7 +100,11 @@ install -m 644 examples/redhat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
 rm -rf $RPM_BUILD_ROOT
 
 %post
 rm -rf $RPM_BUILD_ROOT
 
 %post
+if [ -d /etc/pam.d ]; then
+install -m 644 examples/redhat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
+else
 /sbin/pamconfig --add --service=samba --password=none --sesslist=none
 /sbin/pamconfig --add --service=samba --password=none --sesslist=none
+fi
 
 if [ ! -f /var/log/samba ]; then
        touch /var/log/samba
 
 if [ ! -f /var/log/samba ]; then
        touch /var/log/samba
@@ -109,7 +113,13 @@ fi
 
 %postun
 if [ "$1" = 0 ] ; then
 
 %postun
 if [ "$1" = 0 ] ; then
-  /sbin/pamconfig --remove --service=samba --password=none --sesslist=none
+  if [ -x /etc/pam.d/samba ]; then
+    rm -f /etc/pam.d/samba
+  else
+    if [ -x /etc/pam.conf ]; then
+      /sbin/pamconfig --remove --service=samba --password=none --sesslist=none
+    fi
+  fi
 fi
 
 %files
 fi
 
 %files
@@ -141,6 +151,9 @@ fi
 %attr(-,root,root) %config /etc/rc.d/rc6.d/K35smb
 %attr(-,root,root) %config /etc/rc.d/rc2.d/K35smb
 %attr(-,root,root) %config /etc/logrotate.d/samba
 %attr(-,root,root) %config /etc/rc.d/rc6.d/K35smb
 %attr(-,root,root) %config /etc/rc.d/rc2.d/K35smb
 %attr(-,root,root) %config /etc/logrotate.d/samba
+if [ -x /etc/pam.d/samba ]; then
+ %attr(-,root,root) %config /etc/pam.d/samba
+fi
 %attr(-,root,root) /usr/man/man1/smbstatus.1
 %attr(-,root,root) /usr/man/man1/smbclient.1
 %attr(-,root,root) /usr/man/man1/smbrun.1
 %attr(-,root,root) /usr/man/man1/smbstatus.1
 %attr(-,root,root) /usr/man/man1/smbclient.1
 %attr(-,root,root) /usr/man/man1/smbrun.1