summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-12 16:28:34 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-12 16:28:34 +0200
commit926a935a612e3d3d3aec6473303a884126d9ea72 (patch)
tree2ef4f4e0f21798a6ef656254c2238eeb91ecc1f6
parent78ebc02146411867c8573b44e541064179895bfa (diff)
downloadsamba-926a935a612e3d3d3aec6473303a884126d9ea72.tar.gz
samba-926a935a612e3d3d3aec6473303a884126d9ea72.tar.xz
samba-926a935a612e3d3d3aec6473303a884126d9ea72.zip
s4:wbclient.h - add compatibility constants
This is the result of a discussion on samba-technical on how to deal best with existing programs which don't support my changes in the interface yet. Metze pointed out this "defines" as a possibility and simo and I agreed.
-rw-r--r--nsswitch/libwbclient/wbclient.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbclient.h b/nsswitch/libwbclient/wbclient.h
index ced82d8d226..e2626792644 100644
--- a/nsswitch/libwbclient/wbclient.h
+++ b/nsswitch/libwbclient/wbclient.h
@@ -438,6 +438,12 @@ enum wbcPasswordChangeRejectReason {
WBC_PWD_CHANGE_PASSWORD_TOO_LONG=8
};
+/* Note: this defines exist for compatibility reasons with existing code */
+#define WBC_PWD_CHANGE_REJECT_OTHER WBC_PWD_CHANGE_NO_ERROR
+#define WBC_PWD_CHANGE_REJECT_TOO_SHORT WBC_PWD_CHANGE_PASSWORD_TOO_SHORT
+#define WBC_PWD_CHANGE_REJECT_IN_HISTORY WBC_PWD_CHANGE_PWD_IN_HISTORY
+#define WBC_PWD_CHANGE_REJECT_COMPLEXITY WBC_PWD_CHANGE_NOT_COMPLEX
+
/**
* @brief Logoff User Parameters
**/