Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-133586 / 25.04 / Fix domain join in Samba 4.21 #15402

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anodos325
Copy link
Contributor

Various winbind / libads parameters and commands changed in samba 4.21 and so we need to adjust.

Various winbind / libads parameters and commands changed in
samba 4.21 and so we need to adjust.
@anodos325 anodos325 added the jira label Jan 15, 2025
@bugclerk bugclerk changed the title Fix domain join in Samba 4.21 NAS-133586 / 25.04 / Fix domain join in Samba 4.21 Jan 15, 2025
@bugclerk
Copy link
Contributor

'Failed to set spn entry: '
f'{netads.stdout.decode().strip()}'
)
def _ad_set_spn(self, netbiosname, domainname):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be renamed to _ad_set_nfs_spns ?

f"{SAMBA_KEYTAB_DIR}/krb5.keytab0:account_name:sync_kvno:machine_password",
f"{SAMBA_KEYTAB_DIR}/krb5.keytab1:sync_spns:sync_kvno:machine_password",
f"{SAMBA_KEYTAB_DIR}/krb5.keytab2:spn_prefixes=nfs:sync_kvno:machine_password"
)

class TrueNASVfsObjects(enum.StrEnum):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The obligatory flake8 comment: Need an extra blank line between AD_KEYTABS_PARAMS and class TrueNASVfsObjects

@@ -108,6 +109,15 @@ def __tmp_krb5_keytab() -> str:
return tmpfile.name


@contextmanager
def temporary_keytab() -> str:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flake8 doesn't like the str as a return type:
Return type of generator function must be compatible with "Generator[Any, Any, Any]"   "Generator[Any, Any, Any]" is not assignable to "str"

Copy link
Contributor

@mgrimesix mgrimesix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than I agree with the comment from Brian and my Flake8 comments, it looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants