Authentication with AD (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


mattps -> Authentication with AD (1/11/2005 7:09:25)

I am build a website that needs to be able to authenticate with active directory. When a page is to be submitted a user is required to enter their network username and password. Can anyone help me with the interaction part with AD.

Thanks in advance.




jaybee -> RE: Authentication with AD (1/11/2005 7:20:49)

If you do a google search for the term

"authentication with AD"

You'll get loads of different options back, one of which should hopefully match your set up.




mattps -> RE: Authentication with AD (1/12/2005 7:53:37)

Thanks,

I have already chceked the web and fould noth of use. I have managed to search AD for the user but am unable to find any reference on how to check the users password with a text box the user completes on the web page.

Can anyone help??




Giomanach -> RE: Authentication with AD (1/12/2005 9:41:54)

Matt

I'm not familiar with the term AD, could you elaborate on that please?

I may be able to help you if you can explain what AD is

Thanks
Dan




mattps -> RE: Authentication with AD (1/12/2005 9:54:37)

Active Directory. I am assuming that I need to access this using LDAP (Lightweight Directory Access Protocol).




rdouglass -> RE: Authentication with AD (1/12/2005 14:17:44)

To present the user with a Username/Password/Domain login box, you need to turn on Windows Integration and turn Off anonymous access in the Directory Security section of the IIS Management software.

When a user browses to any page in that directory, if they're not logged in as an authorized user it will present the Login box.

To programmatically grab the AD name they're logged in under, use an ASP script like this:

<%
DIM UserName
'Grab login name
MyVar=request.servervariables("logon_user")
MyVar=MyVar & ""
MyPos = InstrRev(MyVar, "/", -1, 1)
UserName=Mid(MyVar,MyPos+1,Len(MyVar))
UserName=Right(UserName,(len(UserName)-instr(UserName,"\")))
%>

Now you can use the user's logon name anywhere like this:

<%=UserName%>

That help any?




mattps -> RE: Authentication with AD (1/14/2005 8:05:04)

Thanks rdouglass but this doesn't really help. What I am trying to acheive is to replace a paper based form system with a web page that some completes and then send the electronic form to a manager who has to authorise the form by typing in their active directory username and password. When this is verified it gets posted to the Tech team for completion.




rdouglass -> RE: Authentication with AD (1/14/2005 8:21:48)

quote:

To present the user with a Username/Password/Domain login box, you need to turn on Windows Integration and turn Off anonymous access in the Directory Security section of the IIS Management software.

When a user browses to any page in that directory, if they're not logged in as an authorized user it will present the Login box.


If this is done to either a directory or page, you will get a logon prompt which will compare to the AD (if the server is in the proper domain.) It won't be on the web page but will be an AD logon nevertheless.

Either that or I'm misunderstanding what you want to do. I interpret that you want a logon prompt to submit this form, yes?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625