By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,474 Members | 3,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,474 IT Pros & Developers. It's quick & easy.

Authenticate Domino Directory user through an ASP.NET page

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
..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 discussion thread is closed

Replies have been disabled for this discussion.