-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Mount configuration handlers for external storages #14174
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
Conversation
MorrisJobke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good 👍
…olders * BackendService (directly accessable via \OC_Server) offers registerConfigHandler * SimpleSubstitutionTrait brings reusable logic for simple string replacments * internal $user replacement mechanism was migrated Signed-off-by: Arthur Schiwon <[email protected]>
* handler registered upon OCA\\Files_External::loadAdditionalBackends event as user_ldap is loaded before files_external * new configuration field "ldapExtStorageHomeAttribute" (not in GUI yet) Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Arthur Schiwon <[email protected]>
ff71930 to
685c13e
Compare
|
rebased to resolve merge conflict |
rullzer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me but I'd like @icewind1991 to have a look as well.
|
Code and documentation seem to disagree between using looks good otherwise |
|
Thx @icewind1991, good catch, i'll fix the doc later this evening. then it also should be good to merge . |
Signed-off-by: Arthur Schiwon <[email protected]>
|
Regression: #15654 |
This introduces configuration handlers (and a registration method) for files_external. Previously, replacing of "$user" with the uid was hardcoded.
The LDAP backend was extended to take advantage of this mechanism, implementing a placeholder for "$home".
LDAP config:
External storage config example (one invalid with unreplaced placeholder, and the one valid):