summaryrefslogtreecommitdiff
path: root/source/include/ads.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/include/ads.h')
-rw-r--r--source/include/ads.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/include/ads.h b/source/include/ads.h
index 5ae127ff288..4a20d0e79fd 100644
--- a/source/include/ads.h
+++ b/source/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