libwbclient: add WBC_SID_NAME_LABEL
authorStefan Metzmacher <metze@samba.org>
Mon, 20 Mar 2017 12:56:03 +0000 (13:56 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 23 Mar 2017 11:55:26 +0000 (12:55 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Mar 23 12:55:26 CET 2017 on sn-devel-144

nsswitch/libwbclient/tests/wbclient.c
nsswitch/libwbclient/wbc_sid.c
nsswitch/libwbclient/wbclient.h

index 0412bed..b3c93a1 100644 (file)
@@ -216,6 +216,8 @@ static bool test_wbc_sidtypestring(struct torture_context *tctx)
                                 "SID_UNKNOWN", "SID_UNKNOWN failed");
        torture_assert_str_equal(tctx, wbcSidTypeString(WBC_SID_NAME_COMPUTER),
                                 "SID_COMPUTER",  "SID_COMPUTER failed");
+       torture_assert_str_equal(tctx, wbcSidTypeString(WBC_SID_NAME_LABEL),
+                                "SID_LABEL",  "SID_LABEL failed");
        return true;
 }
 
index cc71b9e..baaeb60 100644 (file)
@@ -1081,6 +1081,7 @@ const char* wbcSidTypeString(enum wbcSidType type)
        case WBC_SID_NAME_INVALID:  return "SID_INVALID";
        case WBC_SID_NAME_UNKNOWN:  return "SID_UNKNOWN";
        case WBC_SID_NAME_COMPUTER: return "SID_COMPUTER";
+       case WBC_SID_NAME_LABEL:    return "SID_LABEL";
        default:                    return "Unknown type";
        }
 }
index 77915b9..ed97a67 100644 (file)
@@ -75,6 +75,7 @@ const char *wbcErrorString(wbcErr error);
  *  0.12: Added wbcCtxCreate and friends
  *  0.13: Added wbcCtxUnixIdsToSids and wbcUnixIdsToSids
  *  0.14: Added "authoritative" to wbcAuthErrorInfo
+ *        Added WBC_SID_NAME_LABEL
  **/
 #define WBCLIENT_MAJOR_VERSION 0
 #define WBCLIENT_MINOR_VERSION 14
@@ -139,7 +140,8 @@ enum wbcSidType {
        WBC_SID_NAME_DELETED=6,
        WBC_SID_NAME_INVALID=7,
        WBC_SID_NAME_UNKNOWN=8,
-       WBC_SID_NAME_COMPUTER=9
+       WBC_SID_NAME_COMPUTER=9,
+       WBC_SID_NAME_LABEL=10
 };
 
 /**