diff options
author | Kai Blin <kai@samba.org> | 2009-08-12 17:41:23 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2009-08-18 19:53:41 +0200 |
commit | a7128709d208b9ef7f4e4e7038bf6102189c4518 (patch) | |
tree | 2d5479e91552a729d93f92588b3c20852f1758c9 /nsswitch/libwbclient/wbc_sid.c | |
parent | afb8f8eaa5370bb171979578031bcd596ee95fe8 (diff) | |
download | samba-a7128709d208b9ef7f4e4e7038bf6102189c4518.tar.gz samba-a7128709d208b9ef7f4e4e7038bf6102189c4518.tar.bz2 samba-a7128709d208b9ef7f4e4e7038bf6102189c4518.zip |
libwbclient: Add wbcSidTypeString function.
Diffstat (limited to 'nsswitch/libwbclient/wbc_sid.c')
-rw-r--r-- | nsswitch/libwbclient/wbc_sid.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c index aa32e83cb3..b1ecba3f6d 100644 --- a/nsswitch/libwbclient/wbc_sid.c +++ b/nsswitch/libwbclient/wbc_sid.c @@ -810,3 +810,20 @@ wbcErr wbcGetDisplayName(const struct wbcDomainSid *sid, return wbc_status; } + +const char* wbcSidTypeString(enum wbcSidType type) +{ + switch (type) { + case WBC_SID_NAME_USE_NONE: return "SID_NONE"; + case WBC_SID_NAME_USER: return "SID_USER"; + case WBC_SID_NAME_DOM_GRP: return "SID_DOM_GROUP"; + case WBC_SID_NAME_DOMAIN: return "SID_DOMAIN"; + case WBC_SID_NAME_ALIAS: return "SID_ALIAS"; + case WBC_SID_NAME_WKN_GRP: return "SID_WKN_GROUP"; + case WBC_SID_NAME_DELETED: return "SID_DELETED"; + case WBC_SID_NAME_INVALID: return "SID_INVALID"; + case WBC_SID_NAME_UNKNOWN: return "SID_UNKNOWN"; + case WBC_SID_NAME_COMPUTER: return "SID_COMPUTER"; + default: return "Unknown type"; + } +} |