credentials

Powershell job with alternate credentials from Octopus Deploy

流过昼夜 提交于 2020-01-02 04:45:46
问题 I've got an Octopus Tentacle running a deploy script. The tentacle is running as the LocalSystem account. Inside the script, I'm able to do pretty much everything I need, aside from some archive bit. The archive needs to be done under different domain credentials because it's on a network share. The frustrating this is that the code below works locally, but when run off the tentacles, it fails with the error ----------------------------------------------------[ Backup Nupkg ]-----------------

ASP.Net application executing powershell scripts as IIS_USR

非 Y 不嫁゛ 提交于 2020-01-02 03:50:27
问题 I am building an asp.net mvc application which will operate as a wrapper for a number of powershell scripts we've written to manage day to day tasks (with the end goal of making it easy for a non technical person to use the scripts). I've managed to get the scripts executing nicely: var ctx = System.Web.HttpContext.Current; var file = ctx.Server.MapPath("~/Content/Powershell/psStoreLive.ps1"); #activate a store var shell = PowerShell.Create(); shell.AddCommand(file); shell.AddArgument(o

git clone: Authentication failed for <URL>

不想你离开。 提交于 2020-01-02 02:06:28
问题 Trying to access private corporate tfs. They gave me access by giving appropriate rights to windows user (domain\login). I'm fine with accessing web interface of tfs, browse repository and stuff. But when I try to run git clone https://tfs.somehostname.com/tfs/somefolder/_git/therepository It fails with Cloning into 'therepository'... fatal: Authentication failed for 'https://tfs.somehostname.com/tfs/somefolder/_git/therepository/' Tried with home pc without corporate network stuff - same

Working with jenkins credentials

杀马特。学长 韩版系。学妹 提交于 2020-01-02 00:49:24
问题 I want to know how to Create the credentials that can be used by Jenkins and by jobs running in Jenkins to connect to 3rd party services. 回答1: You should specify which 3rd party service you will work on. Below is an example of credentials with bitbucket I am now working with Jenkins ver. 1.568. By default, there's Credentials feature. So, if you want to add a credential, just click on Add Credentials . For example, I'd like to add SSH Username with password , so I can use it in checking out

Checking Http Status Swift4

感情迁移 提交于 2020-01-01 19:55:37
问题 I'm a bit confused about credentials and HttpStatus. I'm making a login page in Swift 4/XCode9, that connects to an api. Here is what I do when the login button is tapped: @IBAction func loginTapped(_ sender: Any) { let loginString = String(format: "%@:%@", usernametext.text!, passwordtext.text!) let loginData = loginString.data(using: String.Encoding.utf8)! let base64LoginString = loginData.base64EncodedString() var Base = base64LoginString let url = URL(string: "SOME URL")! var request =

Check if PasswordVault/credential manager has app data at load

喜夏-厌秋 提交于 2020-01-01 09:59:55
问题 Hey I'm using PasswordVault for storing user credentials in my windows 8 app. What I want the app to do on loading is check to see if the PasswordVault/credential manager already has a stored value for my app. if it don't don't I want it to stay on the page so the user can login, but if the credentials are already there then I would like it to go straight to page 2. I tried using the following code: private Windows.Security.Credentials.PasswordCredential GetCredentialFromLocker() { Windows

Displaying a V2 Credential Provider on 'Other user' tile

久未见 提交于 2020-01-01 09:46:13
问题 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

Invoke Powershell command from C# with different credential

一曲冷凌霜 提交于 2020-01-01 05:39:28
问题 I need to execute a couple of powershell command from C#, and I'm using this code Runspace rs = RunspaceFactory.CreateRunspace(); rs.Open(); PowerShell ps = PowerShell.Create(); ps.Runspace = rs; ps.AddCommand("Add-PSSnapin").AddArgument("Citrix*"); ps.Invoke(); // other commands ... This works correctly but now a user without sufficient rights to use powershell should execute this application. Is there a way to execute powershell code with different credentials? I mean something like this

git: osxkeychain credential helper silently fails to remember username/password

左心房为你撑大大i 提交于 2019-12-31 20:30:06
问题 This page and many like it gives instructions for setting up the osxkeychain credential helper with git. I've followed these instructions; everything seemed to work fine. I can see that my username and password in the Keychain Access application are correct and that git-credential-osxkeychain has access to the github.com record. When I type git config -l I can see the entry credential.helper=osxkeychain as well as correct user.name and user.email entries. When I run git credential-osxkeychain

Pass Credentials to WMI Call in VBScript

帅比萌擦擦* 提交于 2019-12-30 09:04:27
问题 I have VBScript inside a HTA getting the ping status from a local WMI call.. I also have a function to get the last reboot time of the remote pc.. Function GetReboot(strComputer) Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\cimv2") Set colOperatingSystems = objWMIService.ExecQuery _ ("Select * from Win32_OperatingSystem") For Each objOS in colOperatingSystems dtmBootup = objOS.LastBootUpTime dtmLastBootupTime = WMIDateStringToDate(dtmBootup) dtmSystemUptime = DateDiff