Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 26-06-2009
Member
 
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
Reply With Quote
  #2  
Old 27-06-2009
Member
 
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.
Reply With Quote
  #3  
Old 29-06-2009
Member
 
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.
Reply With Quote
  #4  
Old 29-06-2009
Member
 
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.
Reply With Quote
  #5  
Old 30-06-2009
Member
 
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....
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 12:55 PM.