 |
|
 |
Hi Faisal,
Firstly Well Done, You did the great job!!!
I am supporting one application made in classic asp
We used the same loginAdmin.dll for windows authentication.
The code was working fine previously when there is only one domain.
Now there are two domains. Say 'X' & 'Y' and new users are get added to Y domain.
The issue is, users from Y domain are not able to access the application.
Could you please help me on this
Thanks in advance
|
|
|
|
 |
|
 |
Faisal,
Thank you very much for this piece of outstanding quality code!
Now I am able to complete my login system with this simple approach.
The many users demanded me that they should use the same user/password that they login on their windows systems, as they don't like to remember many different passwords...
Thanks to you, now I can use this solution to deliver them the same login procedure as they use when they start the computer!
Well done!
|
|
|
|
 |
|
 |
Does anyone know of a way to search AD only from a specific OU with this code?
|
|
|
|
 |
|
 |
do we have a workaround on this? 1 wrong entry of password locks out a network account.
Do what can't be Done. Just do it.
|
|
|
|
 |
|
 |
I am trying to use the code in .net (c#)
<%@ Import namespace="prjLogin" %>
Dim objLogon As LoginAdmin.ImpersonateUser
Dim oUser As prjLogin.clsDomainLogin
getting the error
Type 'LoginAdmin.ImpersonateUser' is not defined.
Type 'prjLogin.clsDomainLogin' is not defined.
Please help
|
|
|
|
 |
|
 |
this code is for ASP Classic. .NET aspx has its built in functionality for querying active directory
Do what can't be Done. Just do it.
|
|
|
|
 |
|
 |
Hi Faisal,
If i enter no username and password and click login - i get login success?
If i enter a genuine and working user name and password, i get "bad password".
What am i doing wrong?
Thanks
Graeme
|
|
|
|
 |
|
 |
For the case of empty username, add this piece of code:
strUser = Request("oUser")
If Len(strUser)=0 Then
' replace the empty string with a username that doesn't exist in the AD
strUser = "no_name"
End If
strPassword = Request("oPassword")
or, you could do a better solution: if the strUser is empty, then do not check the AD for Login (do not call BindObject).
|
|
|
|
 |
|
 |
Faisal,
You are the man! This code is absolutely what I have been looking for all week. Thank you for posting it and letting us all steal it and take credit for it!
If you are ever in Salt Lake City, UT and need a place to stay or night of hard drinking, it's on me!
Excellent Work,
Manoj R. Sharma
|
|
|
|
 |
|
 |
Hello Faisal,
i tried the code and implement it in our development server running in windows XP. no hassle and all. but when i deployed it to our staging server which runs in WINDOWS 2003 SERVER 64-bit, we cannot login at all.
there are two groups or domains that access our application. those people that belong to ap.enpad.org domain and na.enpad.org domain
we, from ap.enpad.org can access and login successfully on the application that resides in the WINXP server that also belongs to "ap.enpad.org workstations" but people from the na.enpad.org cannot access it or logon to the application although we belong to the same intranet network.
when i deployed the application to the staging server that belongs to "na.enpad.org servers", people from both groups (na.enpad.org and ap.enpad.org) cannot login at all.
is there an issue with the WEB SERVER Or Operating System?
by the way, i put both dll files in C:\Windows\System32
and i register both using Regsvr32
|
|
|
|
 |
|
 |
I have not tested my code on Windows 2003 64-bit OS.
Try putting the dlls in \System32 as well as \SysWow64 and then register from both locations.
I hope this should work.
Do let me know with the outcome.
regards,
-Faisal
|
|
|
|
 |
|
 |
I now made it work.
when i do an analysis on the problem it seems that users that belong to "na.enpad.org" can only login in the machine that belong to the same network or domain. those belong to "ap.enpad.org" should login to a machine that belongs to the "ap" network.
what i did is deploy it in two machines, one for AP and one for NA. but they share the same database. i am so clever (",)
but what i really want is just deploy it in a single machine since we will have users from china and europe and they will have both another domain.
do you have an upgrade on your libraries? =)
Do what can't be Done. Just do it.
|
|
|
|
 |
|
 |
Hi friends ,i am calling a function in the Stored Procedure so i am getting the Error
Error is "Only functions and extended stored procedures can be executed from within a function."
ALTER FUNCTION dbo.TM_GET_MaxPaymentReceiptNo
(
@ReceiptAllocationId int
)
RETURNS VARCHAR(20)
AS
BEGIN
DECLARE @ReceiptNo AS VARCHAR(20)
DECLARE @SQL AS NVARCHAR(1000)
SET @SQL = 'SELECT @ReceiptNo = MAX(ReceiptNo)
FROM PaymentVoucher
WHERE ReceiptAllocationId = @ReceiptAllocationId'
EXEC sp_executesql @SQL, N'@ReceiptAllocationId INT', @ReceiptAllocationId
RETURN @ReceiptNo
END
|
|
|
|
 |
|
 |
Hi!,
I want to know how to obtaining, using ASP with active directory, the amount on incorrect attempts that can make a user before its account is blocked. I want to use ADSI. Can somebody help me?
Thank you very much!!!!
Fernando
|
|
|
|
 |
|
 |
Simply ask this question to your AD admin.
|
|
|
|
 |
|
 |
I want to know, if anybody test the ImpersonateUser in Windows server 2003 with IIS6.0 to changes the user right.
Because when i want to write data into a FoxPro database i dont't have right to do this.I seted the IWAM_machine user rights in read and write and does not work.
thanks a lot
Augusto
|
|
|
|
 |
|
 |
This is a great piece of code and was working for us for a long time. Suddenly the locall app log is full of 529 Failure Audit messages with "user name" and "domain name" as credentials and the login page for the app is one result only - BAD PASSWORD.
Any ideas, please help?
Thanks!!!
|
|
|
|
 |
|
 |
I tried your demo project on a Windows XP machine with VS 2005 installed, is that why I'm getting the following error: Server Error in '/testADlogin' Application. -------------------------------------------------------------------------------- This type of page is not served. Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure that it is spelled correctly. Requested URL: /testADlogin/login.asp
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 Peter
|
|
|
|
 |
|
 |
Error description reveals that you defined extension ASP to be forbidden instead of allowed.
Pls add it in IIS (web server) for your asp page to run.
regards,
-Faisal
|
|
|
|
 |
|
 |
Could anybody help me to discovery which ports and protocolos prjlogin uses to make AD login ?
My Server is under a Firewall on a DMZ Network, follow :
Firewall
LAN 192.168.0.1
WAN 200.230.33.2
DMZ 192.168.1.1
Server ASP ( Use PRJlogin )
DMZ 192.168.1.2
DNS = 192.168.0.15 ( My DNS Server on LAN network )
Ricardo Gimenez
|
|
|
|
 |
|
 |
I am sorry to bother you Faisal but I was hoping you could answer a couple of questions for me. I wish to use the active directory login to query as a secondary security check that the user accessing my asp pages have actually logoned on through our AD network. Then I will be using their logon name as a session variable to update specific records. However I wish to put my asp application on a separate web server but still be able to validate users against the AD network they login on initially. I have no idea of how to do this, if your code already does this or even if it is possible.
Please help
I hope I am making some sense and I would be extremely gratefully for you help.
Thank you in advance.
Jason
|
|
|
|
 |
|
 |
Jason,
It doesn't matter on which web server you put on my code. It simply should be part of the AD network which you want to access.
Pls try and let me know if you face any difficulty.
regards,
-Faisal
|
|
|
|
 |
|
 |
Hi,
Faizal this is an amazing code n quite lightweight n simple
It works just fine to me..I have a query???
Suppose i want to use this with Microsoft System Monitor(Performance monitor) wherein you can save the performance monitoring in an HTML page and lauch the HTML page to view performance counter of the server. This works fine if i double click the webpage from explorer. But when i use a URL to access this page it does not connect to the server.
like for example i call disk_space.htm if login is successfull.
if iResult = 1 then
'Response.write " Login success!"
Response.Redirect "Disk_space.htm"
This htm page should connects to the server to get the disc space parameters... but it does not show any counter...this ideally happens if we cannot login to the server...
kindly help me out with this???
Regards
Vikram.
-- modified at 1:53 Wednesday 28th June, 2006
|
|
|
|
 |
|
 |
Can you tell me the exact error msg you are receiving.
regards,
-Faisal
|
|
|
|
 |
|
 |
I was wondering if anyone has tried to return a variable from this code to show if that user has been disabled or not? If the users tried to many times I can't get a error code to come up saying that user is disabled and they must call our support center. Any help would be great. I might have to try and add ldap to odbc and pull the info from there.
Thanks
|
|
|
|
 |