Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(46)  |  Call(46)  |  Derive(0)  |  Import(0)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32comext/adsi/demos/scp.py   main(Download)
    # Bind to a domain controller. 
    # Get the domain for the current user.
    samName = win32api.GetUserNameEx(win32api.NameSamCompatible)
    samName = samName.split('\\', 1)[0]
 

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32comext/adsi/demos/scp.py   TrustRouter(Download)
    # Bind to a domain controller. 
    # Get the domain for the current user.
    samName = win32api.GetUserNameEx(win32api.NameSamCompatible)
    samName = samName.split('\\', 1)[0]
 

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32comext/adsi/demos/scp.py   SublimeSpeech(Download)
    # Bind to a domain controller. 
    # Get the domain for the current user.
    samName = win32api.GetUserNameEx(win32api.NameSamCompatible)
    samName = samName.split('\\', 1)[0]
 

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/win32comext/adsi/demos/scp.py   SublimeSpeech(Download)
    # Bind to a domain controller. 
    # Get the domain for the current user.
    samName = win32api.GetUserNameEx(win32api.NameSamCompatible)
    samName = samName.split('\\', 1)[0]
 

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/security/sspi/socket_server.py   main(Download)
        # is a lack of Python codecs - so printing the Unicode value fails.
        # So just return the repr(), and avoid codecs completely.
        return repr(win32api.GetUserNameEx(win32api.NameSamCompatible))
 
# Send a simple "message" over a socket - send the number of bytes first,

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py   main(Download)
# always be the same.
sspiserver.ctxt.ImpersonateSecurityContext()
print 'Impersonated user: ',win32api.GetUserNameEx(win32api.NameSamCompatible)
sspiserver.ctxt.RevertSecurityContext()
print 'Reverted to self: ',win32api.GetUserName()

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/Demos/security/sspi/socket_server.py   TrustRouter(Download)
        # is a lack of Python codecs - so printing the Unicode value fails.
        # So just return the repr(), and avoid codecs completely.
        return repr(win32api.GetUserNameEx(win32api.NameSamCompatible))
 
# Send a simple "message" over a socket - send the number of bytes first,

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py   TrustRouter(Download)
# always be the same.
sspiserver.ctxt.ImpersonateSecurityContext()
print('Impersonated user: ',win32api.GetUserNameEx(win32api.NameSamCompatible))
sspiserver.ctxt.RevertSecurityContext()
print('Reverted to self: ',win32api.GetUserName())

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/Demos/security/sspi/socket_server.py   SublimeSpeech(Download)
        # is a lack of Python codecs - so printing the Unicode value fails.
        # So just return the repr(), and avoid codecs completely.
        return repr(win32api.GetUserNameEx(win32api.NameSamCompatible))
 
# Send a simple "message" over a socket - send the number of bytes first,

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/Demos/security/sspi/simple_auth.py   SublimeSpeech(Download)
# always be the same.
sspiserver.ctxt.ImpersonateSecurityContext()
print 'Impersonated user: ',win32api.GetUserNameEx(win32api.NameSamCompatible)
sspiserver.ctxt.RevertSecurityContext()
print 'Reverted to self: ',win32api.GetUserName()

  1 | 2 | 3  Next