VASC Examples
From Chaos
| VASC | ||
|---|---|---|
| < Previous page | Contents | Next Page > |
Contents |
Examples
There's basically 2 setups that you can do with VASC. One that has one single Samba PDC that also has printers and runs the time server. The other option is to have a primary Samba PDC, and then have any number of other Samba BDC's (running print and/or file services). Note that in the multi-Samba setup, we assume that all your Samba servers are connected to the same domain, authenticating against the same directory store for your users (OpenLDAP in most cases).
Example 1
Single Samba PDC + Printing + Time
In the below diagram, you can clearly see that we have one main Samba PDC (samba001), with multiple shares and printers. There's also one desktop client (desktop001), but there can be many more.
vasc.xml
Here is an example vasc.xml that I would use for the above setup:
<?xml version='1.0'?> <vasc> <general> <enableDebug>false</enableDebug> <sambaLogonScriptPath>/home/samba/netlogon/%USERNAME%.vbs</sambaLogonScriptPath> <sambaProfileRoot>/home/samba/profiles</sambaProfileRoot> <sambaProfileDirectoryMode>0700</sambaProfileDirectoryMode> <sambaTimeServer>samba001</sambaTimeServer> <sambaPDC>samba001</sambaPDC> </general> <share profileRoot="false"> <description>P: drive share, per-user home directory.</description> <windowsDrive>P:</windowsDrive> <serverName>samba001</serverName> <shareName>%USERNAME%</shareName> </share> <share profileRoot="true"> <description>X: drive share, users profile root directory.</description> <windowsDrive>X:</windowsDrive> <serverName>samba001</serverName> <shareName>profile</shareName> </share> <printer default="true"> <description>My CUPS printer 'Printer_001' on 'samba001'.</description> <serverName>samba001</serverName> <printerName>Printer_001</printerName> </printer> <printer default="false"> <description>My CUPS printer 'Printer_002' on 'samba001'.</description> <serverName>samba001</serverName> <printerName>Printer_002</printerName> </printer> </vasc>
Example 2
Single Samba PDC + Multiple Samba BDC + Printers + Time
In the below image, you can clearly see that we have one main Samba PDC (samba001), with multiple shares, and another Samba BDC (samba002) that has multiple printers and a file share. There's also one desktop client (desktop001), but there can be many more.
vasc.xml
Here is an example vasc.xml that I would use for the above setup:
<?xml version='1.0'?> <vasc> <general> <enableDebug>false</enableDebug> <sambaLogonScriptPath>/home/samba/netlogon/%USERNAME%.vbs</sambaLogonScriptPath> <sambaProfileRoot>/home/samba/profiles</sambaProfileRoot> <sambaProfileDirectoryMode>0700</sambaProfileDirectoryMode> <sambaTimeServer>samba001</sambaTimeServer> <sambaPDC>samba001</sambaPDC> </general> <share profileRoot="false"> <description>P: drive share, per-user home directory.</description> <windowsDrive>P:</windowsDrive> <serverName>samba001</serverName> <shareName>%USERNAME%</shareName> </share> <share profileRoot="false"> <description>R: drive share, per-user home directory on samba002.</description> <windowsDrive>R:</windowsDrive> <serverName>samba002</serverName> <shareName>%USERNAME%</shareName> </share> <share profileRoot="true"> <description>X: drive share, users profile root directory.</description> <windowsDrive>X:</windowsDrive> <serverName>samba001</serverName> <shareName>profile</shareName> </share> <printer default="true"> <description>My CUPS printer 'Printer_001' on 'samba002'.</description> <serverName>samba002</serverName> <printerName>Printer_001</printerName> </printer> <printer default="false"> <description>My CUPS printer 'Printer_002' on 'samba002'.</description> <serverName>samba002</serverName> <printerName>Printer_002</printerName> </printer> </vasc>
