473,386 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP.NET capture login id... LDAP?

I want to capture a users windows login Id and display it in asp.net
web page (using VB.net).
Any and all suggestions accepted..
A code snippet wud be really appreciated.

Read an article in MSDN (LDAP), but cud'nt make it working.

Feb 17 '06 #1
5 3767
On 17 Feb 2006 14:17:00 -0800, Chris wrote:
I want to capture a users windows login Id and display it in asp.net
web page (using VB.net).
Any and all suggestions accepted..
A code snippet wud be really appreciated.

Read an article in MSDN (LDAP), but cud'nt make it working.


You need to be more specific about what you're asking for.

"capture a users windows login id" can mean any number of things. What are
you trying to do?
Feb 17 '06 #2
I have a page which needs the user to fill his/her info.
The application needs to get some infor about the user (to identify
him/her), which he wont be able to change it. This is to avoid trash
data..

All the user logs in the system using an id and password. I want to
display that user id in the asp.net application.

The application runs inside the firewall and is used internally in our
organization.

Thanks!

Erik Funkenbusch wrote:
On 17 Feb 2006 14:17:00 -0800, Chris wrote:
I want to capture a users windows login Id and display it in asp.net
web page (using VB.net).
Any and all suggestions accepted..
A code snippet wud be really appreciated.

Read an article in MSDN (LDAP), but cud'nt make it working.


You need to be more specific about what you're asking for.

"capture a users windows login id" can mean any number of things. What are
you trying to do?


Feb 17 '06 #3
On 17 Feb 2006 14:35:08 -0800, Chris wrote:
I have a page which needs the user to fill his/her info.
The application needs to get some infor about the user (to identify
him/her), which he wont be able to change it. This is to avoid trash
data..

All the user logs in the system using an id and password. I want to
display that user id in the asp.net application.

The application runs inside the firewall and is used internally in our
organization.


It sounds like this would be a perfect candidate for ASP.NET 2.0 Login
controls and Membership functionality. You just drag and drop the login
control onto the form, and, depending on the data source you need to
authenticate against, do a little configuration.

Start here:

http://www.asp.net/QuickStart/aspnet...y/default.aspx
Feb 18 '06 #4

"Chris" <ch***********@gmail.com> skrev i en meddelelse
news:11**********************@g14g2000cwa.googlegr oups.com...
I want to capture a users windows login Id and display it in asp.net
web page (using VB.net).


In inetmgr view properties for the webapp. In tab "document security" remove
the "allow anonymous access" checkmark.

In the App use:
User.Identity.Name

/jim
Feb 20 '06 #5
Check out this site --
http://msdn.microsoft.com/library/de...SecNetHT02.asp

Request.ServerVariables["LOGON_USER"];
will give you the LAN ID of the user who is logged into this computer. With
this information you can use the above link and retrieve further info about
the user (first name, last name, etc).
"Jim Andersen" wrote:

"Chris" <ch***********@gmail.com> skrev i en meddelelse
news:11**********************@g14g2000cwa.googlegr oups.com...
I want to capture a users windows login Id and display it in asp.net
web page (using VB.net).


In inetmgr view properties for the webapp. In tab "document security" remove
the "allow anonymous access" checkmark.

In the App use:
User.Identity.Name

/jim

Mar 8 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hayden Kirk | last post by:
Hi Im developing a CMS, What I need is to be able to see if a current user is logged in, if so, use the same login/pass for my cms, how can I do this using ldap? Thanks
0
by: jiing | last post by:
<?php $ldapServer="ldap://192.168.1.211"; $ldapPort="389"; $ldapconn=ldap_connect($ldapServer,$ldapPort); $ldaprdn="uid=root, ou=People, dc=aitc, dc=com, dc=tw"; $ldappass="abcd"; ...
0
by: aiKeith | last post by:
Hello, Here is my situation. I have developed several apps that require authentication to access. For authentication, I have the users enter thier user/pass and click login, which is then sent...
1
by: Christopher | last post by:
We are using forms authentication in our web app and typically query our LDAP Servers by binding to the user node in the LDAP Tree. We usually see the following DN used as the DN for each user.....
3
by: Michael Glaesemann | last post by:
Hello all, Recently I've been thinking about different methods of managing users that log into a PostgreSQL-backed application. The users I'm thinking of are not necessarily DBAs: they're...
1
by: bijuphilipmani | last post by:
we are using windows directory services for login. we have lots of applications which have their own login id and password, including oracle suite. users have become so frustrated with having to...
2
by: arizal | last post by:
Hi, I have developed a login page using PHP that uses a LDAP authentication to login to the users panel. I use the funtion that was provided to me inorder to authenticate using LDAP. Now i want to...
4
by: DGS | last post by:
Hi guys, Not a developer, but an admin so please pardon my ignorance. I have an issue that I was hoping to get help with. What I need is for the front page of my site to capture the URL that...
4
by: mirajsen | last post by:
Hello, I have a data access page which is linked with a table. Users will enter the data through this particular DAP which is on a web server. I would like the DAP to capture and append the NT...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.