#include <time.h>
#endif
-
/************* CONFIGURATION ***************/
#define DEAD_DC_RETRY_INTERVAL 30
const char * obtain_challenge(void);
void manage_request(void);
-
#define ENCODED_PASS_LEN 24
#define MAX_USERNAME_LEN 255
#define MAX_DOMAIN_LEN 255
dc *current_dc;
char smb_error_buffer[1000];
-
/* Disconnects from the DC. A reconnection will be done upon the next request
*/
void
smberr = SMB_Get_Last_Error();
SMB_Get_Error_Msg(smberr, errstr, 1000);
-
if (handle == NULL) { /* couldn't connect */
debug("Couldn't connect to SMB Server. Error:%s\n", errstr);
return 1;
memcpy(user, tmp.str, tmp.l);
*(user + tmp.l) = '\0';
-
/* Authenticating against the NT response doesn't seem to work... */
tmp = ntlm_fetch_string(&(auth->hdr), auth_length, &auth->lmresponse, auth->flags);
if (tmp.str == NULL || tmp.l == 0) {
/* TODO: check against empty password!!!!! */
-
debug("checking domain: '%s', user: '%s', pass='%s'\n", domain, user, pass);
rv = SMB_Logon_Server(handle, user, pass, domain, 1);
return NULL;
}
-
void
manage_request()
{
return;
/********* END ********/
-
}
int