Lines Matching refs:sid
187 const unsigned char *sid;
340 static char *decodesid(const unsigned char *sid)
351 sprintf(&str[strlen(str)], "-%d", sid[0]);
353 auth = get6h(sid, 2);
359 for (i = 0; (i < 8) && (i < sid[1]); i++) {
361 subauth = get4l(sid, 8 + 4 * i);
372 static boolean isgenericgroup(const char *sid)
376 yes = !strncmp(sid,"S-1-5-21-",9)
377 && !strcmp(strrchr(sid,'-'),"-513");
381 static unsigned char *makegroupsid(const unsigned char *sid)
386 size = 8 + 4*sid[1];
387 memcpy(groupsid, sid, size);
397 const char *dir, const unsigned char *sid, int type,
488 sidsz = 8 + sid[1]*4;
491 memcpy(p, sid, sidsz);
493 mapping->sid = (unsigned char*)p;
498 const char *dir, const unsigned char *sid, int type)
503 if ((get6h(sid, 2) == 5) && (get4l(sid, 8) == 21)) {
504 sidstr = decodesid(sid);
514 askmapping(accname, filename, dir, sid, type,
701 unsigned char *sid;
712 sid = (char*)malloc(MAXSIDSZ);
719 && sid
725 r = LookupAccountNameA((char*)NULL,winname,sid,&sidsz,
737 currentsid = sid;
749 static boolean minimal(unsigned char *sid)
755 if (sid) {
756 groupsid = makegroupsid(sid);
762 printf("user::%s\n",decodesid(sid));
958 firstowner->sid = currentsid;
999 makegroupsid(firstowner->sid));