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

Annotation of /rpms/smeserver-tw-logonscript/contribs8/smeserver-tw-logonscript-1.3-pathDBSettings.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Mar 3 23:32:37 2013 UTC (11 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-tw-logonscript-1_3-22_el5_sme, smeserver-tw-logonscript-1_3-21_el5_sme, smeserver-tw-logonscript-1_3-20_el5_sme, HEAD
Initial import

1 unnilennium 1.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