473,387 Members | 1,504 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,387 software developers and data experts.

Authenticate Domino Directory user through an ASP.NET page

I am desperately trying to create a login page in ASP.NET in which a
user can be authenticated against a Domino Directory but for the life
of me, I cannot even find anything remotely close to this on the
internet. It's like nobody has ever needed to do this.

I already did it in a ColdFusion page and I'm amazed at how incredibly
easy it was using the CFLDAP tag. I would have thought that a task like
this would have been equally easy in ASP.NET.

Can anyone shed some light on this?.... please???

I really got sick of hitting walls with this so I decided to post. I
apologize in advance if I posted to the wrong group.

Thanks!

Dec 7 '05 #1
2 2614
Maybe you should look at this article at:-
http://203.109.151.123/home.nsf/arti...net_part2.aspx
<ga************@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I am desperately trying to create a login page in ASP.NET in which a
user can be authenticated against a Domino Directory but for the life
of me, I cannot even find anything remotely close to this on the
internet. It's like nobody has ever needed to do this.

I already did it in a ColdFusion page and I'm amazed at how incredibly
easy it was using the CFLDAP tag. I would have thought that a task like
this would have been equally easy in ASP.NET.

Can anyone shed some light on this?.... please???

I really got sick of hitting walls with this so I decided to post. I
apologize in advance if I posted to the wrong group.

Thanks!

Dec 8 '05 #2
..NET has two LDAP stacks to play with, System.DirectoryServices and
System.DirectoryServices.Protocols (in .NET 2.0). S.DS.P is a low level,
pure LDAP API, while S.DS uses ADSI under the hood.

Essentially, you just need to do a bind in order to authenticate a user. In
S.DS, that would generally look like:

bool authenticated;
DirectoryEntry entry = new
DirectoryEntry("LDAP://yourdominoserver.com/rootDSE","user","password",AuthenticationTypes.Non e);
try
{
object o = entry.NativeObject;
authenticated = true;
}
catch (COMException ex)
{
authenticated = false;
{
finally
entry.Dispose();
The trick is getting the object you want to use correct (rootDSE should be
ok if Domino supprts LDAP V3) and the username right. You also want to
prevalidate for null passwords since simple bind with null password is
supposed to succeed.

If you want to use S.DS.P, the syntax is a little different, but the idea is
the same.

Note that the above code is not secure because it passes the plain text
credentials on the network. Ideally your domino LDAP server would support
SSL so that you could use the SecureSocketsLayer flag.

HTH,

Joe K.

<ga************@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I am desperately trying to create a login page in ASP.NET in which a
user can be authenticated against a Domino Directory but for the life
of me, I cannot even find anything remotely close to this on the
internet. It's like nobody has ever needed to do this.

I already did it in a ColdFusion page and I'm amazed at how incredibly
easy it was using the CFLDAP tag. I would have thought that a task like
this would have been equally easy in ASP.NET.

Can anyone shed some light on this?.... please???

I really got sick of hitting walls with this so I decided to post. I
apologize in advance if I posted to the wrong group.

Thanks!

Dec 8 '05 #3

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

Similar topics

1
by: deko | last post by:
Can I use PHP and htaccess to authenticate users? My service provider lets me password protect directories on my web site - using htaccess. If a user tries to access a page within a password...
5
by: Joeri KUMBRUCK | last post by:
Hello, I'm trying to create an ASP page where users can type in a username and password, and these credential should be checked with active directory. If username and password are correct, the...
0
by: Renato Neves | last post by:
The following code is working fine, i can create the user in the Active Directory and "enable" it. My problem is that, when i'm trying to authenticate him, i can't get to work!! The user and pass...
3
by: Peter Neumaier | last post by:
Hi, I am trying to read data from a domino databases (located in our LAN not on my local machine!) from my access project. I pass a code to the function checkCodeInDomino to be verified on Domino....
3
by: Ram | last post by:
How to Authenticate NDS server using C#
0
by: VooDoo | last post by:
Hi, I am using domino email group to send notifications. I would like to keep a record of the email sent, but also the list of the person that are in the group. Currently i just send an smtp...
1
by: Arpan | last post by:
Suppose a web.config file (existing in C:\Inetpub\wwwroot\ASPX) has the following code: <configuration> <system.web> <authentication mode="Forms"> <forms name="AuthenticateUser"...
1
by: Michael Howes | last post by:
I would think this would be very, very easy but in the 50 searches I've done I haven't found anything. If our application requires login and that user/password be a local windows account or more...
4
by: Jon | last post by:
I am modifying an app for a customer in ASP.Net 1.1. The app is running on a server outside their network, yet they want to authenticate users against their internal active directory set up (they...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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.