# NOTE - very little of this has been tested; this is just # how I reckon it should work ... <IfModule mod_smbauth.c> # this defines defaults for the "main" server which are used if # not specified in the directory context. the bdc can be left # out (assuming my other patches make it in the source) # this section is not necessary if you are only going to use # smbauth within a virtual server (I don't know how to make it # look up the globals here, from within a virtual server - TODO) SMBAuth_Global_Domain MATRIX SMBAuth_Global_PDC trinity #SMBAuth_Global_BDC <none> SMBAuth_Global_Groups /var/apache2/auth/matrix-groups </IfModule> ... <Directory ...> ... <IfModule mod_smbauth.c> AuthType Basic AuthName "My little ole authenticator" SMBAuth on SMBAuth_Domain OTHERDOM SMBAuth_PDC od_pdc SMBAuth_BDC od_bdc SMBAuth_Groups /var/apache2/auth/otherdom-groups Require user fred Require group ole_auth_users </IfModule> <IfModule !mod_smbauth.c> Order allow,deny deny from all </IfModule> </Directory> ... <VirtualHost ...> ... <IfModule mod_smbauth.c> # this defines defaults for the current virtual server which are # used if not specified in the directory context. the bdc can be # left out (assuming my other patches make it in the source) SMBAuth_Global_Domain MATRIX SMBAuth_Global_PDC trinity #SMBAuth_Global_BDC <none> SMBAuth_Global_Groups /var/apache2/auth/matrix-groups </IfModule> ... <Directory ...> ... <IfModule mod_smbauth.c> AuthType Basic AuthName "My little ole authenticator 2" SMBAuth on Require group ole_auth_2_users </IfModule> <IfModule !mod_smbauth.c> Order allow,deny deny from all </IfModule> </Directory> ... </VirtualHost>