r13652: Move some more stuff out off include/
authorJelmer Vernooij <jelmer@samba.org>
Thu, 23 Feb 2006 11:29:01 +0000 (11:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:52:04 +0000 (13:52 -0500)
(This used to be commit 26bf2a393b90acc098be0b30886dbba34d348a01)

source4/include/ads.h
source4/include/includes.h
source4/lib/debug.h [moved from source4/include/debug.h with 100% similarity]
source4/libcli/rap/rap.h [moved from source4/include/rap.h with 100% similarity]
source4/libcli/util/doserr.h [moved from source4/include/doserr.h with 100% similarity]
source4/libcli/util/nterr.h [moved from source4/include/nterr.h with 100% similarity]
source4/ntvfs/ipc/ipc_rap.c
source4/ntvfs/ipc/rap_server.c
source4/torture/rap/rap.c

index f01302a597624ed70d699e7d1a6ed267c599c893..46377fecd099e680a05bb823cb3d105a8731ac26 100644 (file)
    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"
index ed8de0607d5cc9844b2b79e38b8fbd904bd09aa4..3babb4eef5eaec7f895fca7ce45dab88fce35ac5 100644 (file)
@@ -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"
similarity index 100%
rename from source4/include/debug.h
rename to source4/lib/debug.h
index d93b67b7153ee0885ca3ab293be4b92e38792dbd..f97ae4cd896c3e2fb9eb37e291f14b11ed95bffd 100644 (file)
@@ -20,7 +20,7 @@
 */
 
 #include "includes.h"
-#include "rap.h"
+#include "libcli/rap/rap.h"
 
 #define NERR_Success 0
 #define NERR_badpass 86
index c69ba2d1687ee61c2ba005d875f5440a52e9f42a..b68f806ba16da07490b3d8260c088a2147c7a389 100644 (file)
@@ -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
index e9cb45e3b0146eb450b1f7b8cbd779a2dfc0a1af..77cf2a1c0ae7b44553f6d5babd8c155d512f6009 100644 (file)
@@ -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"