diff options
author | Günther Deschner <gd@samba.org> | 2008-10-10 15:18:02 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-10 15:37:00 +0200 |
commit | 65dc0c3e2fa2b557d1542a14641381a3d1973831 (patch) | |
tree | a1acb223f57ade95d65be0c0aa84238bbbf9dea0 /source3/nsswitch/libwbclient/wbclient.h | |
parent | f33f888de708767b9682202701063fb86250a36e (diff) | |
download | samba-65dc0c3e2fa2b557d1542a14641381a3d1973831.tar.gz samba-65dc0c3e2fa2b557d1542a14641381a3d1973831.tar.bz2 samba-65dc0c3e2fa2b557d1542a14641381a3d1973831.zip |
libwbclient: add wbcLogonUser().
Guenther
Diffstat (limited to 'source3/nsswitch/libwbclient/wbclient.h')
-rw-r--r-- | source3/nsswitch/libwbclient/wbclient.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source3/nsswitch/libwbclient/wbclient.h b/source3/nsswitch/libwbclient/wbclient.h index c8e62daf72..00a3c98966 100644 --- a/source3/nsswitch/libwbclient/wbclient.h +++ b/source3/nsswitch/libwbclient/wbclient.h @@ -238,6 +238,17 @@ struct wbcNamedBlob { }; /** + * @brief Logon User Parameters + **/ + +struct wbcLogonUserParams { + const char *username; + const char *password; + size_t num_blobs; + struct wbcNamedBlob *blobs; +}; + +/** * @brief ChangePassword Parameters **/ @@ -329,6 +340,18 @@ struct wbcAuthUserInfo { struct wbcSidWithAttr *sids; }; +/** + * @brief Logon User Information + * + * Some of the strings are maybe NULL + **/ + +struct wbcLogonUserInfo { + struct wbcAuthUserInfo *info; + size_t num_blobs; + struct wbcNamedBlob *blobs; +}; + /* wbcAuthUserInfo->user_flags */ #define WBC_AUTH_USER_INFO_GUEST 0x00000001 @@ -613,6 +636,11 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params, struct wbcAuthUserInfo **info, struct wbcAuthErrorInfo **error); +wbcErr wbcLogonUser(const struct wbcLogonUserParams *params, + struct wbcLogonUserInfo **info, + struct wbcAuthErrorInfo **error, + struct wbcUserPasswordPolicyInfo **policy); + wbcErr wbcLogoffUser(const char *username, uid_t uid, const char *ccfilename); |