Open trispace opened 8 months ago
Good catch and equally good report, thanks. The patch attached above fixes the problem.
I really don't know why glibc complains about this, there is no overflow. I think it's a bug in glibc.
I'll make an MR for the fix next week.
Oops! Didn't even realise, until now, that I posted this to the wrong place, sorry.
On a RHEL8 machine with sssd version 2.9.1-4.el8_9.5.x86_64 we are experiencing the following situation:
Accessing /tools/Mentor (where "Mentor" is the correct case sensitive directory name on the NFS server) the automount for the auto.tools map succeeds
and the entry gets stored in the sssd cache:
When accessing the nonexistent /tools/mentor automounted directory however, the access hangs for ~1,5 minutes:
while sssd keeps querying the LDAP server for the automount entry:
and sssd logs:
and autofs finally logs:
It seems that sssd tries to save 'auto.tools:mentor' in a loop but fails since 'auto.tools:Mentor' already exists.
Older sssd versions (such as the one in RHEL7) immediately return a "No such file or directory" while accessing the nonexistent /tools/mentor automounted directory.
While I think by default LDAP searches are case insensitive and thus a record is returned for both 'mentor' and 'Mentor' LDAP searches I'd like to know if sssd's cacheing behavior is correct in this case.