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

Refactor WinRM out of CIFS? #160

Open
rveznaver opened this issue May 4, 2015 · 4 comments
Open

Refactor WinRM out of CIFS? #160

rveznaver opened this issue May 4, 2015 · 4 comments

Comments

@rveznaver
Copy link

I would like to propose a refactor of WinRM out of the CIFS package.
The current implementation is written as if WinRM is just an extension of the CIFS protocol, whereas it is a protocol with a different purpose and logic behind it (i.e. it uses a different authentication model from CIFS). I could try to do a pull request, however I would like to know if the project owners would be on board with it?
Thanks!

P.S.: I believe this is needed to cleanly implement more authentication options like #143.

@hierynomus
Copy link
Contributor

At the moment not entirely yet. The idea is that for a "complete" connection you need two parts, the execution part and the file management part.

In the case of SSH the file-copying is handled by either the SCP or SFTP protocol, whereas the execution part is not configurable (just SSH).

For the Windows world there is also not a 1-cut solution. You need WinRM or Telnet for the execution part, and CIFS for the file-management part of the connection. So they're quite intermingled.

What do you think @vpartington?

@rveznaver
Copy link
Author

Ok, if the idea is to have a "complete" connection, then couldn't the mixing and matching of protocols be handled by a lighter wrapper? For example, if you put a SSH server on a Windows machine, you could have CIFS file management with SSH remote execution and a different authentication type.

The tight coupling of the file management and execution protocols makes it quite hard to configure one part independently from the other.

@rveznaver rveznaver changed the title Refactor WinRM out of CIFS Refactor WinRM out of CIFS? May 4, 2015
@vpartington
Copy link
Contributor

Actually, the fact that file manipulation and command execution are tied so closely is something that has annoyed me for a long time already. The ability to mix and match both would indeed be nice.

Haven't gotten around to actually implementing this though, but a pull request would be welcome! :-)

Of course we'd then need to figure out how to make this backwards compatible...

@gschueler
Copy link
Contributor

+1 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants