Re: Impersonation problem



Sorry I missed the NT4 domain bit. You have my sincere condolences. :)

The statement about any provider being able to take credentials is not
really true. In fact, the IIS provider (for changing the IIS metabase) does
not support this at all. The WinNT provider is also known to be flakey when
supplying credentials. It doesn't always work. If it is working for you,
then that's good, but be aware that you may get some unexpected results
somewhere.

LDAP is generally very solid when it comes to taking credentials, and the
protocol itself is designed to work this way.

I agree on your other points. GetObject in .NET is supplied strictly for
backwards compat with VB6 converted code. .NET devs should use S.DS.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Dodot63" <dodot63@xxxxxxxxx> wrote in message
news:1153900566.928220.245470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
As I said, I'm in a NT4 domain. Otherwise I agree that the LDAP
provider has to be preferred. In my opinion, the GetObject function is
designed for scripts, and DirectoryEntry for programs. Note that with
any provider, WinNT or LDAP, you can specify the username and password
in the DirectoryEntry constructor.



.



Relevant Pages

  • Re: How do I use -Credential parameter?
    ... FileSystem and Registry provider do not supprt Credential parameter for V1. ... But when I used those cmdlet with -Credential, ... The provider does not support the use of credentials. ...
    (microsoft.public.windows.server.scripting)
  • RE: Once again Vista logon (ICredentialProvider)
    ... I don't manage to retrieve the credentials. ... I can register the DLL with XP but I can't do that with Vista. ... >> You don't have to care much about the Credential Providers subkey, ... >> some friendly name as its default value (My Provider). ...
    (microsoft.public.platformsdk.security)
  • Re: ActiveDirectoryMembershipProvider ( password expiration?)
    ... This situation cannot be handled via LDAP in general, ... I believe the provider already supports this though. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Macbook Pro und Linux
    ... laufender Daemon hinter meinem Rücken mit meinen Credentials beim ... IMAP-Server anmelden würde. ... Wo hast Du "Provider" gelesen? ...
    (de.comp.sys.mac.misc)
  • Re: Web Single Sign On
    ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... current Windows credentials to the server, ... This common identity is the user's username used to logon to the ...
    (microsoft.public.dotnet.framework.aspnet.security)