summaryrefslogtreecommitdiff
path: root/source3/include/ads.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/ads.h')
-rw-r--r--source3/include/ads.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/ads.h b/source3/include/ads.h
index 5ae127ff28..4a20d0e79f 100644
--- a/source3/include/ads.h
+++ b/source3/include/ads.h
@@ -15,8 +15,19 @@ typedef struct {
time_t last_attempt;
char *password;
char *user_name;
+ char *server_realm;
} ADS_STRUCT;
+typedef struct {
+ /* Type of error returned by ads_connect: */
+ /* True corresponds GSS API, False - LDAP */
+ int error_type;
+ /* For error_type = False rc describes LDAP error */
+ int rc;
+ /* For error_type = True rc and minor_status describe GSS API error */
+ /* Where rc represents major_status of GSS API error */
+ int minor_status;
+} ADS_RETURN_CODE;
/* time between reconnect attempts */
#define ADS_RECONNECT_TIME 5