Re: [python-win32] Is this user a member of a given Active Directory group?

2008-08-05 Thread Tim Golden
Vernon Cole wrote: Tim, You Da Man! Vernon based on your suggestion, I have: code import win32security def testMemberOf(GROUP_NAME): try: sid, system, type = win32security.LookupAccountName(None, GROUP_NAME) except: raise ValueError, '%s is not a valid group

Re: [python-win32] Is this user a member of a given Active Directory group?

2008-08-04 Thread Vernon Cole
Tim, You Da Man! Vernon based on your suggestion, I have: code import win32security def testMemberOf(GROUP_NAME): try: sid, system, type = win32security.LookupAccountName(None, GROUP_NAME) except: raise ValueError, '%s is not a valid group name'%GROUP_NAME return

[python-win32] Is this user a member of a given Active Directory group?

2008-07-31 Thread Vernon Cole
Dear group: My company makes use of Active Directory to determine what rights a given user has in an application system. If the user is a member of a certain group, then (s)he has the right to perform some set of functions. For example, if VCOLE is a member of WCPO-CREATE then I can create new