[clug] AD password Change
Darryl
darryl at snakegully.nu
Sun Jan 7 12:48:32 GMT 2007
Azher Amin wrote:
> Hi,
>
> I want to change the password of a Windows AD user from Linux. Can
> someone guide me how to do this.
You can use the kerberos utilities. You need to setup /etc/krb5.conf for
your domain, then use kinit to login, then kpasswd to change the password.
$ kinit
Password for username at DOMAIN.AU:
$ klist
Ticket cache: FILE:/tmp/krb5cc_10000
Default principal: username at DOMAIN.AU
Valid starting Expires Service principal
01/07/07 23:43:07 01/08/07 09:43:11 krbtgt/DOMAIN.AU at DOMAIN.AU
renew until 01/08/07 23:43:07
Kerberos 4 ticket cache: /tmp/tkt10000
klist: You have no tickets cached
$ kpasswd
Password for username at DOMAIN.AU:
Enter new password:
Enter it again:
Password changed.
Darryl.
More information about the linux
mailing list