-/*
+/*
* Unix SMB/CIFS implementation.
* Kerberos error mapping functions
* Copyright (C) Guenther Deschner 2005
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "includes.h"
-#include "smb_krb5.h"
-
-#include "krb5_errs.h"
+#include "krb5_samba.h"
#ifdef HAVE_KRB5
NTSTATUS krb5_to_nt_status(krb5_error_code kerberos_error)
{
int i;
-
+
if (kerberos_error == 0) {
return NT_STATUS_OK;
}
-
+
for (i=0; NT_STATUS_V(krb5_to_nt_status_map[i].ntstatus); i++) {
if (kerberos_error == krb5_to_nt_status_map[i].krb5_code)
return krb5_to_nt_status_map[i].ntstatus;
krb5_error_code nt_status_to_krb5(NTSTATUS nt_status)
{
int i;
-
+
if NT_STATUS_IS_OK(nt_status) {
return 0;
}
-
+
for (i=0; NT_STATUS_V(nt_status_to_krb5_map[i].ntstatus); i++) {
if (NT_STATUS_EQUAL(nt_status,nt_status_to_krb5_map[i].ntstatus))
return nt_status_to_krb5_map[i].krb5_code;
}
#endif
-
time_t *tgs_expire,
const char *impersonate_princ_s);
+NTSTATUS krb5_to_nt_status(krb5_error_code kerberos_error);
+krb5_error_code nt_status_to_krb5(NTSTATUS nt_status);
+
#endif /* _KRB5_SAMBA_H */
add_deps = ' asn1'
bld.SAMBA_LIBRARY('krb5samba',
- source='krb5_samba.c gss_samba.c keytab_util.c enctype_convert.c',
- deps='samba-util talloc krb5 com_err gssapi' + add_deps,
+ source='''
+ krb5_samba.c
+ gss_samba.c
+ keytab_util.c
+ enctype_convert.c
+ krb5_errs.c
+ ''',
+ deps='''
+ samba-util
+ talloc
+ krb5
+ com_err
+ gssapi
+ ''' + add_deps,
private_library=True
)
#include "system/gssapi.h"
#include "smb_ldap.h"
#include "libads/ads_status.h"
-#include "krb5_errs.h"
/*
build a ADS_STATUS structure
#include "auth/gensec/gensec.h"
#include "auth/gensec/gensec_internal.h" /* TODO: remove this */
#include "../libcli/auth/spnego.h"
-#include "krb5_errs.h"
#ifdef HAVE_KRB5
#include "secrets.h"
#include "../lib/tsocket/tsocket.h"
#include "lib/util/asn1.h"
-#include "krb5_errs.h"
#ifdef HAVE_KRB5
+++ /dev/null
-/*
- * Unix SMB/CIFS implementation.
- * Kerberos error mapping functions
- * Copyright (C) Guenther Deschner 2005
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __KRB5_ERRS_H__
-#define __KRB5_ERRS_H__
-
-#include "replace.h"
-#include "libcli/util/ntstatus.h"
-#include <krb5.h>
-
-NTSTATUS krb5_to_nt_status(krb5_error_code kerberos_error);
-krb5_error_code nt_status_to_krb5(NTSTATUS nt_status);
-
-#endif
#include "rpc_client/cli_pipe.h"
#include "../libcli/drsuapi/drsuapi.h"
#include "../librpc/gen_ndr/ndr_drsuapi_c.h"
-#include "libads/krb5_errs.h"
/****************************************************************
****************************************************************/
#include "libnet/libnet_dssync.h"
#include "libnet/libnet_keytab.h"
#include "librpc/gen_ndr/ndr_drsblobs.h"
-#include "libads/krb5_errs.h"
#if defined(HAVE_ADS)
#include "../libcli/smb/smb_seal.h"
#include "lib/param/param.h"
#include "../libcli/smb/smb2_negotiate_context.h"
-#include "libads/krb5_errs.h"
#define STAR_SMBSERVER "*SMBSERVER"
#include "lib/krb5_wrap/krb5_samba.h"
#include "lib/util/time_basic.h"
#include "../libds/common/flags.h"
-#include "libads/krb5_errs.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB
#include "../libcli/auth/libcli_auth.h"
#include "smb_krb5.h"
#include "libads/kerberos_proto.h"
-#include "libads/krb5_errs.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_WINBIND
#include "lib/afs/afs_funcs.h"
#include "libsmb/samlogon_cache.h"
#include "rpc_client/util_netlogon.h"
-#include "libads/krb5_errs.h"
#include "param/param.h"
#include "messaging/messaging.h"
#include "lib/crypto/gnutls_helpers.h"
lib/server_prefork.c
lib/server_prefork_util.c
lib/ldap_escape.c
- libads/krb5_errs.c
lib/system_smbd.c
lib/audit.c
lib/tevent_wait.c