Questions tagged [sid]

In the context of the Microsoft Windows NT line of operating systems, a SID (Security IDentifier) is a unique, immutable identifier of a user, user group, or other security principal.

Windows grants or denies access and privileges to resources based on access control lists (ACLs), which use SIDs to uniquely identify users and their group memberships.

When a user logs into a computer, an access token is generated that contains user and group SIDs and user privilege level. When a user requests access to a resource, the access token is checked against the ACL to permit or deny particular action on a particular object.

SIDs are useful for troubleshooting issues with security audits, Windows server and domain migrations.

221 questions
5
votes
2 answers

express-session - the difference between session id and connect.sid?

What the difference between session id and connect.sid? For example: console.log('session id =', req.sessionID) Result: session id = CCw2pSpdPf8NRKLQpFH-nlFztEzps24Q And: console.log('req.headers =', req.headers) Result: req.headers = { …
Run
  • 54,938
  • 169
  • 450
  • 748
5
votes
4 answers

Get User SID From Logon ID (Windows XP and Up)

I have a Windows service that needs to access registry hives under HKEY_USERS when users log on, either locally or via Terminal Server. I'm using a WMI query on win32_logonsession to receive events when users log on, and one of the properties I get…
Dave Ruske
  • 401
  • 1
  • 4
  • 11
5
votes
2 answers

Convert SID string format to bytes array

I want to convert SID string format to bytes array representation which in turn will be supplied to LookupAccountSid() method's second argument in C#. But I don't find any particular in built function which can do this. For example: SID =…
dev
  • 191
  • 1
  • 4
  • 14
5
votes
1 answer

ASP.NET - Get the Principal / Relative Identifier (RID) for a DirectoryEntry / SID

I am using Active Directory in a custom MembershipProvider class to authenticate users in an ASP.NET 2.0 intranet application and associate their sid with a profile for the application. When the ActiveDirectoryMembershipProvider is used, the…
Russ Cam
  • 124,184
  • 33
  • 204
  • 266
4
votes
1 answer

Change domain name through browser - Windows Authentication - SID History

We have a situation where we have been merged with another organisation and as part of that our sid history has been migrated to the new common active directory. However, our understanding was that as part of the sid history migration when we use…
Baahubali
  • 4,604
  • 6
  • 33
  • 72
4
votes
1 answer

get-adgroup -filter "SID -like '*-512'"

I have been wanting to figure out how to use -filter to get what I want. What I am trying to do is find the Domain Admins group by a -like statement of *-512 against the SID property using the following: get-adgroup -filter "SID -like '*-512'" It…
tony Unger
  • 43
  • 1
  • 3
4
votes
2 answers

Convert SID's to usernames/groups?

I'm looping through a network directory and trying to output the user/group names (permissions) associated with each file/folder. I'm getting the SID's back but I want the names like "group_test" and not "S-1-5-32-544". Here's my code - var files =…
tempid
  • 7,838
  • 28
  • 71
  • 101
4
votes
1 answer

Win32 API: Creating file public for current user but private for everyone else

I am testing the following code in C using Win32 API, which is intended to create a new file that is accessible for the current user but private (not accessible) for everyone else. For this this a deny all permissions for everyone SID, then for…
4
votes
3 answers

save wmic useraccount where name to variable

How can I save the SID of the current user to variable? Based off of a similar question, the current code is as follows: @echo off for /f %%a in ('wmic useraccount where Name='%username%' get SID') do set "usersid=%%a" echo %usersid% exit /b Is…
7th Luke
  • 87
  • 1
  • 2
  • 9
4
votes
1 answer

Searching for Windows User SIDs in C#

Context Context first - issues I'm trying to resolve are below. [EDIT] The application in questions is built against .NET 3.5 SP1. One of our clients has asked as to quote how long it would take for us to improve one of our applications. This…
Ubiquitous Che
  • 349
  • 2
  • 7
  • 20
4
votes
1 answer

Your to get the windows installation SID in c#?

I know this question has been asked many times on SO, but none of them answer my question. I know from studying for the Comptiat A+ that when using automated (unattended) installations techs always have to go back and change the MACHINE SID before…
FrostyFire
  • 3,212
  • 3
  • 29
  • 53
4
votes
1 answer

Session cookies with load balancing (Not sticky sessions)

I have scanned RFC 6265 but did not find the answer to the following. I want to put a naive round-robbin load-balancer in front of multiple servers for a single webapp. The load-balancer does not provide sticky sessions. So a client will typically…
Carlos
  • 1,470
  • 10
  • 18
3
votes
1 answer

Getting SID of users

I’m writing an application on Windows XP which gives the SID of user. With the valid token handle, when I call GetTokenInfomation API with TokenUser as a second parameter then every time & for all user account I get Valid SID in PTOKEN_USER…
3
votes
1 answer

Which is best function available in c++ to convert SID to Account username?

I have sids of user accounts like this S-1-5-21-4030387420-2927818341-1631038489-1001 I want simple c++ function which will convert this sid to username. if any of you have code for that then plz post Thank you in advance!!
sagar
  • 1,900
  • 5
  • 30
  • 45
3
votes
1 answer

How come cookie path doesn't take effect?

There are 2 projects under my Apache public_html root. One is "/project1" and the other is "/project2". Project 2 is just duplicate of project 1 but with some modification to fit a different goal. They have the same core code, so the session names…
jondinham
  • 8,271
  • 17
  • 80
  • 137
1
2
3
14 15