When winbind is run on a DC and it has trust relationships to AD domains it crashes on a NULL pointer derreference. Patches to follow.
Created attachment 9158 [details] patchset for master
Please note that this patchset restores behaviour we still have in 4.0.x. The patches became necessary after the refactoring of the ads cached connection code was done in master and 4.1. Without the patches and when run on a DC, winbind immediately crashes when trying to bring up an LDAP connection to a trusted AD DC. Not good :)
Comment on attachment 9158 [details] patchset for master I think we should not use pdb_get_trusteddom_pw() and secrets_fetch_machine_password() directly. get_trust_pw_clear() should be used instead.
Günther, can you provide an updated patch or comment on Metze's reply, please? This is a blocker for 4.1.0. The release branch will be frozen in one week.
we first need to get it into master, btw.
Created attachment 9172 [details] revised patchset for master
Comment on attachment 9172 [details] revised patchset for master last patch needs to be split up.
Created attachment 9173 [details] updated patchset for master with review and 1 additional segfault protection Updated patchset for master
Comment on attachment 9173 [details] updated patchset for master with review and 1 additional segfault protection looks great, thanks.
Same patchset also applies to 4.1, Karolin please add this patchset.
Pushed to autobuild-v4-1-test.
Pushed to v4-1-test. Closing out bug report. Thanks!