Changeset 740 for vendor/current/nsswitch/libwbclient/wbclient.h
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/nsswitch/libwbclient/wbclient.h
r414 r740 66 66 * 0.4: Added wbcSidTypeString() 67 67 * 0.5: Added wbcChangeTrustCredentials() 68 * 0.6: Made struct wbcInterfaceDetails char* members non-const 69 * 0.7: Added wbcSidToStringBuf() 70 * 0.8: Added wbcSidsToUnixIds() and wbcLookupSids() 68 71 **/ 69 72 #define WBCLIENT_MAJOR_VERSION 0 70 #define WBCLIENT_MINOR_VERSION 573 #define WBCLIENT_MINOR_VERSION 8 71 74 #define WBCLIENT_VENDOR_VERSION "Samba libwbclient" 72 75 struct wbcLibraryDetails { … … 82 85 struct wbcInterfaceDetails { 83 86 uint32_t interface_version; 84 c onst char *winbind_version;87 char *winbind_version; 85 88 char winbind_separator; 86 c onst char *netbios_name;87 c onst char *netbios_domain;88 c onst char *dns_domain;89 char *netbios_name; 90 char *netbios_domain; 91 char *dns_domain; 89 92 }; 90 93 … … 191 194 #define WBC_DOMINFO_TRUSTTYPE_IN_FOREST 0x00000002 192 195 #define WBC_DOMINFO_TRUSTTYPE_EXTERNAL 0x00000003 193 194 196 195 197 /** … … 430 432 431 433 enum wbcPasswordChangeRejectReason { 432 WBC_PWD_CHANGE_REJECT_OTHER=0, 433 WBC_PWD_CHANGE_REJECT_TOO_SHORT=1, 434 WBC_PWD_CHANGE_REJECT_IN_HISTORY=2, 435 WBC_PWD_CHANGE_REJECT_COMPLEXITY=5 436 }; 434 WBC_PWD_CHANGE_NO_ERROR=0, 435 WBC_PWD_CHANGE_PASSWORD_TOO_SHORT=1, 436 WBC_PWD_CHANGE_PWD_IN_HISTORY=2, 437 WBC_PWD_CHANGE_USERNAME_IN_PASSWORD=3, 438 WBC_PWD_CHANGE_FULLNAME_IN_PASSWORD=4, 439 WBC_PWD_CHANGE_NOT_COMPLEX=5, 440 WBC_PWD_CHANGE_MACHINE_NOT_DEFAULT=6, 441 WBC_PWD_CHANGE_FAILED_BY_FILTER=7, 442 WBC_PWD_CHANGE_PASSWORD_TOO_LONG=8 443 }; 444 445 /* Note: this defines exist for compatibility reasons with existing code */ 446 #define WBC_PWD_CHANGE_REJECT_OTHER WBC_PWD_CHANGE_NO_ERROR 447 #define WBC_PWD_CHANGE_REJECT_TOO_SHORT WBC_PWD_CHANGE_PASSWORD_TOO_SHORT 448 #define WBC_PWD_CHANGE_REJECT_IN_HISTORY WBC_PWD_CHANGE_PWD_IN_HISTORY 449 #define WBC_PWD_CHANGE_REJECT_COMPLEXITY WBC_PWD_CHANGE_NOT_COMPLEX 437 450 438 451 /** … … 519 532 const char* wbcSidTypeString(enum wbcSidType type); 520 533 534 #define WBC_SID_STRING_BUFLEN (15*11+25) 535 536 /* 537 * @brief Print a sid into a buffer 538 * 539 * @param sid Binary Security Identifier 540 * @param buf Target buffer 541 * @param buflen Target buffer length 542 * 543 * @return Resulting string length. 544 */ 545 int wbcSidToStringBuf(const struct wbcDomainSid *sid, char *buf, int buflen); 546 521 547 /** 522 548 * @brief Convert a binary SID to a character string … … 611 637 char **name, 612 638 enum wbcSidType *name_type); 639 640 struct wbcTranslatedName { 641 enum wbcSidType type; 642 char *name; 643 int domain_index; 644 }; 645 646 wbcErr wbcLookupSids(const struct wbcDomainSid *sids, int num_sids, 647 struct wbcDomainInfo **domains, int *num_domains, 648 struct wbcTranslatedName **names); 613 649 614 650 /** … … 758 794 struct wbcDomainSid *sid); 759 795 796 enum wbcIdType { 797 WBC_ID_TYPE_NOT_SPECIFIED, 798 WBC_ID_TYPE_UID, 799 WBC_ID_TYPE_GID 800 }; 801 802 union wbcUnixIdContainer { 803 uid_t uid; 804 gid_t gid; 805 }; 806 807 struct wbcUnixId { 808 enum wbcIdType type; 809 union wbcUnixIdContainer id; 810 }; 811 812 /** 813 * @brief Convert a list of sids to unix ids 814 * 815 * @param sids Pointer to an array of SIDs to convert 816 * @param num_sids Number of SIDs 817 * @param ids Preallocated output array for translated IDs 818 * 819 * @return #wbcErr 820 * 821 **/ 822 wbcErr wbcSidsToUnixIds(const struct wbcDomainSid *sids, uint32_t num_sids, 823 struct wbcUnixId *ids); 824 760 825 /** 761 826 * @brief Obtain a new uid from Winbind … … 783 848 * 784 849 * @return #wbcErr 850 * 851 * @deprecated This method is not impemented any more and should 852 * be removed in the next major version change. 785 853 **/ 786 854 wbcErr wbcSetUidMapping(uid_t uid, const struct wbcDomainSid *sid); … … 793 861 * 794 862 * @return #wbcErr 863 * 864 * @deprecated This method is not impemented any more and should 865 * be removed in the next major version change. 795 866 **/ 796 867 wbcErr wbcSetGidMapping(gid_t gid, const struct wbcDomainSid *sid); … … 803 874 * 804 875 * @return #wbcErr 876 * 877 * @deprecated This method is not impemented any more and should 878 * be removed in the next major version change. 805 879 **/ 806 880 wbcErr wbcRemoveUidMapping(uid_t uid, const struct wbcDomainSid *sid); … … 813 887 * 814 888 * @return #wbcErr 889 * 890 * @deprecated This method is not impemented any more and should 891 * be removed in the next major version change. 815 892 **/ 816 893 wbcErr wbcRemoveGidMapping(gid_t gid, const struct wbcDomainSid *sid); … … 822 899 * 823 900 * @return #wbcErr 901 * 902 * @deprecated This method is not impemented any more and should 903 * be removed in the next major version change. 824 904 **/ 825 905 wbcErr wbcSetUidHwm(uid_t uid_hwm); … … 831 911 * 832 912 * @return #wbcErr 913 * 914 * @deprecated This method is not impemented any more and should 915 * be removed in the next major version change. 833 916 **/ 834 917 wbcErr wbcSetGidHwm(gid_t gid_hwm); … … 971 1054 * @brief Lookup the current status of a trusted domain 972 1055 * 973 * @param domain Domain to query 974 * @param *info Pointer to returned domain_info struct 1056 * @param domain The domain to query 1057 * 1058 * @param dinfo A pointer to store the returned domain_info struct. 975 1059 * 976 1060 * @return #wbcErr 977 1061 **/ 978 1062 wbcErr wbcDomainInfo(const char *domain, 979 struct wbcDomainInfo **info); 1063 struct wbcDomainInfo **dinfo); 1064 1065 /** 1066 * @brief Lookup the currently contacted DCs 1067 * 1068 * @param domain The domain to query 1069 * 1070 * @param num_dcs Number of DCs currently known 1071 * @param dc_names Names of the currently known DCs 1072 * @param dc_ips IP addresses of the currently known DCs 1073 * 1074 * @return #wbcErr 1075 **/ 1076 wbcErr wbcDcInfo(const char *domain, size_t *num_dcs, 1077 const char ***dc_names, const char ***dc_ips); 980 1078 981 1079 /**
Note:
See TracChangeset
for help on using the changeset viewer.