libwbclient: Add placeholder function for WINBINDD_CCACHE_NTLMAUTH
authorKai Blin <kai@samba.org>
Sun, 23 Nov 2008 14:16:17 +0000 (15:16 +0100)
committerKai Blin <kai@samba.org>
Tue, 25 Nov 2008 08:28:25 +0000 (09:28 +0100)
source3/nsswitch/libwbclient/wbc_pam.c
source3/nsswitch/libwbclient/wbclient.h

index 713ba2e65b5baed7849a74f0a9fc1a76658acaef..401d2ad2c3f6b57d4a4168ed114ddbaac93346e7 100644 (file)
@@ -1095,3 +1095,18 @@ done:
 
        return wbc_status;
 }
+
+/** @brief Authenticate a user with cached credentials
+ *
+ * @param *params    Pointer to a wbcCredentialCacheParams structure
+ * @param **info     Pointer to a pointer to a wbcCredentialCacheInfo structure
+ * @param **error    Pointer to a pointer to a wbcAuthErrorInfo structure
+ *
+ * @return #wbcErr
+ **/
+wbcErr wbcCredentialCache(struct wbcCredentialCacheParams *params,
+                          struct wbcCredentialCacheInfo **info,
+                          struct wbcAuthErrorInfo **error)
+{
+       return WBC_ERR_NOT_IMPLEMENTED;
+}
index 9e74e1ed3c9ac730f3340377f28d2bc60ea35184..cb31360407a6137bcb0a2dcda4d2b7f6b26d3bc9 100644 (file)
@@ -440,6 +440,30 @@ struct wbcLogoffUserParams {
        struct wbcNamedBlob *blobs;
 };
 
+/** @brief Credential cache log-on parameters
+ *
+ */
+
+struct wbcCredentialCacheParams {
+        const char *account_name;
+        const char *domain_name;
+        enum wbcCredentialCacheLevel {
+                WBC_CREDENTIAL_CACHE_LEVEL_NTLMSSP = 1
+        } level;
+        size_t num_blobs;
+        struct wbcNamedBlob *blobs;
+};
+
+
+/** @brief Info returned by credential cache auth
+ *
+ */
+
+struct wbcCredentialCacheInfo {
+        size_t num_blobs;
+        struct wbcNamedBlob *blobs;
+};
+
 /*
  * DomainControllerInfo struct
  */
@@ -683,6 +707,10 @@ wbcErr wbcChangeUserPasswordEx(const struct wbcChangePasswordParams *params,
                               enum wbcPasswordChangeRejectReason *reject_reason,
                               struct wbcUserPasswordPolicyInfo **policy);
 
+wbcErr wbcCredentialCache(struct wbcCredentialCacheParams *params,
+                          struct wbcCredentialCacheInfo **info,
+                          struct wbcAuthErrorInfo **error);
+
 /*
  * Resolve functions
  */