credentials

C# and .NET 3.5 - How to launch a process using different credentials, with a hidden window, and being able to capture standard output and exit code?

孤人 提交于 2019-12-05 22:53:25
I have a Windows Service developed in C# and .NET 3.5 to perform various administrative tasks throughout our 3 domains. I've got an admin account in each domain that has the necessary rights/permissions for what this service is doing. For all the AD interactions, I can bind to AD using the correct username/password for the domain and all is good. However, I have a need now to launch an external process (robocopy) to perform some work and I cannot find any code examples anywhere for doing this in .NET 3.5. What I need to do is launch robocopy using alternate credentials in a hidden window,

Webservice.wsdl and credentials

邮差的信 提交于 2019-12-05 21:51:18
So I've got a bit of an issue I'm trying to work through. Perhaps some Flex guru could assist? I have a WebService instance that attempts to load a WSDL file from our JBoss Application Server. If I do something like this: webService = new WebService(); webService.destination = WebService.DEFAULT_DESTINATION_HTTP; webService.wsdl = "http://<removed>/services/ApiService?wsdl"; webService.loadWSDL(); everything works fine. The WSDL is loaded successfully and the application can invoke methods against the web service. The issue is when I need to add some HTTP authentication to the mix: webService

How to Implement Smart Lock for Passwords to Android Application

こ雲淡風輕ζ 提交于 2019-12-05 18:45:44
Does anyone has knowledge about Smart Lock? How does it works? I want to develop an application implementing Smart Lock for passwords in Android application. I am following https://developers.google.com/identity/smartlock-passwords/android/ . I have initialized GoogleApiClient mCredentialsApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Auth.CREDENTIALS_API) .build(); and generated instance of Credential as final Credential credential = new Credential.Builder(email) .setPassword(password) .build(); to save credentials

Getting the default credentials?

左心房为你撑大大i 提交于 2019-12-05 17:55:18
I have page A.aspx in my domain this page (in its c# codes) makes a request to another page.( B.aspx ). - which is in my domain also the whole site is in windows authentication HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create("http://mydom.com/b.aspx"); loHttp.UseDefaultCredentials = true; loHttp.Timeout = 100000; HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetResponse(); Encoding enc = Encoding.GetEncoding("UTF-8"); // Windows default Code Page StreamReader loResponseStream = new StreamReader(loWebResponse.GetResponseStream(), enc); string lcHtml = loResponseStream

401 when POSTing using HttpWebRequest (yes I used Credentials)

梦想的初衷 提交于 2019-12-05 17:47:30
I'm using HttpWebRequest to pull down XML, and POST data back to a 'WebService' and getting a 401 on the POST. When creating the requests I've added Credentials and now tried a credentials cache and setting PreAutenticate to True, still getting the 401! :( Watching the HTTP traffic on the router I set the get make an unauthenticated GET request.. it hits the 401 and then makes an authenticated GET and is allowed through. When I watch the POST I see it hit the 401... and it doesn't even try an authenticated POST. This appears only on mobile phones (compact-framework 3.5 and 2.0 on WinMobile 6.1

SVN won't cache credentials

隐身守侯 提交于 2019-12-05 17:35:40
问题 I'm using the commandline svn client (version 1.6.12, from the Ubuntu repos) and I can't seem to get it to cache my user credentials. I'm trying to access an https svn repository (something along the lines of https://subversion.FAKE.com/PROJECT). My username for this repo is different from my local username. Here's the auth section of ~/.subversion/config [auth] ### Set password stores used by Subversion. They should be ### delimited by spaces or commas. The order of values determines ### the

Running a map reduce job as a different user

只谈情不闲聊 提交于 2019-12-05 15:23:11
I have a web application which interacts with Hadoop. (Cloudera cdh3u6) A particular user operation should launch a new Map Reduce job in the cluster. The cluster is not a secure cluster, but it uses simple group authentication - so if I ssh to it as myself, I can launch MR jobs from the command line. In the web application, I'm using the ToolRunner to run my job: MyMapReduceWrapperClass mr = new MyMapReduceWrapperClass(); ToolRunner.run(mr, null); // inside the run implementation of my wrapper class : Job job = new Job(conf, "job title"); //set up stuff removed job.submit(); Currently this

Google Smart Lock dialog for saving credentials does not appear when testing

回眸只為那壹抹淺笑 提交于 2019-12-05 11:25:12
I am trying to save a user's facebook credentials to Google Smart Lock, but I am having difficulty testing. I was able to display the prompt to save once, but after I went into my saved passwords (passwords.google.com) and deleted the saved credentials, the prompt is not appearing anymore! I went into google settings and made sure to delete the app from the "never save" section, but it is still not appearing. When I call Auth.CredentialsApi.save(), it is returning with a resolution of "null" and message "The current app is blacklisted" Steven Soneff Double-check if the error message returned

Powershell job with alternate credentials from Octopus Deploy

我的梦境 提交于 2019-12-05 11:22:28
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 ]---------------------------------------------------- Storing a backup version of GeoSphere.1.2.1.1722.nupkg for the

Why put MySQL credentials outside of www directory? [duplicate]

心已入冬 提交于 2019-12-05 11:11:53
Possible Duplicate: Putting core classes above the web root - good or bad idea? I keep reading that it's a best practice to put MySQL connection credentials (whether it's a class, defines, etc..) outside of the web root (above the www folder). Why is this? If the credentials are in a .php file then it doesn't matter if the file is accessible through the browser, right? It's a preventative measure. If someone accidently disables php evaluation in your apache server or changes an apache setting in an .htaccess file, the file could be served up like any plain text file. Or, if you accidently