s4:wbclient.h - add compatibility constants
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 12 Oct 2009 14:28:34 +0000 (16:28 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 12 Oct 2009 14:28:34 +0000 (16:28 +0200)
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.

nsswitch/libwbclient/wbclient.h

index ced82d8d226f1b59ad84044507895f50f24bf3d2..e262679264484d2e3689ee2b78ccbea646b9ee44 100644 (file)
@@ -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
  **/