summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-02-23 11:29:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:04 -0500
commit10d88a02d727ae16336eec8f696a94b76c1132cd (patch)
tree0e62916d4248e645eab56a453ec74b7742597a53
parent7e0e663b3f8b90e22b9ea0796c10cdc43d35db25 (diff)
downloadsamba-10d88a02d727ae16336eec8f696a94b76c1132cd.tar.gz
samba-10d88a02d727ae16336eec8f696a94b76c1132cd.tar.xz
samba-10d88a02d727ae16336eec8f696a94b76c1132cd.zip
r13652: Move some more stuff out off include/
(This used to be commit 26bf2a393b90acc098be0b30886dbba34d348a01)
-rw-r--r--source4/include/ads.h71
-rw-r--r--source4/include/includes.h4
-rw-r--r--source4/lib/debug.h (renamed from source4/include/debug.h)0
-rw-r--r--source4/libcli/rap/rap.h (renamed from source4/include/rap.h)0
-rw-r--r--source4/libcli/util/doserr.h (renamed from source4/include/doserr.h)0
-rw-r--r--source4/libcli/util/nterr.h (renamed from source4/include/nterr.h)0
-rw-r--r--source4/ntvfs/ipc/ipc_rap.c2
-rw-r--r--source4/ntvfs/ipc/rap_server.c2
-rw-r--r--source4/torture/rap/rap.c2
9 files changed, 5 insertions, 76 deletions
diff --git a/source4/include/ads.h b/source4/include/ads.h
index f01302a5976..46377fecd09 100644
--- a/source4/include/ads.h
+++ b/source4/include/ads.h
@@ -19,77 +19,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
-typedef struct ads_struct {
- void *ld; /* the active ldap structure */
- struct ipv4_addr ldap_ip; /* the ip of the active connection, if any */
- time_t last_attempt; /* last attempt to reconnect */
- int ldap_port;
-
- int is_mine; /* do I own this structure's memory? */
-
- /* info needed to find the server */
- struct {
- char *realm;
- char *workgroup;
- char *ldap_server;
- char *ldap_uri;
- int foreign; /* set to 1 if connecting to a foreign realm */
- } server;
-
- /* info needed to authenticate */
- struct {
- char *realm;
- char *password;
- char *user_name;
- char *kdc_server;
- uint_t flags;
- int time_offset;
- time_t expire;
- } auth;
-
- /* info derived from the servers config */
- struct {
- char *realm;
- char *bind_path;
- char *ldap_server_name;
- time_t current_time;
- } config;
-} ADS_STRUCT;
-
-/* there are 5 possible types of errors the ads subsystem can produce */
-enum ads_error_type {ENUM_ADS_ERROR_KRB5, ENUM_ADS_ERROR_GSS,
- ENUM_ADS_ERROR_LDAP, ENUM_ADS_ERROR_SYSTEM, ENUM_ADS_ERROR_NT};
-
-typedef struct {
- enum ads_error_type error_type;
- union err_state{
- int rc;
- NTSTATUS nt_status;
- } err;
- /* For error_type = ENUM_ADS_ERROR_GSS minor_status describe GSS API error */
- /* Where rc represents major_status of GSS API error */
- int minor_status;
-} ADS_STATUS;
-
-typedef void **ADS_MODLIST;
-
-/* macros to simplify error returning */
-#define ADS_ERROR(rc) ADS_ERROR_LDAP(rc)
-#define ADS_ERROR_LDAP(rc) ads_build_error(ENUM_ADS_ERROR_LDAP, rc, 0)
-#define ADS_ERROR_SYSTEM(rc) ads_build_error(ENUM_ADS_ERROR_SYSTEM, rc?rc:EINVAL, 0)
-#define ADS_ERROR_KRB5(rc) ads_build_error(ENUM_ADS_ERROR_KRB5, rc, 0)
-#define ADS_ERROR_GSS(rc, minor) ads_build_error(ENUM_ADS_ERROR_GSS, rc, minor)
-#define ADS_ERROR_NT(rc) ads_build_nt_error(ENUM_ADS_ERROR_NT,rc)
-
-#define ADS_ERR_OK(status) ((status.error_type == ENUM_ADS_ERROR_NT) ? NT_STATUS_IS_OK(status.err.nt_status):(status.err.rc == 0))
-#define ADS_SUCCESS ADS_ERROR(0)
-
-/* time between reconnect attempts */
-#define ADS_RECONNECT_TIME 5
-
-/* timeout on searches */
-#define ADS_SEARCH_TIMEOUT 10
/* ldap control oids */
#define ADS_PAGE_CTL_OID "1.2.840.113556.1.4.319"
diff --git a/source4/include/includes.h b/source4/include/includes.h
index ed8de0607d5..3babb4eef5e 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -95,11 +95,11 @@ struct ipv4_addr {
#include "nt_status.h"
#include "structs.h"
#include "trans2.h"
-#include "nterr.h"
+#include "libcli/util/nterr.h"
#include "charset/charset.h"
#include "core.h"
#include "debug.h"
-#include "doserr.h"
+#include "libcli/util/doserr.h"
#include "enums.h"
#include "smb_macros.h"
#include "byteorder.h"
diff --git a/source4/include/debug.h b/source4/lib/debug.h
index 8ff937e7b93..8ff937e7b93 100644
--- a/source4/include/debug.h
+++ b/source4/lib/debug.h
diff --git a/source4/include/rap.h b/source4/libcli/rap/rap.h
index c831f6f0079..c831f6f0079 100644
--- a/source4/include/rap.h
+++ b/source4/libcli/rap/rap.h
diff --git a/source4/include/doserr.h b/source4/libcli/util/doserr.h
index 5b8ff1dd3de..5b8ff1dd3de 100644
--- a/source4/include/doserr.h
+++ b/source4/libcli/util/doserr.h
diff --git a/source4/include/nterr.h b/source4/libcli/util/nterr.h
index 08e3fa2db0f..08e3fa2db0f 100644
--- a/source4/include/nterr.h
+++ b/source4/libcli/util/nterr.h
diff --git a/source4/ntvfs/ipc/ipc_rap.c b/source4/ntvfs/ipc/ipc_rap.c
index d93b67b7153..f97ae4cd896 100644
--- a/source4/ntvfs/ipc/ipc_rap.c
+++ b/source4/ntvfs/ipc/ipc_rap.c
@@ -20,7 +20,7 @@
*/
#include "includes.h"
-#include "rap.h"
+#include "libcli/rap/rap.h"
#define NERR_Success 0
#define NERR_badpass 86
diff --git a/source4/ntvfs/ipc/rap_server.c b/source4/ntvfs/ipc/rap_server.c
index c69ba2d1687..b68f806ba16 100644
--- a/source4/ntvfs/ipc/rap_server.c
+++ b/source4/ntvfs/ipc/rap_server.c
@@ -20,7 +20,7 @@
*/
#include "includes.h"
-#include "rap.h"
+#include "libcli/rap/rap.h"
#include "librpc/gen_ndr/ndr_srvsvc.h"
/* At this moment these are just dummy functions, but you might get the
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index e9cb45e3b01..77cf2a1c0ae 100644
--- a/source4/torture/rap/rap.c
+++ b/source4/torture/rap/rap.c
@@ -21,7 +21,7 @@
#include "includes.h"
#include "torture/torture.h"
-#include "rap.h"
+#include "libcli/rap/rap.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"