Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user.identity.name problem

Status
Not open for further replies.

meninblack

Technical User
Feb 13, 2004
107
0
0
GB
We have recently renamed a users active directory account and now when user.identity.name callout is used, it returns the old username.

It's as if active directory is somehow caching it.

Any idea's

Thanks
Kris
 
try this method instead?

System.Security.Principal.WindowsIdentity user = System.Security.Principal.WindowsIdentity.GetCurrent();
lblUserName.Text = user.Name;

does it return the same "wrong" value?
 
Thanks, I'll check with the developer.

I need to still work out why this happening as this call is used in other web apps, so I need to look at both sides.

Thanks
Kris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top