1
# This is a sample configuration snippet that shows how to use the smb
2
# mount plugin. SMBMount is only useful for very special applications
3
# (and requires more code to be useful).
4
# If you don't understand it, you don't need it.
6
from MoinMoin.auth.smb_mount import SMBMount
9
# you may remove default values if you are happy with them
10
# see man mount.cifs for details
11
server='smb.example.org', # (no default) mount.cifs //server/share
12
share='FILESHARE', # (no default) mount.cifs //server/share
13
mountpoint_fn=lambda username: u'/mnt/wiki/%s' % username, # (no default) function of username to determine the mountpoint
14
dir_user='www-data', # (no default) username to get the uid that is used for mount.cifs -o uid=...
15
domain='DOMAIN', # (no default) mount.cifs -o domain=...
16
dir_mode='0700', # (default) mount.cifs -o dir_mode=...
17
file_mode='0600', # (default) mount.cifs -o file_mode=...
18
iocharset='utf-8', # (default) mount.cifs -o iocharset=... (try 'iso8859-1' if default does not work)
19
coding='utf-8', # (default) encoding used for username/password/cmdline (try 'iso8859-1' if default does not work)
20
log='/dev/null', # (default) logfile for mount.cifs output
23
auth = [....., smbmounter] # you need a real auth object in the list before smbmounter
25
smb_display_prefix = u"S:" # where //server/share is usually mounted for your windows users (display purposes only)