- added initial support for trusted domains in winbindd_ads
[kai/samba.git] / source3 / include / ads.h
index 5ae127ff28822c898bce95d31ed8549e5139e094..4a20d0e79fd71555eece6f4034412752d315b6d3 100644 (file)
@@ -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