CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 11/22/2005 9:56:03 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 54 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
jaccso
Asp.Net User
Get user login name under W200011/22/2005 9:56:03 AM

0/0

Hello!

I'm developing an intranet application using VWD2005. Webserver's running under W2000 prof. with it's IIS.
Evry user using W2000 prof. & we've an active directory & proxy servers. There are 3 groups of users with different premission. I don't want to make a new login procedure, I think the best solution would, if I get the user's windows login name & grant the premission.

(how) Could I get the this login name?

I tried this:
WindowsPrincipal
wp = new WindowsPrincipal(WindowsIdentity.GetCurrent());
Label1.Text = wp.Identity.Name;

I always receive EGPQK0051O1E5BV\ASPNET wich is Intrernet guest account\ASP.NET machine account.

IIS configuration:
Anonymus access Disabled
Basic authentication Enabled
Digest & Integrated Windos Auth. Disabled.

Thanks in advance : Jaccso

eramseur
Asp.Net User
Re: Get user login name under W200011/22/2005 6:39:07 PM

0/0

If you just configure your provider to use active directory to check against for users, you can then just use the login controls ( loginname) to get out this info.

Eric Ramseur
Rainbow Portal 2.0 Admin
Download Rainbow 2.0!!
Rainbow Code
Rainbow Portal Community
C# 2005 Group
jaccso
Asp.Net User
Re: Get user login name under W200011/23/2005 8:56:09 AM

0/0

Thanks!

It's succed, now I need to set the SQLserver2005express to trust the ASPNET user..

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Inside Windows 2000 Server Authors: William Boswell, Pages: 1478, Published: 2000
Windows 2000 Quick Fixes: Quick Fixes Authors: Jim Boyce, Pages: 285, Published: 2001
MCSA/MCSE: Windows Server 2003 Environment Management and Maintainance Study Guide, Exam 70-290 Authors: Lisa Donald, James Chellis, Pages: 720, Published: 2006
MCSA/MCSE: Windows 2000 Network Security Administration Study Guide Authors: Bill English, Russ Kaufmann, Pages: 574, Published: 2003
Networking with Windows 2000 Authors: Patrick Regan, Pages: 720, Published: 2001
Complete Maya Programming: An Extensive Guide to MEL and the C++ API Authors: David A. D. Gould, Pages: 503, Published: 2002
Managing and Maintaining a Windows Server 2003 Environment: Exam Cram 2 70-275 Authors: Dan Balter, Ed Tittel, Pages: 600, Published: 2003
Macromedia Coldfusion MX Web Application Construction Kit: Web Application Construction Kit Authors: Ben Forta, Nate Weiss, Leon Chalnick, Angela C. Buraglia, Pages: 1500, Published: 2002
Encase Computer Forensics: EnCase Certified Examiner Study Guide Authors: Steve Bunting, William Wei, Pages: 576, Published: 2006

Web:
Bulk change of User logon name Pre Windows 2000 -- sAMAcoountName ... In AD properties for users, under Account Tab both User Logon Name and User Logon Name Pre-Windows 2000 have A000001 (Say for user Alan Jones). ...
[OpenAFS] "Integrated Login Failed" under Windows 2000 Previous message: [OpenAFS] "Integrated Login Failed" under Windows 2000 .... The user name edit, on the other hand, contains 'Administrator' - which is of ...
pre-windows 2000 logon name __ is already in use pre-windows 2000 logon name __ is already in use : Archived from ... mail server (service@) When we try to create the user "service" we get ...
How To Get A Token For A User Look on the Account tab for the user account in Active Directory, Users and Computers, and it's the first thing you'll see: "User logon name. ...
Notes on Integrating Windows 2000, RedHat Linux, and HP-UX Simply add a user and make sure its first name and login name is the host name ... It's the package found on the Windows 2000 distribution media under the ...
microsoft windows 2000 and software and user account Resources ... But i can log in to the administrator user account. What. ... but there is no set of folders with her log in name under Documents and Settings. ...
Heimdal and Windows 2000 Kerberos — how to get them to play together this is to use the user’s login-name and the client ma-. chine’s pre-configured realm name. ... beros application programming under Windows 2000 is ...
Windows XP or Windows 2000 automatically logon and prevent user logoff ... DNS Lookup · Visitors · Disclaimer. « error when trying to get updates from windows update or WSUS .... clear last logged on user name from logon (2) ...
Windows 2000 Server: User Management could logon under that name and have access to the data of the user. ... Get all articles delivered directly to your mailbox as and when they are released ...
Vista only works with pre-Windows 2000 AD Logon name? Why can't I get any Vista (even Business and Enterprise) version to accept a FQDN user ... It only works with pre-Windows 2000 user logon name.




Search This Site:










object reference not set to an instance of an object.

file upload asp.net - problem with saving over already existing file

trying to access the webconfigurationmanager from a user-defined class

hide label which is inside a repeater control

calculating age from date of birth field

upgrade 2.0 beta1 --> beta2

concatenate script files and line-ending problems

how

how to get rid of warning info related sqlclient.sqldatareader?

dnn sig presentation - great lakes area

string to convert into double

calculate directory size

where do i place the code for a contact form?

vb and c#

date comparison and get number of days

how do you tell a good fast host?

modules in different pages

unable to edit database (ms access) after inserting records

use .gif image for asp:button text

mixed mode authentication

administrator permissions problem

advice re: security recommendations

validation on client.

separate primary and secondary menu layout with dnn?

assigning host privileges

conversion failed when converting from a character string to uniqueidentifier

windows authentication not working

aspx and flash

sitemap context issue

passing parameters to a user control

 
All Times Are GMT