credentials

Unix socket credential passing in Python

泪湿孤枕 提交于 2019-12-04 08:18:08
问题 How is Unix socket credential passing accomplished in Python? 回答1: Internet searches on this topic came up with surprisingly few results. I figured I'd post the question and answer here for others interested in this topic. The following client and server applications demonstrate how to accomplish this on Linux with the standard python interpreter. No extensions are required but, due to the use of embedded constants, the code is Linux-specific. Server: #!/usr/bin/env python import struct from

How to specify user credentials for a click-once application?

百般思念 提交于 2019-12-04 08:16:49
问题 For a regular .exe file i can always right click and select "run as..". How can i run a Click-Once application under different credentials in a similar way? I am talking about the application itself, not the installer. 回答1: The answer really is no, you shouldn't do this. ClickOnce applications are installed under the user profile and belong only to that user. THey will not and do not work as an all-user installation. Also note that if you double-click on the [exe] file (the location of which

Displaying a V2 Credential Provider on 'Other user' tile

左心房为你撑大大i 提交于 2019-12-04 07:48:21
I am trying to write a custom Windows credential provider. I have downloaded the V2 credential provider sample and I am able build, register and use it. For testing I have set up a hyper-v Windows 8.1 instance and joined a windows test domain. However, the custom credential provider is only displayed on user tiles, not on the 'Other user' tile. The documentation ( Credential Provider Framework Changes in Windows 8.docx ) provides a small snippet: // Gets the SID of the user corresponding to the credential. HRESULT CSampleCredential::GetUserSid(__deref_out PWSTR *ppszSid) { *ppszSid = nullptr;

MSBuild calling Powershell with credentials

一世执手 提交于 2019-12-04 06:28:09
问题 I'm trying to deploy a windows service using an MSBuild script that runs a Powershell command. The MSBuild script deploys the files I need and the PowerShell script will uninstall and reinstall the windows service using this command: Invoke-Command -ComputerName IPAddressHere -FilePath "C:\theScriptFileName.ps1" -credential "TheUserName" Using an IP address (which I need to because of different domains) I need to use credentials. The problem is that it prompts for a password, which won't work

How to authenticate with a Google Service Account in Jenkins pipeline

一笑奈何 提交于 2019-12-04 05:32:26
I want to use gcloud in Jenkins pipeline and therefore I have to authenticate first with the Google Service account. I'm using the https://wiki.jenkins.io/display/JENKINS/Google+OAuth+Plugin which holds my Private Key Credentials. I'm stuck with loading the credentials into the pipeline: withCredentials([[$class: 'MultiBinding', credentialsId: 'my-creds', variable: 'GCSKEY']]) { sh "gcloud auth activate-service-account --key-file=${GCSKEY}" } I also tried it with from file, but without luck. withCredentials([file(credentialsId:'my-creds', variable: 'GCSKEY')]) { The log says: org.jenkinsci

Manage remote service using alternate credentials

穿精又带淫゛_ 提交于 2019-12-04 05:15:46
问题 -- Original Post -- I am trying to manage (start/stop) a windows service on a remote machine using alternate credentials. I know that I can use the ServiceController class to manage a service using my current credentials: Dim sc As New ServiceController(ServiceName, ComputerName) but I want to use different credentials. The other classes I am using (DirectoryEntry and System.Management) both support using alternate credentials... Help would be greatly appreciated. -- Working Code (built based

Jenkins : use withCredentials in global environment section

岁酱吖の 提交于 2019-12-04 04:39:17
I have a Jenkins pipeline with multiple stages that all require the same environment variables, I run this like so: script { withCredentials([usernamePassword(credentialsId: 'COMPOSER_REPO_MAGENTO', passwordVariable: 'MAGE_REPO_PASS', usernameVariable: 'MAGE_REPO_USER')]) { def composerAuth = """{ "http-basic": { "repo.magento.com": { "username": "${MAGE_REPO_USER}", "password": "${MAGE_REPO_PASS}" } } }"""; // do some stuff here that uses composerAuth } } I don't want to have to re-declare composerAuth every time, so I want to store the credentials in a global variable, so I can do something

How to use IE proxy server settings and its credentials in .Net Application

邮差的信 提交于 2019-12-04 04:23:20
How to use the saved proxy settings and credentials as default for HttpWebRequests? The proxy settings are accessible and used but not the credentials: IWebProxy proxy = WebRequest.GetSystemWebProxy(); proxy.Credentials = CredentialCache.DefaultNetworkCredentials; WebRequest.DefaultWebProxy = proxy; Are there any permissions on using the credentials? It works with passing the credentials via NetworkCredential instance: proxy.Credentials = new NetworkCredential("username", "password"); But I would like to use the saved ones from the operating system/IE. Edit: I am using a third party lib

Git: Remove credentials from repository

你说的曾经没有我的故事 提交于 2019-12-04 03:50:18
At first: This is (hopefully) no duplicate of this or this . The current status: I committed a file with credentials for an internal database to my Git repository. This was fine, as I used it only alone. Then my group started to clone, push and pull around in this project. We now have several Git repositories (one central and some developers). The problem: We now want to give public access to the source code, and to the Git repository or at least let Git manage the details of others contributing to the code. The question: What would be a good strategy to a) remove the file with the credentials

Pass password into -credential

安稳与你 提交于 2019-12-04 00:31:47
I am trying to login into a computer. I have been playing with various versions and determined that my past questions were when I didn't know what I was really trying to do. I discovered that I was on the incorrect PC when running the script. When I now run the script on the correct PC, the following code requires me to enter the password. gwmi win32_service –credential domain\username –computer PC# Is there a way with my current script above, to enforce the username and password without user entry? I have to do this for 100s of PCs so I want to loop through all of them without the user having