nextcloud / nextcloud/server

Adding External Storage (SMB/CIFS) by using UNC path from LDAP attribute

Open
#35,274 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: external storage feature: ldap
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
I have multible users which have their home directories located on different SMB/CIFS servers. The location of their home directories is stored as UNC path in a LDAP attribute. Right now the External Storage GUI has three separate text fields for 'server', 'share' and 'folder path', while the LDAP attribute has it 'all in one' like "\\server\share\path\to\folder". I know that I can use $user and $home variables but I can't use them with a full UNC path.

Describe the solution you'd like

  1. Ability to add external storage (SMB/CIFS) using a UNC path
  2. Ability to map the LDAP attribute containing the UNC path to a variable like "$path" or "$unc"

Describe alternatives you've considered
Ability to split UNC path into 'server', 'share' and 'folder path' parts and store them in new, separate variables.

Additional context
Already consulted Google and searched in the issues of this repository, but I didn't find anything like this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names Nextcloud's External Storage SMB/CIFS configuration and LDAP attribute mapping, but no files or tests. Start by locating the code for SMB/CIFS storage fields and LDAP-derived variables; done means accepting a complete UNC path and making the mapped LDAP value usable in that configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.