aspx_professional thread: Re: [aspx_professional]
DirectoryServices.DirectoryEntry.NativeObject.SetPassword()
Brad,
I have a reference to ActiveDs.tlb, that's the only COM AD object I have a
reference to, and the user I'm binding to AD with is a member of
Administrators on the AD machine I'm binding to.
Cheers.
-----Original Message-----
From: Brad McLeod [mailto:netwatchby2@y...]
Sent: Thursday, 10 October 2002 1:57 AM
To: ASPX_Professional
Subject: [aspx_professional] Re: [aspx_professional]
DirectoryServices.DirectoryEntry.NativeObject.SetPassword()
Tom -
2 questions...(1) Do you also have a reference to the
COM object ActiveDs.tlb? (2) When you bind to AD,
are you doing so with a UserName/Password that has
Admin rights?
Brad McLeod
--- Henry Wolfe <henrywolfe@y...> wrote:
> Tom:
>
> I have not worked with Active directory yet with
> .net I am going to be using to soon as security for
> part of a project. I have found a link to an
> artical using it I hope it helps.
>
> http://www.15seconds.com/issue/020730.htm
>
>
>
>
> --- "Tom Cammarano" <t.cammarano@c...> wrote:
> >I'm having trouble invoking the SetPassword method
> of a DirectoryEntry
> >object's NativeObject property.
> >
> >I've imported the Active Directory Service COM
> type library into my ASP
> >page (I'm using C#).
> >
> >The following line takes the DirectoryEntry object
> representing a "user"
> >and retrieves its native ADSI object:
> >ActiveDs.IADsUser iAdsUser = (ActiveDs.IADsUser)
> userDe.NativeObject;
> >
> >Then I simply call the SetPassword method:
> >iAdsUser.SetPassword("blah");
> >
> >The userDe object's username and password are set
> to username and password
> >of the root domain DirectoryRntry.
> >
> >Whe I call the SetPassword method I get a
> COMException: "Logon failure:
> >unknown user name or bad password."
> >
> >However I can call ChangePassword() and other
> methods and properties
> >without any problems.
> >
> >Can anyone help, please?
> >
> >Regards,
> >Tom Cammarano
> >---
> >
> >ASP.NET 1.0 Namespace Reference with C#
> >http://www.wrox.com/acon11.asp?ISBN=1861007442
> >
> >ASP.NET 1.0 Namespace Reference with VB.NET
> >http://www.wrox.com/acon11.asp?ISBN=1861007450
> >
> >These books are a complete reference to the ASP.NET
> namespaces
> >for developers who are already familiar with using
> ASP.NET.
> >There is no trivial introductory material or
> useless .NET
> >hype and the presentation of the namespaces, in an
> easy-to use
> >alphabetical order ensures a user-friendly
> reference format.
> >We provide in-depth coverage of all the major
> ASP.NET classes,
> >giving you those real-world tips that the
> documentation doesn't
> >offer, and demonstrating complex techniques with
> simple
> >examples.
> >
> >---
>
>
_____________________________________________________________
> Get your free email account at www.yojam.com
>
>
_____________________________________________________________
> Select your own custom email address for FREE! Get
> you@y... w/No Ads, 6MB, POP & more!
> http://www.everyone.net/selectmail?campaign=tag
>
> ---
>
> ASP.NET 1.0 Namespace Reference with C#
> http://www.wrox.com/acon11.asp?ISBN=1861007442
>
> ASP.NET 1.0 Namespace Reference with VB.NET
> http://www.wrox.com/acon11.asp?ISBN=1861007450
>
> These books are a complete reference to the ASP.NET
> namespaces
> for developers who are already familiar with using
> ASP.NET.
> There is no trivial introductory material or useless
> .NET
> hype and the presentation of the namespaces, in an
> easy-to use
> alphabetical order ensures a user-friendly reference
> format.
> We provide in-depth coverage of all the major
> ASP.NET classes,
> giving you those real-world tips that the
> documentation doesn't
> offer, and demonstrating complex techniques with
> simple
> examples.
>
> ---
=====
Thanks,
Brad McLeod
netwatchby2@y...
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
******************************* DISCLAIMER ******************************
This e-mail and any attachments to it are confidential.
If you receive them in error, please tell us immediately and delete them.
You must not retain, distribute, disclose or otherwise use any information
contained in them.
Before opening or using any attachments with this e-mail you should check
them for viruses and other defects. The sender does not warrant that they
will be free from computer viruses or other defects.
*************************************************************************