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

kinit not working[BUG] #1

Open
iamaftabshaikh opened this issue Apr 30, 2021 · 1 comment
Open

kinit not working[BUG] #1

iamaftabshaikh opened this issue Apr 30, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@iamaftabshaikh
Copy link

iamaftabshaikh commented Apr 30, 2021

Getting issue on kinit please find my logs and all to help me get out of this situation.

=====================================================================

store_password_to_kinit:
cmd.run:
- name: kinit --password-file={{ ad.config.krb5.password_tmpfile }} {{ ad.config.credentials.username }}
- onchanges:
- file: ad_tmp_password_file_to_root

=====================================================================

When i try to run above command manually getting this issue.

[root@SALT01 ad_kd]# kinit --password-file=/srv/salt/ad_kd/pass "ad_username"
kinit: unrecognized option '--password-file=/srv/salt/ad_kd/pass'
Usage: kinit [-V] [-l lifetime] [-s start_time]
[-r renewable_life] [-f | -F | --forwardable | --noforwardable]
[-p | -P | --proxiable | --noproxiable]
-n [-a | -A | --addresses | --noaddresses]
[--request-pac | --no-request-pac]
[-C | --canonicalize]
[-E | --enterprise]
[-v] [-R] [-k [-i|-t keytab_file]] [-c cachename]
[-S service_name] [-T ticket_armor_cache]
[-X [=]] [principal]

options:
-V verbose
-l lifetime
-s start time
-r renewable lifetime
-f forwardable
-F not forwardable
-p proxiable
-P not proxiable
-n anonymous
-a include addresses
-A do not include addresses
-v validate
-R renew
-C canonicalize
-E client is enterprise principal name
-k use keytab
-i use default client keytab (with -k)
-t filename of keytab to use
-c Kerberos 5 cache name
-S service
-T armor credential cache
-X <attribute>[=<value>]

=======================================================================

OS: Rhel7
Arch: 64bit

====================================================================

Team humble request to all please review it once.

@iamaftabshaikh iamaftabshaikh added the bug Something isn't working label Apr 30, 2021
@baby-gnu
Copy link
Collaborator

baby-gnu commented May 2, 2021

Thanks for the report.

Passing the password by a file is not working on Rhel7, so we need to find a proper way to use kinit on such system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants