Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Nitin Parulekar
  Where is Nitin Parulekar?
 Hamilton
 New Zealand
 Nitin Parulekar
 To: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 Tags
Subject: RE: Active Directory API calls
Thread ID: 47139 Message ID: 54594 # Views: 3 # Ratings: 0
Version: Visual FoxPro 8 Category: Win32API programming
Date: Friday, October 29, 2004 7:03:47 AM         
   


Hi Can we actually get information of the file or directory's permissions?


> Probably this help (extracted from http://sql.wikis.com/wc.dll?Wiki~AccessControlLists~WIN_COM_API):
>
> dom=GetObject("WinNT://"+computername)
>
> ?
> ? "GROUPS"
> ? "------"
> for each usr in dom
> uMemb=''
> if usr.class="Group"
> grp=dom.GetObject("Group",usr.Name)
> for each Member in grp.Members
> if !isnull(Member) and Member.Class="User"
> uMemb=uMemb+Member.name+","
> endi
> endfor
> ? usr.name+" ("+uMemb+")"
> endi
> endfor
>
>
> > Does anyone know of an API call that scans a directory to see what AD groups have rights into that directory.
> >
> > Here at work we have a group set up for access into a shared folder. However over the past few years, we have used that group in many other locations and it has gotten out of hand. We no longer know where that group has access into our network. What I'd like to do is scan the whole Windows side of our network for any directory that "GRP_ITS" has rights into and list the locations into a memo field.
> >
> > Thanks in advance
> >
> > Travis Pick


Nitin

ENTIRE THREAD

Active Directory API calls Posted by Travis Pick @ 7/16/2004 2:04:40 PM
RE: Active Directory API calls Posted by Travis Pick @ 7/16/2004 5:47:38 PM
RE: Active Directory API calls Posted by Yuri Rubinov @ 7/16/2004 8:25:03 PM
RE: Active Directory API calls Posted by Nitin Parulekar @ 10/29/2004 7:03:47 AM
RE: Active Directory API calls Posted by Yuri Rubinov @ 10/29/2004 3:55:44 PM