1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

s4:provision.c - "provsion_store_self_join" - don't set the realm if it's NULL

The realm can be NULL when this function is called by "libnet_Join_primary_domain".
This seems to be a valid value since "libnet_JoinDomain" is allowed to return an
empty realm if we are not in a ADS domain.
This commit is contained in:
Matthias Dieter Wallnöfer 2010-02-15 10:29:47 +01:00
parent 05425fcf14
commit 28bd9719e5

View File

@ -280,8 +280,10 @@ NTSTATUS provision_store_self_join(TALLOC_CTX *mem_ctx, struct loadparm_context
PyLdb_FromLdbContext(ldb));
PyDict_SetItemString(parameters, "domain",
PyString_FromString(settings->domain_name));
PyDict_SetItemString(parameters, "realm",
PyString_FromString(settings->realm));
if (settings->realm != NULL) {
PyDict_SetItemString(parameters, "realm",
PyString_FromString(settings->realm));
}
PyDict_SetItemString(parameters, "machinepass",
PyString_FromString(settings->machine_password));
PyDict_SetItemString(parameters, "netbiosname",