rjancewicz / python-kadmin

Python module for kerberos admin (kadm5)
MIT License
35 stars 40 forks source link

Useful function - ExportKeytab #52

Open michael1991 opened 7 years ago

michael1991 commented 7 years ago

Refer to apache kerb-admin api and kadmin.local, from my point of view, exportkeytab is very useful. How about adding it? @russjancewicz

ccaballe commented 7 years ago

I also find this functionality very useful. Any progress on this issue?

michael1991 commented 7 years ago

My current way on this issue was using commands.getstatusoutput('kadmin -p {0} -kt {1} -q "xst -k keys/{2}.keytab {2}"'.format(app.config['PRINCIPAL'], app.config['KEYTAB'], user)) and then read keytab. Although i resolved this, i don't think it's a good way...