diff options
Diffstat (limited to 'cldap_ping.h')
-rw-r--r-- | cldap_ping.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cldap_ping.h b/cldap_ping.h new file mode 100644 index 0000000..9a23e72 --- /dev/null +++ b/cldap_ping.h @@ -0,0 +1,14 @@ +#ifndef _CLDAP_PING_H_ +#define _CLDAP_PING_H_ + +#define CLDAP_PING_NETWORK_ERROR -1 +#define CLDAP_PING_TRYNEXT -2 +#define CLDAP_PING_PARSE_ERROR_LDAP -3 +#define CLDAP_PING_PARSE_ERROR_NETLOGON -4 + +// returns CLDAP_PING_TRYNEXT if you should use another dc +// any other error code < 0 is a fatal error +// site_name must be of MAXCDNAME size! +int cldap_ping(char *domain, sa_family_t family, void *addr, char *site_name); + +#endif /* _CLDAP_PING_H_ */ |