diff -ruN smeserver-adv-samba-0.1.0-virgin/createlinks smeserver-adv-samba-0.1.0-mod/createlinks --- smeserver-adv-samba-0.1.0-virgin/createlinks 2008-04-11 21:38:09.000000000 -0700 +++ smeserver-adv-samba-0.1.0-mod/createlinks 2008-09-30 23:44:31.000000000 -0700 @@ -2,6 +2,9 @@ use esmith::Build::CreateLinks qw(:all); +templates2events("/etc/pam.d/login", "post-upgrade"); + +# Restart winbindd service during workgroup-update event $event = "workgroup-update"; safe_symlink("sigterm", "root/etc/e-smith/events/$event/services2adjust/winbindd"); diff -ruN smeserver-adv-samba-0.1.0-virgin/root/etc/e-smith/templates/etc/pam.d/login/22winbinddAuth smeserver-adv-samba-0.1.0-mod/root/etc/e-smith/templates/etc/pam.d/login/22winbinddAuth --- smeserver-adv-samba-0.1.0-virgin/root/etc/e-smith/templates/etc/pam.d/login/22winbinddAuth 1969-12-31 16:00:00.000000000 -0800 +++ smeserver-adv-samba-0.1.0-mod/root/etc/e-smith/templates/etc/pam.d/login/22winbinddAuth 2008-09-30 23:49:31.000000000 -0700 @@ -0,0 +1,5 @@ +{ +return ('') unless ($winbindd{status} eq 'enabled'); +return ('auth sufficient pam_winbind.so'); +} + diff -ruN smeserver-adv-samba-0.1.0-virgin/root/etc/e-smith/templates/etc/pam.d/login/23unixAuth smeserver-adv-samba-0.1.0-mod/root/etc/e-smith/templates/etc/pam.d/login/23unixAuth --- smeserver-adv-samba-0.1.0-virgin/root/etc/e-smith/templates/etc/pam.d/login/23unixAuth 1969-12-31 16:00:00.000000000 -0800 +++ smeserver-adv-samba-0.1.0-mod/root/etc/e-smith/templates/etc/pam.d/login/23unixAuth 2008-09-30 23:49:38.000000000 -0700 @@ -0,0 +1,4 @@ +{ +return ('') unless ($winbindd{status} eq 'enabled'); +return ('auth sufficient pam_unix.so use_first_pass'); +} diff -ruN smeserver-adv-samba-0.1.0-virgin/root/etc/e-smith/templates/etc/pam.d/login/32winbinddAccount smeserver-adv-samba-0.1.0-mod/root/etc/e-smith/templates/etc/pam.d/login/32winbinddAccount --- smeserver-adv-samba-0.1.0-virgin/root/etc/e-smith/templates/etc/pam.d/login/32winbinddAccount 1969-12-31 16:00:00.000000000 -0800 +++ smeserver-adv-samba-0.1.0-mod/root/etc/e-smith/templates/etc/pam.d/login/32winbinddAccount 2008-09-30 23:49:49.000000000 -0700 @@ -0,0 +1,4 @@ +{ +return ('') unless ($winbindd{status} eq 'enabled'); +return ('account sufficient pam_winbind.so'); +} diff -ruN smeserver-adv-samba-0.1.0-virgin/root/etc/e-smith/templates/etc/smb.conf/ibays/22forceGroup smeserver-adv-samba-0.1.0-mod/root/etc/e-smith/templates/etc/smb.conf/ibays/22forceGroup --- smeserver-adv-samba-0.1.0-virgin/root/etc/e-smith/templates/etc/smb.conf/ibays/22forceGroup 1969-12-31 16:00:00.000000000 -0800 +++ smeserver-adv-samba-0.1.0-mod/root/etc/e-smith/templates/etc/smb.conf/ibays/22forceGroup 2008-10-01 00:06:38.000000000 -0700 @@ -0,0 +1,5 @@ +{ +return '' unless $smb{ServerRole} =~ m{^(DM|ADM)$}; +my $group_name = $ibay->prop('Group') || 'Shared'; +return ("force group = $group_name"); +}