|
| |
|
|
mattps
Posts: 45 Joined: 6/12/2004 Status: offline
|
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.
|
|
|
|
mattps
Posts: 45 Joined: 6/12/2004 Status: offline
|
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
Posts: 6129 Joined: 11/19/2003 From: England Status: offline
|
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
Posts: 45 Joined: 6/12/2004 Status: offline
|
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
Posts: 9280 From: Biddeford, ME USA Status: offline
|
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?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
mattps
Posts: 45 Joined: 6/12/2004 Status: offline
|
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
Posts: 9280 From: Biddeford, ME USA Status: offline
|
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?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|