Results 1 to 5 of 5

Thread: need explanation on nested group code

  1. #1
    Join Date
    Jun 2009
    Posts
    18

    need explanation on nested group code

    hi everyone,

    i have sample code to display the nested group of a domain group;

    ' From the book "Windows XP Cookbook"
    ' ISBN: 0596007256

    ' ------ SCRIPT CONFIGURATION ------
    strGroupDN = "<GroupDN>" ' e.g. cn=SalesGroup,ou=Grps,dc=rallencorp,dc=com
    ' ------ END CONFIGURATION ---------
    strSpaces = " "
    set dicSeenGroupMember = CreateObject("Scripting.Dictionary")
    Wscript.Echo "Members of " & strGroupDN & ":"
    DisplayMembers "LDAP://" & strGroupDN, strSpaces, dicSeenGroupMember
    WScript.Echo "Done"

    Function DisplayMembers ( strGroupADsPath, strSpaces, dicSeenGroupMember)

    set objGroup = GetObject(strGroupADsPath)
    for each objMember In objGroup.Members
    Wscript.Echo strSpaces & objMember.Name
    if objMember.Class = "group" then
    if dicSeenGroupMember.Exists(objMember.ADsPath) then
    Wscript.Echo strSpaces & " ^ already seen group member " & _
    "(stopping to avoid loop)"
    else
    dicSeenGroupMember.Add objMember.ADsPath, 1
    DisplayMembers objMember.ADsPath, strSpaces & " ", _
    dicSeenGroupMember
    end if
    end if
    next

    End Function


    i need some explaination on flow of this code, how can i restructure the code get my expectation,

    my expectation are i will have list of assigned permission servers from that list i will need to get nested group of all servers per domain.

    please post the remodified code according to my expectation

  2. #2
    Join Date
    Mar 2008
    Posts
    258

    Re: need explanation on nested group code

    The updated code for your domain group on the server would be the core level coding, which will be very lengthy to put here and would be the object based, and the problem is that along with the coding you need to have the correct network setup to integrate with, the code you have mentioned here is just one to other end references, this will now work anyway. So i will suggest you to try building up your domain group using the Network (Physical) setup.

  3. #3
    Join Date
    Jun 2009
    Posts
    18

    Re: need explanation on nested group code

    hi Khushal,
    i am glad with your replay since i am new to AD, will you pls send me the restructure code to my mail id vivekbeeee@yahoo.co.in with your explanation.

  4. #4
    Join Date
    Mar 2008
    Posts
    258

    Re: need explanation on nested group code

    It would be little difficult for me to forward you the source code for your the domain group on the server that is because, this source code has been implemented in the office project work, and if i will forward you then it would be an violation of office rule, but still i will try for you, if I could get any samewhat similar code from outside or from the internet then i will forward you on your mail address.

  5. #5
    Join Date
    Jun 2009
    Posts
    18

    Re: need explanation on nested group code

    thanks kushal,
    please make it happen as soon as possible i am dying for that code....

Similar Threads

  1. How to run Nested Vms
    By Vitel in forum Operating Systems
    Replies: 8
    Last Post: 15-09-2011, 11:54 AM
  2. Need Explanation for java code
    By javainfo in forum Software Development
    Replies: 2
    Last Post: 10-12-2009, 01:56 AM
  3. need LDAP query to capture nested group ?
    By vivekmohan in forum Active Directory
    Replies: 4
    Last Post: 25-06-2009, 12:10 AM
  4. JAVA code attached with explanation
    By Daren in forum Software Development
    Replies: 1
    Last Post: 13-05-2009, 01:08 AM
  5. How to find out a user's nested security group membership
    By akhtar in forum Active Directory
    Replies: 2
    Last Post: 06-11-2008, 09:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,890,319.98687 seconds with 16 queries