Hi,
I installed autofs and configured it to work with local credentials
> cat /etc/auto.master.d/cifs.autofs
/share /etc/autofs.cifs
> ll -d /share
drwxr-xr-x 3 root root 0 sept. 29 11:31 /share/
> cat /etc/autofs.cifs
* -fstype=cifs,rw,noperm,credentials=/home/MYACCOUNT/.smbcredentials :/MYSERVER.FR/user/home/&
autofs restarted, works like a charm (either laptop connected over ethernet, or wifi+VPN), I can access the content of my home directory in /share/MYACCOUNT
I then tried using kerberos…
> cat /etc/autofs.cifs
* -fstype=cifs,rw,noperm,sec=krb5,cruid=${UID},uid=${UID} :/MYSERVER.FR/user/home/&
autofs restarted, I can’t access the content of my home directory, even if laptop connected over ethernet. I rebooted, just to be sure…but the the problem remains
>tail -f /var/log/syslog
2026-09-29T12:17:01.001098+02:00 COMPUTER-NAME kernel: CIFS: Attempting to mount //MYSERVER.FR/user/home/MYACCOUNT
2026-09-29T12:17:01.008644+02:00 COMPUTER-NAME cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=MYSERVER.FR;ip4=xxx.xxx.xxx.xxx;sec=krb5;uid=0x0;creduid=0x0;user=root;pid=0x110a;upcall_target=app
2026-09-29T12:17:01.009657+02:00 COMPUTER-NAME cifs.upcall: ver=2
2026-09-29T12:17:01.009940+02:00 COMPUTER-NAME cifs.upcall: host=MYSERVER.FR
2026-09-29T12:17:01.010238+02:00 COMPUTER-NAME cifs.upcall: ip=xxx.xxx.xxx.xxx
2026-09-29T12:17:01.010498+02:00 COMPUTER-NAME cifs.upcall: sec=1
2026-09-29T12:17:01.010699+02:00 COMPUTER-NAME cifs.upcall: uid=0
2026-09-29T12:17:01.010907+02:00 COMPUTER-NAME cifs.upcall: creduid=0
2026-09-29T12:17:01.011152+02:00 COMPUTER-NAME cifs.upcall: user=root
2026-09-29T12:17:01.011396+02:00 COMPUTER-NAME cifs.upcall: pid=4362
2026-09-29T12:17:01.011504+02:00 COMPUTER-NAME cifs.upcall: upcall_target=app
2026-09-29T12:17:01.011585+02:00 COMPUTER-NAME cifs.upcall: upcall_target=app, switching namespaces to application thread
2026-09-29T12:17:01.011928+02:00 COMPUTER-NAME cifs.upcall: get_cachename_from_process_env: pid == 0
2026-09-29T12:17:01.012384+02:00 COMPUTER-NAME cifs.upcall: get_existing_cc: default ccache is FILE:/tmp/krb5cc_0
2026-09-29T12:17:01.012710+02:00 COMPUTER-NAME cifs.upcall: check_service_ticket_exists: unable to get client principal from cache: No credentials cache found (filename: /tmp/krb5cc_0)
2026-09-29T12:17:01.012894+02:00 COMPUTER-NAME cifs.upcall: get_tgt_time: unable to get principal
2026-09-29T12:17:01.013142+02:00 COMPUTER-NAME cifs.upcall: main: valid TGT is not present in credential cache
2026-09-29T12:17:01.013298+02:00 COMPUTER-NAME cifs.upcall: krb5_get_init_creds_keytab: -1765328203
2026-09-29T12:17:01.013454+02:00 COMPUTER-NAME cifs.upcall: handle_krb5_mech: getting service ticket for MYSERVER.FR
2026-09-29T12:17:01.013615+02:00 COMPUTER-NAME cifs.upcall: handle_krb5_mech: using GSS-API
2026-09-29T12:17:01.018416+02:00 COMPUTER-NAME cifs.upcall: GSS-API error init_sec_context: No credentials were supplied, or the credentials were unavailable or inaccessible
2026-09-29T12:17:01.018866+02:00 COMPUTER-NAME cifs.upcall: GSS-API error init_sec_context: No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_0)
2026-09-29T12:17:01.019087+02:00 COMPUTER-NAME cifs.upcall: handle_krb5_mech: failed to obtain service ticket via GSS (458752)
2026-09-29T12:17:01.019275+02:00 COMPUTER-NAME cifs.upcall: Unable to obtain service ticket
2026-09-29T12:17:01.019449+02:00 COMPUTER-NAME cifs.upcall: Exit status 458752
2026-09-29T12:17:01.020087+02:00 COMPUTER-NAME kernel: CIFS: VFS: \\MYSERVER.FR failed to create a new SMB session with Kerberos: -126
2026-09-29T12:17:01.020113+02:00 COMPUTER-NAME kernel: CIFS: VFS: cifs_mount failed w/return code = -126
my sssd.conf file seems OK :
> cat /etc/sssd/sssd.conf
[sssd]
domains = XXX.local
config_file_version = 2
services = nss,pam
[domain/XXX.local]
ad_domain = XXX.local
krb5_realm = XXX.LOCAL
realmd_tags = manages-system joined-with-samba
# cache des autorisations
cache_credentials = true
# fournisseur des identités et des autorisations
id_provider = ad
auth_provider = ad
krb5_store_password_if_offline = true
# paramètrage de l'identité / mapping
default_shell = /bin/bash
ldap_id_mapping = false
use_fully_qualified_names = false
access_provider = ad
enumerate = true
ldap_user_principal = userPrincipalName
ldap_user_name = samAccountNAme
ad_gpo_access_control = disabled
fallback_homedir = /home/%u
debug_level = 5
# Intégration dans le DNS
dns_discovery_domain = XXX.local
dyndns_update = true
dyndns_refresh_interval = 43200
dyndns_update_ptr = true
dyndns_ttl = 3600
any idea what could be wrong?
Gérald