Created a PR at https://github.com/yast/yast-samba-client/pull/59 with the possible fixes. Tested them on TW and I was able to join AD. Please, review and test it.