Last post Feb 01, 2012 09:07 AM by gww
Jan 31, 2012 03:31 PM|magamaite|LINK
I am setting up a intranet site and would like to use the userid to determine who the person is and do 2 things with it.
1.) dispaly their first and last name on the home page
2.) find out the userType and turn on and off menu items based on that user type.
I really do not understand some/most of the solutions that I am finding as I am not a programmer.
We are using Visusal Studio 2010 and i do have the following information:
Bind as true anonymous
Search using: uid attribute
userType is the logic
Make sure to do a Subtree search
Can anyone help with any of that, I am really lost
Jan 31, 2012 05:42 PM|robwscott|LINK
are you using SharePoint?
this is for c# - not for SharePoint
Feb 01, 2012 09:07 AM|gww|LINK
You can pull the current user in a number of ways.
Using asp.net authentication you can use e.Identity.Name or you can use Request.ServerVariables("LOGON_USER"). You can then use that in a function to seach AD and return the user information. If you use C# this site has a lot of good code to use.