Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow domain to be specified for SMB #18473

Merged
merged 2 commits into from
Sep 16, 2015
Merged

Allow domain to be specified for SMB #18473

merged 2 commits into from
Sep 16, 2015

Conversation

RobinMcCorkell
Copy link
Member

This adds an additional field in the SMB storage backend, 'Domain', which when specified is prepended to the username in the format domain\username before being handed off to the storage implementation.

This was implemented within the backend logic instead of directly in the SMB class, since these sort of pre-mounting parameter mangling is the usecase for the backends, and such logic shouldn't be in the mounting implementation.

Fixes #13407, fixes #17480

cc @icewind1991 @PVince81 @MorrisJobke @DeepDiver1975

@karlitschek
Copy link
Contributor

makes sense 👍

@PVince81
Copy link
Contributor

I agree with the code, but it seems it breaks the windows smb test

@RobinMcCorkell
Copy link
Member Author

@PVince81 I don't know why that would happen, the Windows SMB tests do not hit the domain logic at all, ever. Hopefully the retest will be all green. Please re-review?

cc @icewind1991

@RobinMcCorkell
Copy link
Member Author

Well, CI still seems broken. The good news is, since the linked issues are classed as bugs, this can be merged after feature freeze. But it would be nice to get some reviewers cc @icewind1991 @DeepDiver1975 @PVince81

@PVince81
Copy link
Contributor

Does this need any migration logic to extract the domain part from user names, in case it was added in that field already before ?

@RobinMcCorkell
Copy link
Member Author

@PVince81 None at all, the domain can still continue to be specified as part of the username, but this approach also works with session credentials where the username cannot be manually set.

@PVince81
Copy link
Contributor

👍 then

@PVince81
Copy link
Contributor

@DeepDiver1975 force push to make retrigger scrutinizer ?

@DeepDiver1975
Copy link
Member

@DeepDiver1975 force push to make retrigger scrutinizer ?

no push please - not for scrutinizer

DeepDiver1975 added a commit that referenced this pull request Sep 16, 2015
Allow domain to be specified for SMB
@DeepDiver1975 DeepDiver1975 merged commit 9d49e04 into master Sep 16, 2015
@DeepDiver1975 DeepDiver1975 deleted the smb-workgroup branch September 16, 2015 16:17
@RobinMcCorkell
Copy link
Member Author

@mmattel To be honest, I think with all the changes the documentation for the admin storages GUI will have to be nearly completely rewritten. I'll get to work on it some time this or next week

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SMB-with OC-login not working in 8.10 SMB_OC not passing domain through to samba share auth
5 participants