summaryrefslogtreecommitdiff
path: root/source4/include/ads.h
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 /source4/include/ads.h
parent7e0e663b3f8b90e22b9ea0796c10cdc43d35db25 (diff)
downloadsamba-10d88a02d727ae16336eec8f696a94b76c1132cd.tar.gz
samba-10d88a02d727ae16336eec8f696a94b76c1132cd.tar.bz2
samba-10d88a02d727ae16336eec8f696a94b76c1132cd.zip
r13652: Move some more stuff out off include/
(This used to be commit 26bf2a393b90acc098be0b30886dbba34d348a01)
Diffstat (limited to 'source4/include/ads.h')
-rw-r--r--source4/include/ads.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/source4/include/ads.h b/source4/include/ads.h
index f01302a597..46377fecd0 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"