~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/config/more_samples/smb_wikiconfig_snippet

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
5
 
 
6
    from MoinMoin.auth.smb_mount import SMBMount
 
7
 
 
8
    smbmounter = 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
 
21
    )
 
22
 
 
23
    auth = [....., smbmounter] # you need a real auth object in the list before smbmounter
 
24
 
 
25
    smb_display_prefix = u"S:" # where //server/share is usually mounted for your windows users (display purposes only)
 
26