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

Support connection urls to make it easy to pull all parameters from a database or simple value (String) #4

Open
codesplode opened this issue Jun 3, 2017 · 0 comments

Comments

@codesplode
Copy link

I wanted an easy way to make a mapping, or at least store all the connection info in the database for an ssh connection and dynamically make the connections. I have gone as far as making a function for parsing ssh urls into the appropriate components for the tag, including a url parameter for the path to a key file, etc. This would be useful in making resource (mapping) support in Lucee supporting ssh with keys.

My function accepts a string, such as: "ssh://username:password@domain/path?key=pathToPublicKeyFile" and parses the components into a structure matching the cf_ssh tag attributes for jsch. You can then pass this structure to the tag and the connection is made. I would love to make this work as a resource (mapping) in lucee later.

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

1 participant