Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 1st, 2005, 02:23 PM
firdouseqasim firdouseqasim is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 71 firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 16 h 6 m 11 sec
Reputation Power: 6
Active Directory Credentials

Hello all. I need to read the Active Directory parameters or properties like user name (all information) of the logged in user when this user hits a page on my web server. How do I do that? Please help. Thank you.

Reply With Quote
  #2  
Old November 1st, 2005, 02:26 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 16th Plane (12500 - 12999 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 21 m 57 sec
Reputation Power: 1762
this reads everything ... for the user:
Code:
For each item in Request.Servervariables
	tempvalue=Request.Servervariables(item)
	Response.write item & "=" & tempvalue 
	Response.write "<br />" 
Next


will print out the name and the value for each
__________________
Come JOIN the party!!!

Quote of the Month:
Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use.

Questions to Ponder:
What do you do when you see an endangered animal eating an endangered plant?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #3  
Old November 1st, 2005, 03:56 PM
firdouseqasim firdouseqasim is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 71 firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 16 h 6 m 11 sec
Reputation Power: 6
Quote:
Originally Posted by mehere
this reads everything ... for the user:
Code:
For each item in Request.Servervariables
	tempvalue=Request.Servervariables(item)
	Response.write item & "=" & tempvalue 
	Response.write "<br />" 
Next


will print out the name and the value for each


Does this get the information from the Active Directory???

Reply With Quote
  #4  
Old November 1st, 2005, 03:59 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 16th Plane (12500 - 12999 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 21 m 57 sec
Reputation Power: 1762
yep

Reply With Quote
  #5  
Old November 1st, 2005, 04:00 PM
firdouseqasim firdouseqasim is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 71 firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 16 h 6 m 11 sec
Reputation Power: 6
Quote:
Originally Posted by mehere
yep


Cool. Thank you. I'll try it and let you know if I run into any errors.

Reply With Quote
  #6  
Old November 1st, 2005, 04:11 PM
firdouseqasim firdouseqasim is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 71 firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 16 h 6 m 11 sec
Reputation Power: 6
Quote:
Originally Posted by mehere
yep


Ok I tried it and it returns me all the Server Variables. But I dont see the user information anywhere. Can you tell me what information I am supposed to be looking at for the USER INFO. Thank you.

Reply With Quote
  #7  
Old November 1st, 2005, 04:42 PM
firdouseqasim firdouseqasim is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 71 firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level)firdouseqasim User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 16 h 6 m 11 sec
Reputation Power: 6
Quote:
Originally Posted by firdouseqasim
Ok I tried it and it returns me all the Server Variables. But I dont see the user information anywhere. Can you tell me what information I am supposed to be looking at for the USER INFO. Thank you.


Ok I got that working. I had to uncheck anonymous access in IIS to get that to work.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Active Directory Credentials


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT