Sign in to follow this  
Followers 0
arcker

IsMemberOf => With Nested(Token) Group Support

1 post in this topic

Ok, after some trys, here it is

It lets you to test if a member of a domain is member of a group

for example, the attribute memberOf just test if you're member of the direct group

for example.

TopGroup

|

DirectGroup

|

Some User

You can for now test if "someuser" is member of DirectGroup, but not of Top Group.

With this script You can.

It's a conversion and adaptation from :

http://www.rlmueller.net/IsMember8.htm

I've some other methods but thez don't work in AutoIt.

So if you can help, they're attached too :

tokengroup_method_num4.au3

the main problem is ByteArrayToString method, and the script.dictionnary, that doesn't add the key, dunno why

Note : the script is quite long (between 300 and 500 ms, depending of the number of group of a user)

Note 2 : Sorry for my poor english

here is the UDF :

tokengroup.au3

and an example :

tokengroup_example.au3

and some help for these methods if you can :


-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0