Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove smb_mount module and docs #1819

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading