# How do I ensure kinit is ran?

**URL:** <https://forum.ansible.com/t/how-do-i-ensure-kinit-is-ran/35225>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [May 25, 2021, 6:21pm UTC](https://forum.ansible.com/t/how-do-i-ensure-kinit-is-ran/35225 "2021-05-25T18:21:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Ellis](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Brandon\_Ellis](https://forum.ansible.com/u/Brandon_Ellis)\
**Post date:** [May 25, 2021, 6:21pm UTC](https://forum.ansible.com/t/how-do-i-ensure-kinit-is-ran/35225/1 "2021-05-25T18:21:56Z")

</div>

I’m playing around with an AD inventory plugin from [joshinryz/ansible\_ldap\_inventory: Active Directory (LDAP) Inventory Plugin for Ansible (github.com)](https://github.com/joshinryz/ansible_ldap_inventory)

However, this plugin (and a few others) rely on kinit successfully being ran and holding a valid TGT before executing.

Any idea how I can ensure that kinit is ran in tower/awx?  
Or is this something I would need to modify into the plugin myself?
