Lines Matching defs:sid

464  * specified sid. If request->qq_single is TRUE only one quota
469 * The query should start at the startsid, the first sid in
474 * of the avl tree. Otherwise the first sid in request->qq_sid_list
475 * is the resume sid and the query should start at the tree entry
487 smb_quota_sid_t *sid;
491 /* find starting sid */
494 sid = list_head(sid_list);
495 (void) strlcpy(key.q_sidstr, sid->qs_sidstr, SMB_SID_STRSZ);
505 sid = list_head(sid_list);
506 (void) strlcpy(key.q_sidstr, sid->qs_sidstr, SMB_SID_STRSZ);
541 * Iterate through request sid list querying the avl tree for each.
542 * Insert an entry in the reply quota list for each sid.
543 * For any sid that cannot be found in the avl tree, the reply
553 smb_quota_sid_t *sid;
558 sid = list_head(sid_list);
559 while (sid) {
564 (void) strlcpy(key.q_sidstr, sid->qs_sidstr, SMB_SID_STRSZ);
570 (void) strlcpy(quotal->q_sidstr, sid->qs_sidstr,
575 sid = list_next(sid_list, sid);
665 * Determine the type of the sid. If the sid exists in
674 smb_sid_t *sid = NULL;
683 sid = smb_sid_fromstr(sidstr);
684 if (sid != NULL) {
685 if (lsa_lookup_sid(sid, &ainfo) == NT_STATUS_SUCCESS) {
689 smb_sid_free(sid);
697 * Get the user/group id for the sid.
703 smb_sid_t *sid = NULL;
706 sid = smb_sid_fromstr(sidstr);
707 if (sid == NULL)
725 rc = smb_idmap_getid(sid, id, &idtype);
727 smb_sid_free(sid);
981 * lookup the sid (smb_quota_sidstr()).
1044 * Use idmap to get the sid for the specified id and return
1045 * the string version of the sid in sidstr.
1052 smb_sid_t *sid;
1067 if (smb_idmap_getsid(id, idtype, &sid) != IDMAP_SUCCESS)
1070 smb_sid_tostr(sid, sidstr);
1071 smb_sid_free(sid);