Lines Matching defs:dom_idx
70 " dom_idx INTEGER PRIMARY KEY," \
792 int dom_idx;
797 dom_idx = SMB_LGRP_POSIX_IDX;
800 dom_idx = SMB_LGRP_BUILTIN_IDX;
811 rc = smb_lgrp_gtbl_count(db, dom_idx, count);
1389 int rc, dom_idx;
1410 dom_idx = SMB_LGRP_POSIX_IDX;
1419 dom_idx = SMB_LGRP_BUILTIN_IDX;
1424 dom_idx, grpkey.sg_rid);
1501 * 'dom_idx'
1504 smb_lgrp_gtbl_count(sqlite3 *db, int dom_idx, int *count)
1517 dom_idx);
1553 int dom_idx;
1559 dom_idx = (grp->sg_domain == SMB_DOMAIN_LOCAL)
1570 grp->sg_name, dom_idx, grp->sg_rid, grp->sg_id.gs_type,
1869 * 'dom_idx' arg.
1872 smb_lgrp_dtbl_insert(sqlite3 *db, char *dom_sid, uint32_t *dom_idx)
1893 if (dom_idx)
1894 *dom_idx = sqlite3_last_insert_rowid(db);
1900 * part is returned in 'dom_idx' and the lower part in 'rid'.
1903 * dom_idx = 0
1907 * a RID. The RID is returned in 'rid'. dom_idx will be the
1913 uint32_t *dom_idx, uint32_t *rid)
1926 *dom_idx = SMB_LGRP_POSIX_IDX;
1938 "SELECT dom_idx FROM domains WHERE dom_sid = '%s'", sidstr);
1956 return (smb_lgrp_dtbl_insert(db, sidstr, dom_idx));
1959 *dom_idx = atoi(result[1]);
1978 smb_lgrp_dtbl_getsid(sqlite3 *db, uint32_t dom_idx, smb_sid_t **sid)
1986 sql = sqlite3_mprintf("SELECT dom_sid FROM domains WHERE dom_idx = %u",
1987 dom_idx);
2485 * If dom_idx is 0, it means 'rid' contains a UID/GID and the
2486 * returned SID will be a local SID. If dom_idx is not 0 then
2490 smb_lgrp_getsid(int dom_idx, uint32_t *rid, uint16_t sid_type,
2501 if (dom_idx == SMB_LGRP_POSIX_IDX) {
2532 rc = smb_lgrp_dtbl_getsid(db, dom_idx, &dom_sid);