#783322 winbindd crashes if LDAP password fails to be retrieved from secrets.tdb

Package:
winbind
Source:
samba
Description:
service to resolve user and group information from Windows NT servers
Submitter:
Dmitry Katsubo
Date:
2015-04-26 11:51:04 UTC
Severity:
normal
Tags:
#783322#5
Date:
2015-04-25 22:13:16 UTC
From:
To:
Hello,

winbind reports "Failed to retrieve LDAP password from secrets.tdb" and
crashes creating a core dump.

Expected:

winbind correctly handles this situation, e.g. exits with error code.

#783322#10
Date:
2015-04-25 23:27:35 UTC
From:
To:
status 783322 +confirmed
status 783322 +upstream
thanks

Please set the LDAP database password using pdbedit.

This indeed shouldn't cause a segfault, merely a big error message in the logs.

Cheers,

Jelmer

#783322#15
Date:
2015-04-26 11:48:24 UTC
From:
To:
Thanks for suggestion, Jelmer.

Indeed after I have set the password "smbpasswd -w <password>" the
problem has gone. And you're right: the message of the issue is that
winbindd should not segfault, but should gracefully exit, or keep
retrying (but not aggressively, e.g. every 5 mins).