473,888 Members | 2,194 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3785
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.goo glegroups.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.N ame

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

Request.ServerV ariables["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.goo glegroups.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.N ame

/jim

Mar 8 '06 #6

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

Similar topics

3
2794
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
1637
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"; if($ldapconn){ echo "connect to ".$ldapServer." successfully \n<br>"; }else{
0
1097
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 to an LDAP Server (NOVELL) - if binding is successful, I use the login object to retrieve various fields/attributes of the LDAP directory for that user. This works just fine, but what I want to do is transparently log the user in - so they do...
1
2951
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.. http://serverip:389/cn=login,dc=company,dc=org *where login is their actual windows login In Active Directory we are seeing this format... http://server:389/cn=firstname lastname,dc=company,dc=org
3
2329
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 application users that really shouldn't even be aware that they are being served by the world's most advanced open source database server. I appreciate any thoughts or feedback people may have, as I'm trying to decide which is the most appropriate way...
1
2134
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 remember so many ID and password. while implementing Moodle (WAMP platform) we were able to use LDAP to get authentication from DS and this has prompted this mail for help. Is there any standard login screen developed in PHP where we can get the user...
2
1842
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 make my login page SSL enable. I am using Apache server and My-sql server.. I have no idea where should i start from inorder to enable ssl. Do i need to write extra code in php to enable ssl or should i be doing somethig in server.. Does any one...
4
7920
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 the user is requesting. Regardless of where they go, they are prompted to login...but I want the initial login page to capture where they have REQUESTED to go and store it somewhere (I assume a cookie).
4
2022
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 login ID of these users who are entering the data into the table. I used the following code to capture the NTlogin. Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _ "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As...
0
9957
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11173
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10772
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10434
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9593
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7988
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5810
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4239
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.