Login issue with nginx pun

Hi all,

For some users, when they log in, they just get this message:

getgrnam(" allstaff ") failed in /var/lib/ondemand-nginx/config/puns/fakeuser.m.conf:1

I can see the error in the logs:

ondemand-nginx/error.log:2021/02/04 18:22:38 [emerg] 22435#0: getgrnam(" allstaff ") failed in /var/lib/ondemand-nginx/config/puns/fakeuser.m.conf:1

I have checked the group allstaff, it seems fine (before the user logs in):

getent group allstaff

wbinfo -g | grep allstaff

But once the log in error occurs, getent group allstaff returns nothing, which is extremely strange.

Using ondemand-dex, with winbind on Centos 7.

Has anyone run into this situation?

Any help is appreciated.

Kind regards,


Could you take a look at the system logs, journalctl or /var/log/messages for winbind logs. Also maybe increase the winbind log level to see what sort of errors it’s throwing

Thank you for the reply. Will be on keeping an eye to catch it when it occurs.

King regards.

Tracked down the issue. Not OOD. Winbind was having issues with a very large AD group. Using winbind expand groups = 0 on smb.conf helped in our case.