[SOLVED] Samba worker ldap process at 100% CPU

Come here to share your tips and tricks for using Samba4
Locked
stephane.borgne
Messages: 3
Registration: January 19, 2022 - 2:02 PM

January 17, 2024 - 08:55

Hello,

Our Samba AD controller is almost constantly at 100% on the "samba: task[ldap] pre-forked worker" processes.
From my research, processes in a CLOSE_WAIT state (there are a few dozen on our server) seem to be the cause.
I can't find the source of the problem or a solution...
Has anyone in the user community encountered this before? How did you resolve it?

Thanks in advance for any tips or tricks that would help.

Stéphane
Stéphane Borgne,
IT Architect for Colleges,
Savoie Departmental Council
yalemu
Messages: 8
Registration: December 20, 2017 - 9:40 AM

January 17, 2024 - 10:41

Hi Stéphane,

What version of Samba is running on this server?
We'd need to check the machine's specs (RAM/CPU) and load. Are there any applications making specific LDAP requests (with certain OIDs, for example, or nested groups, or with insufficient scope)?

Yohannès,
Tranquil IT
stephane.borgne
Messages: 3
Registration: January 19, 2022 - 2:02 PM

January 17, 2024 - 11:57

Hi Yohannès,

Thanks for your reply, the "nested group / scope" clue put me on the right track!

The DCs transmit (via rsyslog) user logins/logouts to an agent on another machine. This agent is linked to our firewall/internet filter... which makes LDAP queries to determine which filtering policy to apply.

By stopping the agent, the firewall no longer has any information, so it stops querying the directory, and activity returns to normal...

Some tweaking ahead for the firewall admin :/
Stéphane Borgne,
IT Architect for Colleges,
Savoie Departmental Council
yalemu
Messages: 8
Registration: December 20, 2017 - 9:40 AM

January 17, 2024 - 6:24 PM

Cool, thanks for your feedback!

Indeed, it must be quite demanding. :)

Have a good evening,

Yohannès
Locked