-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jesus Ponce
Sent: Friday, April 06, 2001 3:14 AM
To: '[EMAIL PROTECTED]'
Subject: [ActiveDir] Password problemsI have maked an authentified site using Active Directory. This site has the option to send the password to the user if he has forgotten it.
My problem is that I can't get the password from active directory (because it's impossible not?) and I had mint set a temp password to the user and send it. But then I can't use the ChangePassword method because I have to give it the actual password and I haven't it. Then I only can use the SetPassword method but it gives me an error of "Permission denied".
I bind to the LDAP using an user and password of an administrator but it doesn't function.
The code is:
Set dso = GetObject("LDAP:")
strDNGroup = "CN=ponce,OU=SupplierAd,OU=MSCS_40_Root,DC=eRestaura,DC=com"
Set user = dso.opendsobject("LDAP://erestaura/" & strDNGroup, ADM_USER, ADM_PWD, 4)
user.SetPassword NewPassword---
In the last line is where the error occurs.
Does someone know which would be the problem? or another solution for retrieving the password...
Thanks.
Jes�s Ponce Mart�n
marchFIRST
Plaza de Col�n
Torres de Col�n 2, Torre 1, Planta 12
Madrid 28046 Spain
Phone: +34 91 391 59 34
+34 91 391 59 20
Cell: +34 630 31 58 84
Fax: + 34 91 310 00 03
www.marchFIRST.com
www.marchfirstobservatory.com
Title: Password problems
IT
works for me :-). Try changing the flag value from "4" to "0". 4
says you don't require a writeable replica, 0 says "there is no flag
value". Note that you don't need to specify the server if the target
domain is in the local forest.
- [ActiveDir] Password problems Jesus Ponce
- Steve Judd
