1. I realise it can map networks drivers for users etc, is there any way it can be told to map network drives for only the shares that the user logging in has access to? Or is there a way to create a custom logon.bbat file for each user?
as nenonano says use smeserver-loginscript:
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/jbennett/sme7/loginscript/RPM/smeserver-loginscript-0.2-8.noarch.rpmthis is undocumented but the syntax for passing multiple #if statements per mapping, using loginscript is:
#ifu student7
#ifg class1, class2
#ifm terminal4
REM Map something very specific:
NET USE F: \\server\veryspecificfolder /PERSISTANT:NO
#endif
#endif
#endif
the above example will only map F:\veryspecificfolder if a user meets the above criteria (student7 only if in class1 and class2 and only when using terminal4).
you may also require additional user control over Ibays. see my earlier post:
http://forums.contribs.org/index.php?topic=39322.msg179704#msg1797042. Is there a way to get netlogon.bat to set the IE connection settings (proxy etc) automatically at logon?
poledit is probably not the best approach as it does not seem to update user profiles after making changes to your policy file (NTConfig.pol) and therefore you have to rebuild all user profiles to apply ongoing changes to your policy, eg: change of proxy server address etc. this has been quite an issue for me in the past and i have not yet worked out a solution.
an easier option would be to configure your gateway machine (proxy server) to block all ports and only allow internet access via proxy. then configure the proxy.pac (and wpad.dat) files on your proxy server so that client machines will automatically discover the proxy server. this is a complete solution as it also applies to computers not logged onto the domain (poledit).
example:
function FindProxyForURL(url, host)
{
if (isInNet(host, "10.0.0.1", "255.255.255.0"))
return "PROXY 10.0.0.1:8080";
else
return "DIRECT";
}
this way if your browser is set to "Auto-detect proxy settings" it will automatically discover your proxy server and if users attempt to bypass the proxy manually they won't get access because your standard ports are blocked.
proxy.pac is used in SME if in server/gateway mode however i use Endian Firewall as my gateway server and here is their how-to on the subject:
http://kb.endian.com/entry/22/ further info on proxy.pac:
http://en.wikipedia.org/wiki/Proxy_auto-config ///
http://nscsysop.hypermart.net/proxypac.htmlregards,
brentonv