-
Notifications
You must be signed in to change notification settings - Fork 494
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
base: master
Are you sure you want to change the base?
Conversation
Various winbind / libads parameters and commands changed in samba 4.21 and so we need to adjust.
'Failed to set spn entry: ' | ||
f'{netads.stdout.decode().strip()}' | ||
) | ||
def _ad_set_spn(self, netbiosname, domainname): |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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"
There was a problem hiding this 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.
Various winbind / libads parameters and commands changed in samba 4.21 and so we need to adjust.