## e2k-kerberos

e2k-kerberos — Kerberos utilities

## Synopsis

    enum                E2kKerberosResult;
    E2kKerberosResult   e2k_kerberos_change_password        (const gchar *user,
                                                             const gchar *domain,
                                                             const gchar *old_password,
                                                             const gchar *new_password);
    E2kKerberosResult   e2k_kerberos_check_password         (const gchar *user,
                                                             const gchar *domain,
                                                             const gchar *password);

## Description

## Details

### enum E2kKerberosResult

    typedef enum {
    	E2K_KERBEROS_OK,
    	E2K_KERBEROS_USER_UNKNOWN,
    	E2K_KERBEROS_PASSWORD_INCORRECT,
    	E2K_KERBEROS_PASSWORD_EXPIRED,
    	E2K_KERBEROS_PASSWORD_TOO_WEAK,

    	E2K_KERBEROS_KDC_UNREACHABLE,
    	E2K_KERBEROS_TIME_SKEW,

    	E2K_KERBEROS_FAILED
    } E2kKerberosResult;

### e2k_kerberos_change_password ()

    E2kKerberosResult   e2k_kerberos_change_password        (const gchar *user,
                                                             const gchar *domain,
                                                             const gchar *old_password,
                                                             const gchar *new_password);

Changes the password for the given user

`user` : | username
`domain` : | Windows (2000) domain name
`old_password` : | currrent password
`new_password` : | password to be changed to
Returns : | an E2kKerberosResult

### e2k_kerberos_check_password ()

    E2kKerberosResult   e2k_kerberos_check_password         (const gchar *user,
                                                             const gchar *domain,
                                                             const gchar *password);

Checks if the password is valid, invalid, or expired

`user` : | username
`domain` : | Windows (2000) domain name
`password` : | current password
Returns : | `E2K_KERBEROS_OK`, `E2K_KERBEROS_USER_UNKNOWN`, `E2K_KERBEROS_PASSWORD_INCORRECT`, `E2K_KERBEROS_PASSWORD_EXPIRED`, or `E2K_KERBEROS_FAILED` (for unknown errors)