Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve domain join command and create keytab #5

Open
djjudas21 opened this issue Apr 3, 2017 · 2 comments
Open

Improve domain join command and create keytab #5

djjudas21 opened this issue Apr 3, 2017 · 2 comments
Assignees

Comments

@djjudas21
Copy link
Owner

For completeness, DanF joins the domain with the following:

net ads join -U {{ ad_user }}%{{ ad_password }} createcomputer='{{ ad_ou }}' --no-dns-updates
net ads keytab create -U {{ ad_user }}%{{ ad_password }} no-dns-updates
@djjudas21 djjudas21 self-assigned this Jun 27, 2017
@djjudas21
Copy link
Owner Author

Also need to set these in smb.conf:

dedicated keytab file = /etc/krb5.keytab
kerberos method = dedicated keytab

@djjudas21
Copy link
Owner Author

Doing this broke my ability to authenticate. I also tried kerberos method = secrets and keytab and this didn't work either. Looks like the generated keytab doesn't have any principals in it and /var/log/secure contains the following (redacted):

Jun 28 14:33:32 build-el7 unix_chkpwd[23270]: password check failed for user (username)
Jun 28 14:33:32 build-el7 sudo: pam_unix(sudo:auth): authentication failure; logname=username uid=56933 euid=0 tty=/dev/pts/0 ruser=username rhost=  user=username
Jun 28 14:33:32 build-el7 sudo: pam_krb5[23268]: TGT failed verification using keytab and key for 'host/[email protected]': Server not found in Kerberos database
Jun 28 14:33:32 build-el7 sudo: pam_krb5[23268]: authentication fails for 'username' ([email protected]): Authentication failure (Success)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant