mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
r24752: Make sure to return properly when the locator is called from within winbindd.
Guenther (This used to be commit 6cf7187e88b4d4c1dfe90fcab459e39a0dbd3a11)
This commit is contained in:
parent
d68a5c2718
commit
6227abc043
@ -340,16 +340,12 @@ krb5_error_code smb_krb5_locator_lookup(void *private_data,
|
||||
"failed to query winbindd\n",
|
||||
(unsigned int)getpid());
|
||||
#endif
|
||||
|
||||
#ifdef KRB5_PLUGIN_NO_HANDLE
|
||||
return KRB5_PLUGIN_NO_HANDLE;
|
||||
#else
|
||||
return KRB5_KDC_UNREACH; /* Heimdal */
|
||||
#endif
|
||||
goto failed;
|
||||
}
|
||||
} else {
|
||||
/* FIXME: here comes code for locator being called from within
|
||||
* winbind */
|
||||
goto failed;
|
||||
}
|
||||
#ifdef DEBUG_KRB5
|
||||
fprintf(stderr, "[%5u]: smb_krb5_locator_lookup: "
|
||||
@ -367,6 +363,13 @@ krb5_error_code smb_krb5_locator_lookup(void *private_data,
|
||||
SAFE_FREE(kdc_name);
|
||||
|
||||
return ret;
|
||||
|
||||
failed:
|
||||
#ifdef KRB5_PLUGIN_NO_HANDLE
|
||||
return KRB5_PLUGIN_NO_HANDLE;
|
||||
#else
|
||||
return KRB5_KDC_UNREACH; /* Heimdal */
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef HEIMDAL_KRB5_LOCATE_PLUGIN_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user