TeamCity SSH-Exec Build step with password from parameter - ssh

I have my build with SSH-Exec Build step (or SSH deployer), which requires username and password in its configuration to connect.
The problem I faced is that username can be provided by a parameter (so I can ask user when triggering build for his username) but I cannot do the same with password (it is masked and parameters reference is not supported in this field).
How can I configure a SSH-Exec Build step so password is taken from parameter?
(I'm aware of other then password auth methods, but I like explicitly ask the one who runs it for password to confirm he is in charge to run it).

You can enter a password parameter into the password field to use a parameter. It still masks the value so it feels a little weird but it works.

Related

LDAP's user authentication test in linux scripting

I want to use LDAP user's credential in one of my Linux scripts, in which I want to take user name and password and want to test the authentication.
I have used ldapsearch command to check the user's name validation and now want to check the same for the password.
Is there any command I can use to check this?
For clarification, are you looking to take a username and password as input from the user in your script and test them against an LDAP server? If that's the case, you could try authenticating against the LDAP server with the username/password and just see if it works.

TeamCity, KotlinDSL: how to pass FTP password

Recently I bumped into a situation where our TeamCity build config(s) should be composed by the given business logic, not by hand. Kotlin DSL does match our needs perfectly well so I did a .KTS script quite quickly. The only issue I have so far is FTP uploader step, namely the password parameter. All my attempts to put a password a ended with FTP 503 error.
Like this:
param("jetbrains.buildServer.deployer.username", "abc")
param("jetbrains.buildServer.deployer.password", "secret-password")
or like that (as I googled out that non-secure password parameter is obsolete):
param("jetbrains.buildServer.deployer.username", "abc")
param("secure:jetbrains.buildServer.deployer.password", "secret-password")
If I put the password manually in TeamCity and examine generated DSL then, I see the password is somehow secured:
param("secure:jetbrains.buildServer.deployer.password", "zxx5a3133fc69ef3252") <- "abc" password
param("secure:jetbrains.buildServer.deployer.password", "zxx4469c7c25073dd9f") <- "123" password
What is the encoding/encryption used here? Any clue how to pass an arbitrary password (ideally, via %parameter%) in Kotlin DSL scripts?
When you need to add a password into the versioned settings not via TeamCity UI (for example, adding settings with Kotlin-based DSL), you will need to add the password to TeamCity and get the corresponding token to use in the settings. The token can be generated via the "Generate Token for password" action available in the Project | Actions menu.
At this time passwords are not inheritable by projects hierarchy. If a setting in a project (a VCS root, OAuth connection, cloud profile) requires a password, the token generated for this password can be used in this project only. For instance, it is not possible to take a generated token and use it ain a similar setting in a subproject. A new token should be generated in this case.If you need to use a secure value in the nested projects, consider adding a password parameter with the secure value and using a reference to the parameter in the nested projects.
other way how to generate the token is
mvn -Dtext="mysecret" org.jetbrains.teamcity:teamcity-configs-maven-plugin:scramble

SecKeychainFindInternetPassword Prompt

I'm using SecKeychainFindInternetPassword to retrieve the proxy username and password from the Keychain Access. The app it's an updater, it looks for a new version. If the user is using a proxy I need the username and password (if there is one). The code is working but it shows a prompt asking to allow reading the key (it's an updater I do not want a prompt). The app already has administrator permissions to run.
The question is... Is there a parameter for SecKeychainFindInternetPassword to avoid the prompt or there is another function that returns the Keychain without the prompt?
Thanks,
Fiury
This likely means that you haven't signed the app with the same key as the previous app. Generally if the app has the same signing key, it will inherit the predecessor's permissions, but will not otherwise.

LDAP verify a password outside of code

I have an LDAP error in c# code talking about an invalid customers username / password.
I need to confirm if the password is in fact correct, or the way I have manipulated the users DN to remove the escape characters has caused the user to be unknown.
I'm not that familiar with domains and how that fits in with windows, but I have access to some free LDAP browsers e.g. http://www.ldapbrowser.com/ or can download some other software but I need to validate a password with it somehow.
Any ideas how?
The "ldapbrowser" should work.
We prefer the http://directory.apache.org/studio/
What is the error code?
I assume you are using AD?
We also have some help with AD and LDAP
See my reply to the following thread:
LDAP - How to check a username/password combination?
If you need to only verify username and password, The LDAPWhoAmI Extended Operation will work (either in a custom test script, or via the dedicated binary 'ldapwhoami').
I hope this helps...
Max

Login error after password change in Salesforce IDe

I use Salesforce IDE (standalone).
I had to change my SF password, and from that moment, when I start the IDE, I get a login error, and telling me I need to call from the API: reset password.
I don't understand what needs to be done, as there is no setting in the IDE for password.
Do I need to call reset API in my apexclass? this seems weird.
Thansk
Your Force.com project has your outdated password associated to it. You can either delete the project and create a new one (which would require you to specify the new password), or change your password on the current project by right-clicking on the project in the Package Explorer and going to Properties. You should see something similar to the screenshot below, where you can enter your new password and security token, if necessary.