What are the differences between these types of NT groups?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Here is an exerpt from some code that goes through a set of users and
writes their AD group membership to a database table.

Note that either "1:" or "2:" is pre appended to the name that gets
added to the objList dictionary object (which is later saved in the
database)

What is the difference between the groups that start with "1:" and
"2:"?

Thanks.


Set objList = CreateObject("Scripting.Dictionary")
objList.CompareMode = vbTextCompare


Public Function GetGroups(objMember)
'On Error Resume Next
objList.RemoveAll
Call EnumGroups(objMember)
Set GetGroups = objList
End Function


Public Sub EnumGroups(objMember)
' Recursive subroutine to retrieve group memberships.
Dim arrGroups, strGroup, objGroup

arrGroups = objMember.memberOf

If IsEmpty(arrGroups) Then
' Do nothing.
ElseIf (TypeName(arrGroups) = "String") Then
Set objGroup = GetObject("LDAP://"; & arrGroups)
If Not objList.Exists(objGroup.sAMAccountName) Then
objList.Add "1:" & objGroup.sAMAccountName , True
Call EnumGroups(objGroup)
End If
Else
For Each strGroup In arrGroups
Set objGroup = GetObject("LDAP://"; & strGroup)
If Not objList.Exists(objGroup.sAMAccountName) Then
objList.Add "2:" & objGroup.sAMAccountName , True
Call EnumGroups(objGroup)
End If
Next
End If
End Sub
.



Relevant Pages

  • Re: Cannot get AD groups to work in SQL 2k5
    ... I would expect users to be able to connect via group membership. ... SQL Server MVP ... and assigned a default database to the group. ... For some odd reason my ...
    (microsoft.public.sqlserver.security)
  • Re: Different FEs for different users
    ... When there is user-level security I have used group membership to show or hide controls, ... The database uses a startup form that includes the command button cmdSecurity, which opens a form that includes toolbars and other information used to administer database security, but it could have been any form. ... I would further like for the clerks to only have limited access and editing ...
    (microsoft.public.access.tablesdbdesign)
  • Re: via group membership
    ... > In EM,I've seen "via group membership" under the 'Database ... a default SQL Server 2000 install, ... sysadmin equivalence, anyone that has local administrative rights on the ...
    (microsoft.public.sqlserver.security)
  • Does this ADODB WScript fetch all the users groups?
    ... hierarchical group membership. ... Do I need to add some sort of recursive Function to fetch them all? ... script but works in other contexts. ... Dim arrGroups, strGroup, objGroup ...
    (microsoft.public.scripting.vbscript)
  • Re: Which User account is used?
    ... The xp_logininfo documentation implies that admin privilege Windows group membership takes precedence over non-admin group membership and that the earliest granted Windows group is the one used for ties. ... user who is a member of an AD group which has been assigned as a database ... How does SQL Server decide which User account is used when this user ...
    (microsoft.public.sqlserver.security)