mrjhb3
I've tested this out on a test server and most seems to work now ... I have tweeked it a bit more but the comands are still not recognnised.
I'll have to check out a few more areas and see if I can see anything ... mind you I'm not much good with scripts etc but maybe I'll fing something.
These are the files I had to modify ...
etc/e-smith/events/actions/conf-loginscript
Line 33: esmith::util::processTemplate (\%conf, "/home/netlogon/netlogon.bat");
change to: esmith::util::processTemplate (\%conf, "/home/e-smith/files/samba/netlogon/netlogon.bat");
etc/e-smith/events/conf-logondrive/S75conf-loginscript
Line 33: esmith::util::processTemplate (\%conf, "/home/netlogon/netlogon.bat");
change to: esmith::util::processTemplate (\%conf, "/home/e-smith/files/samba/netlogon/netlogon.bat");
etc/e-smith/templates/etc/smb.conf/50homes-preexec
Line 1: root preexec = "/usr/local/bin/generate_netlogon /home/netlogon/netlogon.template /home/e-smith/files/users/%U/home/netlogon.bat %U %m %a %T"
change to: root preexec = "/usr/local/bin/generate_netlogon /home/e-smith/files/samba/netlogon/netlogon.template /home/e-smith/files/users/%U/home/netlogon.bat %U %m %a %T"
etc/e-smith/web/functions/loginscript
Line 94: if ( -e '/home/netlogon/netlogon.template' )
change to: if ( -e '/home/e-smith/files/samba/netlogon/netlogon.template' )
Line 96: open ( NETLOGON, '< /home/netlogon/netlogon.template' )
change to: open ( NETLOGON, '< /home/e-smith/files/samba/netlogon/netlogon.template' )
Line 97: || die 'Couldn\'t open /home/netlogon/netlogon.template file!';
change to: || die 'Couldn\'t open /home/e-smith/files/samba/netlogon/netlogon.template file!';
Line 229: open ( NETLOGON, '> /home/netlogon/netlogon.template' )
change to: open ( NETLOGON, '> /home/e-smith/files/samba/netlogon/netlogon.template' )
Line 230: || die 'Couldn\'t open /home/e-smith/files/samba/netlogon/netlogon.template file!';
etc/e-smith/web/panels/manager/cgi-bin/loginscript
Check all relevant lines here as well should be the same as above.
usr/local/bin/generate_netlogon
Line 37: tie %accounts, 'esmith::config', '/home/e-smith/accounts';
change to: tie %accounts, 'esmith::config', '/home/e-smith/db/accounts';
Thats all I could find at a glance.
I also tried things by changing all the netlogon.template to netlogon.bat because with the template file it didn't seem to do much. After the change I can modify the netlogon.bat through the web interface no prob and it copies a vertion of the bat file to the persons home dir with only the shares that are available to them.
So most things seem to work but the #ifg and #endifg is still not recognised.
Regards,
Tib