Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting from PySID (pywin32) to PSID #1

Open
Cobertos opened this issue Feb 18, 2019 · 0 comments
Open

Converting from PySID (pywin32) to PSID #1

Cobertos opened this issue Feb 18, 2019 · 0 comments
Labels
question Further information is requested

Comments

@Cobertos
Copy link

Cobertos commented Feb 18, 2019

I'm trying to get a sid from pywin32 passed into FspPosixMapSidToUid() but I can't figure out how to convert it from a PySID to the cffi PSID generated in this library.

I can get the raw bytes of the PySID using memoryview().tobytes() ot .tolist() but I can't seem to use them as an initializer for PSID because they're not the same size (28 bytes versus 12 bytes respectively)

The root problem I'm trying to chase is detailed more in tannercollin/standardnotes-fs#15.

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants