credentials

How do I pass credentials to a machine so I can use Microsoft.Win32.RegistryKey.OpenRemoteBaseKey() on it?

我的梦境 提交于 2019-11-27 08:42:16
This .NET API works OK if I'm trying to open the Registry in a machine that's in the same domain as I am (and my logged-on user has admin rights on the target machine). It gets tricky if it's an out-of-domain machine with a different, local administrative user (of whom I do have the password). I tried to use WNetUseConnection() (which has served me well in the past in situations where what I wanted was to read a remote disk file) prior to calling OpenRemoteBaseKey(), but no dice -- I get an access denied exception. Clearly, I must pass credentials some other way, but how? What I've used

Pass Windows credentials to remote https WCF service

有些话、适合烂在心里 提交于 2019-11-27 07:23:31
问题 I need some help, I'm trying to pass windows credentials to a WCF service. In the IIS only Windows authentication is enabled for those service and runs over https. The server side config is: <system.serviceModel> <protocolMapping> <add scheme="https" binding="basicHttpBinding" bindingConfiguration="httpsBinding"/> </protocolMapping> <bindings> <basicHttpBinding> <binding name="httpsBinding"> <security mode="Transport"> <transport clientCredentialType="Windows"/> </security> </binding> <

GoogleAccountCredential name is null despite calling setSelectedAccountName (Android 6.0)

孤人 提交于 2019-11-27 06:46:50
问题 I've created an endpoint using a secured backend and have been using it since March on an app I'm building (source docs here). I recently installed the latest version to my Android 6.0 device and an odd error popped up (it works perfectly on 4.2.2 & 5.1). The specific error is: IllegalArgumentException: the name must not be empty: null Which I traced to an error with the credential, you can see the code below. On Android 6.0 account may be "user@gmail.com" but the string 'test' turns out to

GitHub: Separate credentials for two accounts on Windows

眉间皱痕 提交于 2019-11-27 06:06:28
问题 I recently created a second GitHub account two separate my work and my private projects (before, I only had the work account). I use https in combination with the Windows credential storage. To automatically select the correct account, I store my private account info in ~/.gitconfig and the work account info in ~/work/.gitconfig as suggested here. Unfortunately, when I try to push changes in my private repositories, I get the following error: $ git push remote: Permission to privateuser

Protect string constant against reverse-engineering

二次信任 提交于 2019-11-27 05:48:48
问题 I have android application that has hard coded (static string constants) credentials (user/pass) for sending emails via SMTP. The problem is that .dex file in .apk can be easily reverse-engineered and everybody can see my password. Is there a way how to secure these credentials, while i will still be able to use them in my classes? 回答1: We can use "jni module" to keep 'Sensitive Hardcoded Strings' in the app. when we try to reverse engineer APK file we get lib folder and .so files in

android fileupload with https and Credentials

☆樱花仙子☆ 提交于 2019-11-27 05:48:12
问题 i try to make a post request, witch contains a file, the problem is, i have to use ssl and the BasicCredentialprovider. The following code works for me with normal POST requests: (url is the url, nvps is the nameValuePair) DefaultHttpClient http = new DefaultHttpClient(); SSLSocketFactory ssl = (SSLSocketFactory)http.getConnectionManager().getSchemeRegistry().getScheme( "https" ).getSocketFactory(); ssl.setHostnameVerifier( SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER ); final String username

How to get access token from GoogleCredential?

佐手、 提交于 2019-11-27 05:37:10
问题 I am trying to get an access token to use the Google Play Android Developer API, and I got this far using the Google API Java Client documentation example: HttpTransport HTTP_TRANSPORT = new NetHttpTransport(); JsonFactory JSON_FACTORY = new JacksonFactory(); GoogleCredential credential = new GoogleCredential.Builder() .setTransport(HTTP_TRANSPORT) .setJsonFactory(JSON_FACTORY) .setServiceAccountId("...gserviceaccount.com") .setServiceAccountScopes("https://www.googleapis.com/auth

WCF NetTcpBinding Security - how does it work?

核能气质少年 提交于 2019-11-27 05:30:09
问题 I am encountering the following problems trying to work through the quagmire of settings in WCF... I created a WCF client-server service using a NetTcp binding. I didn't make any changes to the security settings and when running on one machine it works very nicely. However, when I ran my client from another machine it complained that the server didn't like the security credentials that were sent. I understand now that NetTCP is "secured" by default and that my client would have been passing

Storing Credentials in Credential Manager Service

蓝咒 提交于 2019-11-27 04:42:27
问题 I have some credentials (username and a password), and I cannot figure out where to store them. I heard about an application storing credentials in the Windows Credential Service, so I looked into this option. It seemed ideal. Just store sensitive information in a Windows Service, and not have to worry about storing them in your own registry key. Unfortunately, I soon found out this was not so simple. The only help I found in MSDN was in C. I then thought I must have been mistaken, but then I

Saving credentials for reuse by powershell and error ConvertTo-SecureString : Key not valid for use in specified state

被刻印的时光 ゝ 提交于 2019-11-27 04:36:27
I was doing something like described in this post to save credentials in a secured file so our automated process can use that to run remote PS scripts via Invoke-command: http://blogs.technet.com/b/robcost/archive/2008/05/01/powershell-tip-storing-and-using-password-credentials.aspx This works great when I run this under my account - password is read from encrypted file, passed to Invoke-command and everything is fine. Today, when my script was ready for its prime time, I tried to run it under windows account that will be used by automated process and got this error below while my script was