• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libmsrpc/cacusermgr/

Lines Matching refs:hnd

23 CacGroupInfo *get_group_info(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *group_hnd) {
26 if(!hnd || !mem_ctx ||!group_hnd)
32 if(!cac_SamGetGroupInfo(hnd, mem_ctx, &getinfo))
33 printerr("Could not get group info.", hnd->status);
47 CacGroupInfo *modify_group_info(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *group_hnd) {
52 info = get_group_info(hnd, mem_ctx, group_hnd);
66 if(!cac_SamSetGroupInfo(hnd, mem_ctx, &setinfo)) {
67 printerr("Could not set info.", hnd->status);
74 void group_menu(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, POLICY_HND *dom_hnd, POLICY_HND *group_hnd) {
87 info = get_group_info(hnd, mem_ctx, group_hnd);
115 rid_type = rid_or_name(hnd, mem_ctx, dom_hnd, &add.in.rid, &buf);
122 if(!cac_SamAddGroupMember(hnd, mem_ctx, &add)) {
123 printerr("Could not add user to group.", hnd->status);
133 rid_type = rid_or_name(hnd, mem_ctx, dom_hnd, &del.in.rid, &buf);
140 if(!cac_SamRemoveGroupMember(hnd, mem_ctx, &del)) {
141 printerr("Could not remove use from group.", hnd->status);
147 list_users(hnd, mem_ctx, dom_hnd);
155 if(!cac_SamGetGroupMembers(hnd, mem_ctx, &getmem)) {
156 printerr("Could not get members.", hnd->status);
165 if(!cac_SamGetNamesFromRids(hnd, mem_ctx, &getnames)) {
166 printerr("Could not lookup names.", hnd->status);
177 info = modify_group_info(hnd, mem_ctx, group_hnd);
185 info = get_group_info(hnd, mem_ctx, group_hnd);
191 if(!cac_SamDeleteGroup(hnd, mem_ctx, group_hnd))
192 printerr("Could Not Delete Group.", hnd->status);
209 cac_SamClose(hnd, mem_ctx, group_hnd);