diff options
-rw-r--r-- | source3/libads/kerberos_verify.c | 4 | ||||
-rw-r--r-- | source3/python/py_spoolss_drivers.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c index bdac22a902..961b92ccc6 100644 --- a/source3/libads/kerberos_verify.c +++ b/source3/libads/kerberos_verify.c @@ -26,6 +26,10 @@ #ifdef HAVE_KRB5 +#if !defined(HAVE_KRB5_PRINC_COMPONENT) +const krb5_data *krb5_princ_component(krb5_context, krb5_principal, int ); +#endif + /********************************************************************************** Try to verify a ticket using the system keytab... the system keytab has kvno -1 entries, so it's more like what microsoft does... see comment in utils/net_ads.c in the diff --git a/source3/python/py_spoolss_drivers.c b/source3/python/py_spoolss_drivers.c index 12190519ec..9424fe1527 100644 --- a/source3/python/py_spoolss_drivers.c +++ b/source3/python/py_spoolss_drivers.c @@ -190,12 +190,12 @@ PyObject *spoolss_hnd_getprinterdriver(PyObject *self, PyObject *args, werror = cli_spoolss_getprinterdriver( hnd->cli, hnd->mem_ctx, 0, &needed, &hnd->pol, level, - version, arch, &ctr); + arch, version, &ctr); if (W_ERROR_V(werror) == ERRinsufficientbuffer) werror = cli_spoolss_getprinterdriver( hnd->cli, hnd->mem_ctx, needed, NULL, &hnd->pol, - level, version, arch, &ctr); + level, arch, version, &ctr); if (!W_ERROR_IS_OK(werror)) { PyErr_SetObject(spoolss_werror, py_werror_tuple(werror)); |