[python-win32] Re: Getting file security access info on network
Roger Upole
rwupole at msn.com
Tue May 24 22:30:49 CEST 2005
Basically it means the sid in question doesn't exist on that domain.
It could be a sid for an account that's been removed, or a local
account on the remote machine, or even a sid for an account
on another domain.
Roger
"Peter McTaggart" <peter.mctaggart at gmail.com> wrote:
> Hi,
>
> I'm trying to write a little python prog to list the groups and their
> members that have access to a directory or file on a network device.
>
> I can get info for a local file (on C drive) but this doesn't seem to
> work on a network drive:
>
> I get teh following error
> -------------------------------
> Traceback (most recent call last):
> File
> "C:\software\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py",
> line 310, in RunScript
> exec codeObject in __main__.__dict__
> File "C:\projects\access_groups\AccessList.py", line 36, in ?
> accounts = getAccountList(domain, sidList)
> File "C:\projects\access_groups\AccessList.py", line 20, in
> getAccountList
> accounts = [ win32security.LookupAccountSid(domain,x) for x in sidList]
> error: (1332, 'LookupAccountSid', 'No mapping between account names
> and security IDs was done.')
> ------------------------------
> I'm not sure what this means.
>
More information about the Python-win32
mailing list