i have spend the day trying to crack the case. let me explain what i am trying to accomplish
THe requirement is to use the user logon to grant him access to different roles
I have queried the group and have brought back the primaryGroupToken for all groups
cmdSearch.CommandText = "select cn,primaryGroupToken " _
& "from 'LDAP://domain/cn=my,DC=domain,DC=name' " _
& "where objectClass='group' "
when i return the primary group id of hte user i get
But it always returns 513 which is the Domain Users group....
How can i find the group of the logged into the site and grant him appr rights
Any help would be appreciated