DirectoryEntry and single sign on

S

Stephan Steiner

Hi

I'm wondering.. if I construct a DirectoryEntry with just one parameter..

(e.g. LDAP://mydomaincontroller/dc=mydomain,dc=com)

what kind of authenticatinon is performed against the request (e.g. when
calling CommitChanges())? Is it anonymous? If so, is there a way to use the
credentials of the user account running the application without having to
specify the login and password?

Regards
Stephan
 
T

tcomer

Hi

I'm wondering.. if I construct a DirectoryEntry with just one parameter..

(e.g. LDAP://mydomaincontroller/dc=mydomain,dc=com)

what kind of authenticatinon is performed against the request (e.g. when
calling CommitChanges())? Is it anonymous? If so, is there a way to use the
credentials of the user account running the application without having to
specify the login and password?

Regards
Stephan


I recommend looking at this the DirectoryServicesPermission class. I'm
no LDAP expert by any means, but I do know that credentials are
validated against Active Directory objects. CommitChanges() will fail
unless credentials with administrative rights are provided. As for the
second question, there are objects in .NET that can retreive the user
name of the active account but the password must be entered manually.

T. Comer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top