Why I'm getting errors like "winbindd: Idmap module passdb already registered!" using samba3.5?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5.6
  • Red Hat Enterprise Linux 6.1
  • Samba 3.5 (samba3x series)

Issue

  • Server was using samba3.0 in a printer server solution (samba+winbind+cups) and everything was ok.  After migration to samba3.5 you can notice a high amount of these messages flooding /var/log/messages:

    Apr 28 12:57:59 server1 winbindd[27826]: [2011/04/28 12:57:59.163305, 0] winbindd/idmap.c:149(smb_register_idmap)
    Apr 28 12:57:59 server1 winbindd[27826]: Idmap module nss already registered!
    Apr 28 12:58:49 server1 winbindd[27826]: [2011/04/28 12:58:49.604868, 0] winbindd/idmap.c:149(smb_register_idmap)
    Apr 28 12:58:49 server1 winbindd[27826]: Idmap module passdb already registered!
    

Resolution

These messages are being logged because there are two shares pointing to the same path in smb.conf:

[PDFFOLDER]
comment = Share PDF files
path = /pdf



[PDF]
comment = PDF printers
path = /pdf

Samba performs internal checking about all shares and when a duplicated path is found the messages are logged. It is only informative messages and does not represent a problem.

Samba will continue to work properly with both shares. The only inconvenience is that your log will be full of these messages and, depending on the load of your server, this extra I/O can degrade performance in some cases.

To solve it, just change the paths to unique ones and remove debug level of logs.

Red Hat Enterprise Linux 6

A similar issue has been fixed for Red Hat Enterprise Linux 6 as of samba-3.5.10-114.el6 (from RHBA-2011-1519):

Previously, certain Samba components logged a large number of unimportant internal messages to the system log. This bug has been fixed in this update by increasing the log level for the log messages.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments