[Samba] generate keytab

Hleb Valoshka 375gnu at gmail.com
Thu Jan 24 09:33:40 MST 2013

Please! Don't write into private mail. Thanks.

> $ Samba-tool user create http-user --random-password
> $ Samba-tool spn add HTTP/www.nisled.org  http-user

Okay, you've got user http-user with principals http-user at NISLED.ORG
and HTTP/www.nisled.org at NISLED.ORG.

> $ Samba-tool domain exportkeytab --principal=HTTP/www.nisled.org
> http.keytab

Here you export _only_ HTTP/www.nisled.org at NISLED.ORG.

> $ kinit -k -t http.keytab http-user
> kinit: Key table entry not found while getting initial credentials

Of cause, because you didn't export it.

> Can anyone help me?

Export http-user at NISLED.ORG too.

More information about the samba mailing list