Looking for active directory change of password sample source code

  • Thread starter Thread starter Philippe C. Martin
  • Start date Start date
P

Philippe C. Martin

Hi,

I am looking for sample source code to change a user's password using active
directory.

Best regards,

Philippe
 
hello

to change password you can use this command line:
for example: username guyt in cp.com domain within ou name = guyds , his
password will be a1yc24kg.

dsmod user "cn=guyt, ou=guyds, dc=cp, dc=com" -pwd a1yC24kg

to add user you can use:
for example: adding user that called: pault in cp.com domain and in guyds ou
with a1yC24kg password

dsadd user "cn=pault, ou=guyds, dc=cp, dc=com" -pwd a1yC24kg
 
Back
Top