| Evolution Connector for Microsoft Exchange Programmer’s Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
GByteArray * xntlm_negotiate (void); gboolean xntlm_parse_challenge (gpointer challenge, gint len, gchar **nonce, gchar **nt_domain, gchar **w2k_domain); GByteArray * xntlm_authenticate (const gchar *nonce, const gchar *domain, const gchar *user, const gchar *password, const gchar *workstation);
GByteArray * xntlm_negotiate (void);
Creates an NTLM Type 1 (Negotiate) message
Returns : |
the message |
gboolean xntlm_parse_challenge (gpointer challenge,
gint len,
gchar **nonce,
gchar **nt_domain,
gchar **w2k_domain);
Attempts to parse the challenge in challenge. If nonce is
non-NULL, the 8-byte nonce from challenge will be returned in it.
Likewise, if nt_domain and/or w2k_domain are non-NULL, the
server's domain names will be returned in them. The strings
returned must be freed with g_free().
|
buffer containing an NTLM Type 2 (Challenge) message |
|
the length of challenge
|
|
return variable for the challenge nonce, or NULL
|
|
return variable for the server NT domain, or NULL
|
|
return variable for the server W2k domain, or NULL
|
Returns : |
TRUE if the challenge could be parsed,
FALSE otherwise.
|
GByteArray * xntlm_authenticate (const gchar *nonce,
const gchar *domain,
const gchar *user,
const gchar *password,
const gchar *workstation);
Generates an NTLM Type 3 (Authenticate) message from the given
data. workstation is provided for completeness, but can basically
always be left NULL.
|
the nonce from an NTLM Type 2 (Challenge) message |
|
the NT domain to authenticate against |
|
the name of the user in domain
|
|
user's password
|
|
the name of the local workstation authenticated
against, or NULL.
|
Returns : |
the NTLM Type 3 message |