/[smecontribs]/rpms/smeserver-tw-logonscript/contribs7/smeserver-tw-logonscript-1.3-pathDBSettings.patch
ViewVC logotype

Contents of /rpms/smeserver-tw-logonscript/contribs7/smeserver-tw-logonscript-1.3-pathDBSettings.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jan 27 03:42:49 2010 UTC (14 years, 9 months ago) by chriscosta
Branch: MAIN
CVS Tags: smeserver-tw-logonscript-1_3-19_el4_sme, smeserver-tw-logonscript-1_3-20_el4_sme, smeserver-tw-logonscript-1_3-15_el4_sme, smeserver-tw-logonscript-1_3-17_el4_sme, smeserver-tw-logonscript-1_3-14_el4_sme, smeserver-tw-logonscript-1_3-16_el4_sme, HEAD
Error occurred while calculating annotation data.
* Wed Jan 27 2010 Christian Costa <christian@tw.co.nz> 1.3-14
- Created a new configuration database for tw-logonscript. Two properties MountPointsPath and UserHomeMountPointName have been added.
- Changed the spec file to set the default properties automatically

1 --- smeserver-tw-logonscript-1.3/root/home/e-smith/files/samba/netlogon/logon_script.pathDBSettings 2010-01-27 15:40:26.000000000 +1300
2 +++ smeserver-tw-logonscript-1.3/root/home/e-smith/files/samba/netlogon/logon_script 2010-01-27 15:43:02.000000000 +1300
3 @@ -38,15 +38,16 @@
4 }
5
6 # create drive mapping files for users
7 -
8 + my $logonscriptdb = $db->get("tw-logonscript");
9 + my $mount_point_path = $logonscriptdb->prop("MountPointsPath");
10 + my $user_home_mount_point_name = $logonscriptdb->prop("UserHomeMountPointName");
11 open LOGON, ">$netlogon_root/users/$username.bat";
12 mkdir "$netlogon_root/users/$username";
13 open PAMCONF, ">$netlogon_root/users/$username/.pam_mount.conf.xml";
14 print PAMCONF "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
15 print PAMCONF "<!DOCTYPE pam_mount SYSTEM \"pam_mount.conf.xml.dtd\">\n";
16 print PAMCONF "<pam_mount>\n";
17 - print PAMCONF "<volume user=\"*\" fstype=\"cifs\" server=\"$server_name\" path=\"%(DOMAIN_USER)\" mountpoint=\"~/win_home\" options=\"nodev,nosuid\"></volume>\n";
18 -
19 + print PAMCONF "<volume user=\"*\" fstype=\"cifs\" server=\"$server_name\" path=\"%(DOMAIN_USER)\" mountpoint=\"$mount_point_path/$user_home_mount_point_name\" options=\"nodev,nosuid\"></volume>\n";
20
21 foreach my $ibay ($adb->ibays)
22 {
23 @@ -57,8 +58,7 @@
24 if ($ibay_drive_letter ne "NONE") {
25 if (grep(/^$ibay_group$/,@groups) || ($ibay_useraccess eq "wr-group-rd-everyone")){
26 print LOGON "NET USE $ibay_drive_letter: \\\\$server_name\\".$ibay_name."\r\n";
27 - print PAMCONF "<volume user=\"*\" fstype=\"cifs\" server=\"$server_name\" path=\"$ibay_name\" mountpoint=\"~/$ibay_name\" options=\"nodev,nosuid\"></volume>\n";
28 -
29 + print PAMCONF "<volume user=\"*\" fstype=\"cifs\" server=\"$server_name\" path=\"$ibay_name\" mountpoint=\"$mount_point_path/$ibay_name\" options=\"nodev,nosuid\"></volume>\n";
30 }
31 }
32 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed