473,770 Members | 2,519 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2638
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.goo glegroups.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.Director yServices and
System.Director yServices.Proto cols (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://yourdominoserve r.com/rootDSE","user" ,"password",Aut henticationType s.None);
try
{
object o = entry.NativeObj ect;
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 SecureSocketsLa yer flag.

HTH,

Joe K.

<ga************ @gmail.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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
2689
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 protected directory, a dialog is received requesting username and password. But I want to provide a login page that users go to first, and then are directed to the page/directory that they are allowed to see based on their username/password. Is...
5
12112
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 script will continue to run otherwise it will stop. Below you will find my code I've programmed until now, at this moment I've got one big problem: my script stops at the line: Set oRootDSE = GetObject("LDAP://RootDSE") Why is this GetObject...
0
1539
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 is correct, but it can't authenticate. If i try other user created in the AD, it work just fine!!! <-------------------------------------------------------------------------------------------------------------> < ...
3
4305
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. On my local machine everything went fine, but suddenly there came up following problem: I was coding and testing with the code below, and I have never been asked for my lotus password, now when starting my function, there comes a box up (dont...
3
4096
by: Ram | last post by:
How to Authenticate NDS server using C#
0
1229
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 email to "groupnameatmycomp.com". How can I read the domino directory to know who is in the group? Does anyone has already been using php and domino? Thanks for your help and recommendations.
1
2437
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" loginUrl="ValidateUser.aspx"> <credentials passwordFormat="Clear"> <user name="simon" password="nomis"/>
1
3509
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 detailed, a user that has been added to the Power Users group that is either a local account or a active directory account how do I authenticate? I've found code that seems to do this against Active Directory
4
2289
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 will open the necessary ports). So, I have a simple login page with username and password, and then I will authenticate that credentials entered against their AD server. I am having a real hard time figuring this out. We can't use Windows Forms...
0
9592
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
10230
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...
1
10004
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8886
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...
0
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.