| | 70 | = Crear un keytab = |
| | 71 | Sinceramente no tengo ni idea de lo que es, pero como al intentar montar: |
| | 72 | {{{ |
| | 73 | mount -t nfs -o vers=4 nfsvnx-172-16.priv.uco.es:/BORRAR_PRUEBAS_NFSV4 /mnt1 |
| | 74 | }}} |
| | 75 | se queda esperando teniendo en daemon.log lineas como estas: |
| | 76 | {{{ |
| | 77 | Nov 9 09:52:58 HPTONIN rpc.gssd[23712]: ERROR: No credentials found for connection to server nfsvnx-172-16.priv.uco.es |
| | 78 | Nov 9 09:52:58 HPTONIN rpc.gssd[23712]: doing error downcall |
| | 79 | Nov 9 09:53:20 HPTONIN rpc.gssd[23712]: handling gssd upcall (nfs/clnt44) |
| | 80 | Nov 9 09:53:20 HPTONIN rpc.gssd[23712]: handling krb5 upcall (nfs/clnt44) |
| | 81 | Nov 9 09:53:20 HPTONIN rpc.gssd[23712]: krb5_use_machine_creds: uid 0 tgtname (null) |
| | 82 | Nov 9 09:53:20 HPTONIN rpc.gssd[23712]: ERROR: Key table file '/etc/krb5.keytab' not found while beginning keytab scan for keytab 'FILE:/etc/krb5.keytab' |
| | 83 | Nov 9 09:53:20 HPTONIN rpc.gssd[23712]: ERROR: Key table file '/etc/krb5.keytab' not found while beginning keytab scan for keytab 'FILE:/etc/krb5.keytab' |
| | 84 | Nov 9 09:53:20 HPTONIN rpc.gssd[23712]: ERROR: Key table file '/etc/krb5.keytab' not found while beginning keytab scan for keytab 'FILE:/etc/krb5.keytab' |
| | 85 | Nov 9 09:53:20 HPTONIN rpc.gssd[23712]: ERROR: gssd_refresh_krb5_machine_credential: no usable keytab entry found in keytab /etc/krb5.keytab for connection with host nfsvnx-172-16.priv.uco.es |
| | 86 | }}} |
| | 87 | pues creo un keytab siguiendo las instrucciones de https://kb.iu.edu/d/aumh de esta forma invocando la utilidad ktutil: |
| | 88 | {{{ |
| | 89 | ktutil: addent -password -p root@UCO.ES -k 1 -e rc4-hmac |
| | 90 | Password for root@UCO.ES: |
| | 91 | ktutil: addent -password -p root@UCO.ES -k 1 -e aes256-cts |
| | 92 | Password for root@UCO.ES: |
| | 93 | ktutil: wkt root.keytab |
| | 94 | ktutil: quit |
| | 95 | }}} |
| | 96 | Esto me genera un fichero root.keytab. Si intento usarlo veo que si se entera de que la clave generada es para root, pero que root@UCO.ES no está en la BBDD de kerberos |
| | 97 | {{{ |
| | 98 | root@HPTONIN:~# kinit root@UCO.ES -k -t root.keytab |
| | 99 | kinit: Client 'root@UCO.ES' not found in Kerberos database while getting initial credentials |
| | 100 | root@HPTONIN:~# kinit paco@UCO.ES -k -t root.keytab |
| | 101 | kinit: Keytab contains no suitable keys for paco@UCO.ES while getting initial credentials |
| | 102 | }}} |