Change impersonation in ASP.NET





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

5
Date Submitted Tue. May. 29th, 2007 5:57 PM
Revision 1
Beginner ashraf_eme
Tags "ASP.NET 2.0" | "CSharp" | Fibonacci
Comments 0 comments
That is, after two starting values, each number is the sum of the two preceding numbers. The first Fibonacci numbers , also denoted as Fn, for n = 0, 1, … , are:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811…
this is One line function to get the sequance.
7
Three little functions to return the Windows Identity, The Envoronment Identoty and the Environment Domain.
5
Date Submitted Fri. Jan. 26th, 2007 1:54 AM
Revision 1
Scripter i_kenneth
Tags "CSharp" | "impersonation" | "security"
Comments 0 comments
With this simple class you can run som code with others user accounts.
How to use:

// ...some code
using(Impersonator user = new Impersonator("domain", "user", "pswd"))
{
// This run with new credentials.
}
// ... more code
6
Date Submitted Sun. Sep. 24th, 2006 5:23 PM
Revision 1
Helper kahotep
Tags "authentication" | "ldap" | "mysql" | "php"
Comments 1 comments
The following program was written for my company's time keeping system which utilizes an LDAP database for authentication and a MySQL database for time-keeping, account access control, etc.

If a user has >= 5 unsuccessful logins, it locks the account for 5 minutes. Once a successful LDAP bind has occured, the $_SESSION vars are set and the authorization process is bypassed until the user logs out or the session expires.
-8
Date Submitted Fri. Mar. 10th, 2006 9:29 AM
Revision 1
Helper ses5909
Tags "ASP.NET 2.0" | C | VB.NET
Comments 2 comments
Databinding in asp.net 2.0 is takes very few lines of code.
-7
Date Submitted Fri. Mar. 10th, 2006 9:32 AM
Revision 1
Helper ses5909
Tags "ASP.NET 2.0" | C | VB.NET
Comments 2 comments
Databinding in asp.net 2.0 takes very few lines of code. This example shows how to bind a CheckBoxList using a SqlDataSource.
4
Date Submitted Sat. Apr. 22nd, 2006 11:17 AM
Revision 4
Beginner Utsawin
Tags "ASP.NET 2.0" | combinations | factorials | math | permutations
Comments 3 comments
Go easy on me, my first snippet - plus I am new to VB.NET 2.0... with only basic knowledge of classic VB... Just want to mention that the Permutations function is not actually mine - found it online... (credit where credit's due)

Fairly simple stuff, but had me pulling my hair out - Even Excel has a COMBI function out of the box!