Skip to content

Commit

Permalink
Merge pull request #1819 from UlrichB22/fix_1815
Browse files Browse the repository at this point in the history
remove smb_mount module and docs
  • Loading branch information
RogerHaase authored Dec 7, 2024
2 parents b421b53 + 898674d commit 905a158
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 142 deletions.
36 changes: 0 additions & 36 deletions docs/admin/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -671,41 +671,6 @@ Example logging output::
log output. Make sure you only use this for testing only and delete the logs when
done.

SMBMount
--------
SMBMount is no real authenticator in the sense that it authenticates (logs in)
or deauthenticates (logs out) users. It instead catches the username and password
and uses them to mount a SMB share as this user.

SMBMount is only useful for very special applications, e.g. in combination
with the fileserver storage backend::

from moin.auth.smb_mount import SMBMount

smbmounter = SMBMount(
# you may remove default values if you are happy with them
# see man mount.cifs for details
server='smb.example.org', # (no default) mount.cifs //server/share
share='FILESHARE', # (no default) mount.cifs //server/share
mountpoint_fn=lambda username: '/mnt/wiki/%s' % username, # (no default) function of username to determine the mountpoint
dir_user='www-data', # (no default) username to get the uid that is used for mount.cifs -o uid=...
domain='DOMAIN', # (no default) mount.cifs -o domain=...
dir_mode='0700', # (default) mount.cifs -o dir_mode=...
file_mode='0600', # (default) mount.cifs -o file_mode=...
iocharset='utf-8', # (default) mount.cifs -o iocharset=... (try 'iso8859-1' if default does not work)
coding='utf-8', # (default) encoding used for username/password/cmdline (try 'iso8859-1' if default does not work)
log='/dev/null', # (default) logfile for mount.cifs output
)

auth = [....., smbmounter] # you need a real auth object in the list before smbmounter

smb_display_prefix = "S:" # where //server/share is usually mounted for your windows users (display purposes only)

.. todo::

check if SMBMount still works as documented


Transmission security
=====================
Credentials
Expand Down Expand Up @@ -1381,7 +1346,6 @@ Features:
- with 1 revision
- with as much metadata as can be made up from the filesystem metadata
+ directories will show up as index items, listing links to their contents
* might be useful together with SMBMount pseudo-authenticator

.. _namespaces:

Expand Down
106 changes: 0 additions & 106 deletions src/moin/auth/smb_mount.py

This file was deleted.

0 comments on commit 905a158

Please sign in to comment.