Hi all,
I have configured Liberum Help Desk (LHD) system for NT Authentication. From what I see is the authentication is taken care by IIS and not LDH, correct me if I am wrong because, when the “Authentication Type” is set to database. It will ask for username/password after the browser asks for it. And when Authentication Type is set to NT Authentication and the IIS set to use anonymous, the LDH gives “Unable to obtain username with NT authentication”
Now my issue is I don’t want to have user type in their username and password when they already are in the network.
Also LDH is storing user information in database while it already is in AD.
Has anyone gone through this issue?
Any help is appreciated.
Thanks for such a great product.
You can find descriptions of IIS authentication in the IIS online help. NT authentication means your IIS must be configured to use windows authentication only, not anonymous.
Doug G
Thank u for the reply Doug,
Ok, my question is: when I am using NT authentication, why is LHD asking/storing user information? I am looking for the module that take care of authentication and I’d appreciate if you could guide me in to the module(s) that take care of NT authentication.
Thanks for the great product.
Ok,
I solved it using a another session variable "username" that would save NT username and will by pass all call to CheckUser if that session variable is present.
Thank you for the reply Doug.
can you post how you did this? I would like for users to not have to log in this way either
Hi kwilliams,
In the file /logon.asp, there is the "Select" statement where authentication type is dealt. In case 1 (NT Authentication) here is what i changed (line numbers are specific to my editor but offset will work :))
61-----Case 1 'NT Authentication
:
81-----If ntUserRes.EOF Then ' my comment: this is general user and not rep
now comment out lines from
82----- Dim utUpdRes, ntSidRes
to
86-----url = "register.asp?edit=1&new=1"
add the following
Session ("username") = username
in the else part, add
Session ("username") = "" 'when the user is rep this session variable will be empty.
Having said that, now everywhere "Call CheckUser(cnnDB, sid) is called replace it with
If (Session ("username") = "") then
Call CheckUser (cnnDB, sid)
End If
Remember to add
Session (“username”) = “”
In logoff.asp
This is how u start playing with code. Please keep a back up so that if u mess some where u’ll recover. You will need to change few codes in /public.asp in Header and Footer function. Let me know if this help and/or if I can help you further.
Thanks.
Can you post more detailed instructions? I am a newbie and am having trouble following where to make changes to the code? My lines numbers are exactly as yours.
Thanks
What is your email address? I can send you my entire code and you can go through it. By the mean time I would go though functions in each scripts to have a better understanding. A good starting point is /logon.asp
I'm still puzzled. I've downloaded, viewed, and put the code of your "logon.asp" file in the folder with the help desk files. I've set IIS up for Windows authentication, but when I'm logged on as a domain user, the system still prompts me for a username & password with a dialog box. I've double checked and Liberum is set for NT Authentications.
Am I missing something?
Thanks,Dan