credentials

CreateProcessWithLogonW() problems - Need to launch sub-processes with the same user

I have a Windows executable that is launched from within a service by calling CreateProcessWithLogonW() with a set of specfied user details. This works fine and the process starts as expected. However, when this process tries to launch other processes itself, currently just using CreateProcess() these start then die straight away - they...

Use PHPBB2 Login Credentials in my site

I'm currently using a PHPBB2 forum for a section of one of my sites, and I would like to extend this site (add new pages, scripts, etc). I would like to restrict access to these pages to the users already logged in the PHPBB2 Forum. In fact, if only members of a certain MemberGroup could access these pages, that would be great. Is th...

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?

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 al...

What is the Credentials Element in an ASP.NET Forms Authentication section?

Hi folks, i noticed that a forms authentication element has an option child element called Credentials. MSDN Online explains what it is, here. That said, i don't understand what it would be used for? So i can add in a username and password (either clear/md5/sha1) to the config file.. but how/when is it used? Is that an example of har...

How can I use TSQL to check when a user's password will expire?

With SQL Server 2005 and above, how can I check when a user's password is going to expire using TSQL? Preferably this would be done using a connection for that same user. What permissions would be required for the SQL statement to be run? ...

How long will authentication last after MapNetworkDrive/RemoveNetworkDrive

Assuming that current account has no rights to access "\server\share". If we MapNetworkDrive with admin credentials, and then RemoveNetworkDrive, would current user be able to access "\server\share"? Or the autorization will be revoked? Where can I read what happens under the hood when MapNetworkDrive/RemoveNetworkDrive called, or 'net ...

Impersonation and CredentialCache.DefaultCredentials gives HTTP 401 Unauthorized

I have an ASMX web service (on my localhost - WinXP IIS 5.1) that I call from a webclient. My webservice must consume another ASMX web service (on a Win 2003 server IIS 6.0). When I provide credentials in my webservice code in a "hard-coded" manner: engineWSE.Credentials = new System.Net.NetworkCredential("myUser", "myPass", "myDomain...

password recovery for SyBase file

I have a .db file that I think is a SyBase database file that I have been tasked with extracting data from. Looking at the file in notepad shows that the data in not encrypted (I can read text strings from it) but I don't have the username/password to convince the SyBase tools to read it. Are there any tools/procedure that just skip the...

Copy files with double credentials (windows)

Assume we have c:\DirA that can be read by User1 only, and c:\DirB that can be written by User2 only. Both credentials are know. How can I copy files from DirA to DirB directly? ...

How can I install a shared data source with no credentials in SSRS

I'm using SQL Server 2005 with Reporting Services. I have many reports installed, some using shared data sources and some not; some go to web services, some to sql server databases, and now I'm trying to connect to a DB2 database. I have successfully created a shared data source and report in Visual Studio 2005. I can pull data just fin...

"The directory name is invalid" error on Process.Start?

I am writing a launcher program, and when I go to start the process I get the "The directory name is invalid" error. Here is the code that is launching the process: Const DEBUG_ROOT = _ "Z:\Kiosk_JC\KioskSignIn.root\KioskSignIn\KioskSignIn\KioskSignIn\bin\Debug" Dim oKiosk As New System.Diagnostics.Process oKiosk.StartInfo.UserName =...

Best practices - store Twitter credentials or not?

Hey everyone, I'd like to be able to give my users the ability to display their recent tweets on their profile on my website. I have a PHP twitter wrapper and understand how to make API calls etc, but I'm just wondering how to manage the user information. What is the best practice here? I want them to be able to enter their credential...

How is a password within System.Net.CredentialCache.DefaultCredentials encrypted?

If I pass the current users credentials to a webservice by using system.net.credentialcache.defaultcredentials, on which way will the information be transfered? I don't think that it will be clear text, so the credentials have to be encrypted, but how are they? ...

HttpWebRequest over SSL with client credentials

I'm trying to use HttpWebRequest to get an https URI that requires a username and password. If I put the URI into a browser it pops up a dialog asking for credentials and then works. Using HttpWebRequest gives me a 401 Unauthorized error. The documentation for NetworkCredentials says it doesn't support SSL, but I can't find what I'm sup...

How to specify Windows credentials in WCF client configuration file

I have a WCF service using BasicHttpBinding with Windows authentication. Most clients are domain accounts and connect to the service using their default credentials. Now I want to connect to the service from an ASP.NET client that is running under a local account. I want to connect to the WCF service using windows credentials (domain\u...

Externalizing Grails Datasource configuration

Grails 1.x allows using external configuration files by setting the grails.config.locations directive. Is there a similar approach available for externalizing the database configuration in Datasource.groovy (without setting up JNDI)? It would prove helpful to be able to configure DB credentials in a simple configuration file outside the...

How do I pass the currently logged in user's credentials to a web service using Integrated Windows Auth from Perl

I am having a frustrating time trying to do something with Perl that would take a couple of lines of code in C#, namely to call a web service on a Windows server that requires Integrated Windows Authentication. The most likely candidate I've found for success is a module called LWP::Authen::Ntlm, but all the examples I've googled requir...

Accessing Windows Scheduled Task using C#

How do I change the credentials used by a scheduled task using C#.NET? ...

Using DefaultCredentials and DefaultNetworkCredentials

Hi, We're having a hard time figuring how these credentials objects work. In fact, they may not work how we expected them to work. Here's an explanation of the current issue. We got 2 servers that needs to talk with each other through webservices. The first one (let's call it Server01) has a Windows Service running as the NetworkServic...

What are the details behind the way Wordpress stores user authentication data?

First off, let me define the end goal: I'd like to Wordpress (version 2.8) to manage the authentication data/credentials and access control for a web site. Wordpress will be used for most of the site, but some pages will be built outside of the Wordpress environment. These pages should be able to use the user authenticaion data stored ...