Skip to content

gssproxy and nfs does not renew tickets #123

@gschwind

Description

@gschwind

Hello,

gssproxy does not always renew the nfs ticket correctly. In the log attached, i.e. the full systemd log, the ticket was renewed few time before the renew seems to fail, while the renew lifetime is not expired. To diagnose the issue I did the following testing setup:

10.202.160.90 : kerberos kdc server
10.202.160.92: nfs server with gss/krb5i export
10.202.160.94: nfs client with gssproxy and using the export above

I created a script python that write the current date and time to a file every 2 minutes. I run this script on the nfs client to write a file on the exported nfs directory as regular user (user1000).

the configuration of kerberos:

[libdefaults]
	default_realm = TEST-OIE.KERBEROS.REALM

	dns_lookup_realm = false
	dns_lookup_kdc = false


# The following krb5.conf variables are only for MIT Kerberos.
	kdc_timesync = 1
	ccache_type = 4
	forwardable = true
	proxiable = true
	rdns = false

        # ~1 years
	renew_lifetime = 31536000
        # 10 mins for testing purpose
	ticket_lifetime = 600

# The following libdefaults parameters are only for Heimdal Kerberos.
	fcc-mit-ticketflags = true

[logging]
kdc = SYSLOG:DEBUG

[realms]
	TEST-OIE.KERBEROS.REALM = {
		kdc = 10.202.160.90
		admin_server = 10.202.160.90
	}

[domain_realm]
	.interne.mines-paristech.fr = TEST-OIE.KERBEROS.REALM

The gssproxy setup:

[gssproxy]
debug = true
debug_level = 3
[service/nfs-server]
  mechs = krb5
  socket = /run/gssproxy.sock
  cred_store = keytab:/etc/krb5.keytab
  trusted = yes
  kernel_nfsd = yes
  euid = 0
[service/nfs-client]
  mechs = krb5
  min_lifetime = 120
  cred_store = keytab:/etc/krb5.keytab
  cred_store = ccache:FILE:/tmp/gssproxy/clients/krb5cc_%U
  cred_store = client_keytab:/var/lib/gssproxy/clients/%u.keytab
  cred_usage = initiate
  allow_any_uid = yes
  trusted = yes
  kernel_nfsd = yes
  euid = 0

journal.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions