#Enabling kerberos on an interface

1 messages · Page 1 of 1 (latest)

sand brook
#

I am using na_ontap_kerberos_realm to configure a Kerberos realm in my simulator VM that runs Ontap 9.12.1, however I did not find any module to enable it on an interface. I have to run this through the cli:
vserver nfs kerberos interface modify -vserver vs -lif lif1.0 -kerberos enabled -spn nfs/nfs.example.test@EXAMPLE.TEST -admin-username nfs/service
Does anyone know if there is an Ansible module for this already? Thanks

finite fable
sand brook
#

Awesome! thank you

sand brook
#

also through the cli there are 2 ways to enable the interface, one is to pull a keytab (through a keytab-uri, but then we need a way to serve that file securely), one is to give credentials for an admin principal (I don't think we want this in the general case). The ideal way could be to push a keytab from the ansible script but I don't think there is anything supporting this. I am not familiar with kerberos, so if the story could also add an example of usage that would be great. Thanks again!

solar lintel
#

hi @sand brook , small query
can we modify spn if kerberos interface already enabled in cli?

sand brook
#

in the cli you need to first disable the interface (if the keytab was misconfigured, you need to first enable diag privileges, then use the force parameter) before being able to modify the kerberos configuration

solar lintel
sand brook
#

in my tests I always had to first disable it (possibly forcing it). Do you have a way to try it yourself? Unfortunately I won't be very available these days

solar lintel
#

the new module na_ontap_kerberos_interface added in latest collection version, try it out and let us know if any issues

sand brook
#

nice! it works! thanks a lot! I also see there were some commits for the issues I opened on Github like #153 , that's very cool.

sand brook
#

I believe nonetheless the interface is a bit weird (having to use an admin account, or to expose a keytab so that it can get pulled by the command). Would it be possible to have an option to provide the keytab directly? I am building a lab and I am not using active directory. Maybe most deployments use active directory and do not have to use these options at all, so I am the only one noticing.