Archive for February, 2009

encrypt/decrypt password string

February 25, 2009

Option Explicit

Public Function Encrypt(ByVal icText As String) As String
Dim icLen As Integer
Dim icNewText As String
icChar = “”
icLen = Len(icText)
For i = 1 To icLen
icChar = Mid(icText, i, 1)
Select [...]

Future Nanotechnology Mobiles

February 7, 2009

ADs Impersonation in an ASP.NET application

February 7, 2009

Impersonate the IIS Authenticated Account or User
To impersonate the Microsoft Internet Information Services (IIS) authenticating user on every request for every page in an ASP.NET application, you must include an <identity> tag in the Web.config file of this application and set the impersonate attribute to true. For example:

<identity impersonate=”true” />

Impersonate a Specific User for All the Requests of an ASP.NET [...]

Impersonate ADs using Advapi32.dll in ASP

February 7, 2009

Well, there are many ways we can implement impersonate the Active Directory user.
following ways we can implement impersonate user:
1.  usign the LDAP query, where can use normal sql query, and pass username, password & domain name.
execute the query and get it output in recordset , which could be boolean value. 
2. Another way of impersonation is [...]

ActiveDirectory Security Authentication

February 4, 2009

Here you go…. Ads Authentication
Normaly, Most of  our applications are form based authentication, since there are not much secure authenticate.. So, we are moving to the AD level authentication.
For more secure point of view, our AD user can use the username and pwd for our application as similar to the machine, email and internal applications [...]