Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: DEREK DODOO
  Where is DEREK DODOO?
 READING, UK
 United Kingdom
 DEREK DODOO
 Tags
Subject: RE: apply active directory to a menu system
Thread ID: 393609 Message ID: 393642 # Views: 64 # Ratings: 0
Version: Visual FoxPro 6 Category: Active Directory
Date: Friday, December 20, 2013 11:31:54 PM         
   


> >
> >
> > Hi Derek,
> >
> > A think a little more information is on order for anyone to assist you.
> >
> > What exactly are you trying to accomplish within your VFP menu as it relates to AD?
> > You need to be specific with your reply.
> >
> >
> > As for obtaining user account information that should not be brain surgery - lol
> >
> >
lcDomainName = "PETEATHOME"
> > Public PriDomainContr
> > Create Cursor UsersDomainInfo (UserName c(30),FullName c(80),Description c(80),Class c(50),AccDisable l,;
> > AccLocked l,Profile c(30),LoginScript c(50),HomeDir c(30))
> > PriDomainContr = Getobject("WinNT://" + lcDomainName)
> > For EACH User In PriDomainContr
> >     IF User.Class = 'User'
> >         Insert Into UsersDomainInfo (username,fullname,description,Class,accdisable,acclocked,profile,;
> >         loginscript,HomeDir) Values (User.Name,User.fullname,User.description,User.Class,;
> >         User.AccountDisabled,User.IsAccountLocked,User.Profile,;
> >         User.loginscript,User.Homedirectory)
> >     ENDIF
> > NEXT
> > * --- Browse the information.
> > BROWSE

> >
> > Now with the above what do you want to do?
> > a) Only allow domain active users to access the menu?
> > b) Allow access to only some menu options based upon something?
> > c) etc. ... etc.
> >
> > Setting up memvar flagging you can use the SKIP FOR condition in the menu wizard to enable or disable
> > menu options as you wish.
> >
> > Is this what you are looking for ??
> >
> > Pete "the IceMan", from the Great White North of Canada.
> > www.marathongriffincomputers.com
>
>
>
> An application running in vfp6.
>
> A request came saying instead of the users login-in from the vfp application, they will
> like the application to be linked to the active directory, so that if you log in from the windows
> it should grant you immediate access to the application.
>
> 2. We have granted access level and writes to various users of the application,
> the request wants the active directory to take over this functionality from the vfp application.
>
>
> 3. How do you proceed?
>
> 4. Never used active directory before.
>
>
> I have been using the skip for to restrict access in the original vfp6 application .
>
> I run the application and it generated an empty cursor.
>
>
> Thanks


Hi,

First off the first line of code: lcDomainName = "PETEATHOME"
This has to be the domain name of your active directory or if running on
a Windows 7-8 machine this has to be the actual computer name.

I run the code on my 4 workstations and 2 servers and I can poll the information
as expected.


Pete "the IceMan", from the Great White North of Canada.
www.marathongriffincomputers.com

ENTIRE THREAD

apply active directory to a menu system Posted by DEREK DODOO @ 12/20/2013 4:00:04 PM
RE: apply active directory to a menu system Posted by Koen Piller @ 12/20/2013 4:12:52 PM
RE: apply active directory to a menu system Posted by Pete Sass @ 12/20/2013 7:04:25 PM
RE: apply active directory to a menu system Posted by DEREK DODOO @ 12/20/2013 7:26:19 PM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/20/2013 8:15:32 PM
RE: apply active directory to a menu system Posted by Pete Sass @ 12/20/2013 11:31:54 PM
RE: apply active directory to a menu system Posted by DEREK DODOO @ 12/21/2013 10:50:20 AM
RE: apply active directory to a menu system Posted by Pete Sass @ 12/21/2013 3:04:58 PM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/22/2013 12:03:21 AM
RE: apply active directory to a menu system Posted by Anders Altberg @ 12/21/2013 12:42:10 AM
RE: apply active directory to a menu system Posted by Koen Piller @ 12/21/2013 9:47:22 AM
RE: apply active directory to a menu system Posted by DEREK DODOO @ 12/21/2013 10:34:03 AM
RE: apply active directory to a menu system Posted by Koen Piller @ 12/21/2013 4:06:02 PM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/22/2013 12:00:56 AM
RE: apply active directory to a menu system Posted by Koen Piller @ 12/22/2013 11:37:50 PM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/23/2013 12:07:17 AM
RE: apply active directory to a menu system Posted by Jun Tangunan @ 12/23/2013 12:47:08 AM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/23/2013 1:06:19 AM
RE: apply active directory to a menu system Posted by Jun Tangunan @ 12/23/2013 1:21:25 AM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/23/2013 2:46:15 AM
RE: apply active directory to a menu system Posted by Jun Tangunan @ 12/23/2013 5:18:30 AM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/23/2013 5:41:04 AM
RE: apply active directory to a menu system Posted by Jun Tangunan @ 12/23/2013 6:56:01 AM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/23/2013 3:02:13 PM
RE: apply active directory to a menu system Posted by DEREK DODOO @ 12/26/2013 9:44:56 PM
RE: apply active directory to a menu system Posted by DEREK DODOO @ 12/26/2013 9:46:27 PM
RE: apply active directory to a menu system Posted by Jun Tangunan @ 12/26/2013 11:31:55 PM
RE: apply active directory to a menu system Posted by David Mustakim @ 12/27/2013 3:05:57 AM