Re: Looking to verify users via Active Directory
- From: "Albert D. Kallal" <PleaseNOOOsPAMmkallal@xxxxxxx>
- Date: Sat, 3 Nov 2007 23:19:31 -0600
"graymk" <graymk@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6AE888EE-598B-4F19-A44E-28A263FC6EFF@xxxxxxxxxxxxxxxx
1. How do I verify a user is in a particular Group. I'll have an Admin
console form that will allow Admins to change the group if ever necessary.
The sample code I gave you will not help you at all.
I was only suggesting that you can get the current users *WINDOWS* logon
network name in code. Often some companies use a naming or logon scheme for
windows that parallels their active directory setup.
2. How do I search the Active directory? Specifically, if I give the name
John J. Doe or any part of it, how do I have All possible names returned
to
me?
Word, Excel, power-point, or access Are not really designed with an active
directory interface in mind.
So, this type of ability is certainly not built into a desktop program like
power-point, or access.
You have to use some type of interface that lets you connect to active
directory.
I believe you can actually use an ADO connection to test membership in
groups.
(I've never used, or done this before, so I can't help you lot in this
case).
However, yahoo search does come up with some coding examples that does speak
of this process via ADO:
http://codeidol.com/active-directory/actdir3/Using-ADO-for-Searching/The-First-Search/
Here is a sample that what use lets you test group membership
http://codeidol.com/active-directory/actdir3/Users-and-Groups/Evaluating-Group-Membership/
I think you'll have to go out and find some code examples. AD seems to be a
whole system of its own.
any VB6, or VBS script examples should be very easily to convert to the VBA
code. Their syntax and programming concepts When going from VB6 or the VBS
scripts to the VBA are really similar.
In addition you'll have to come up with some type of table or coding scheme
to say what form/report belongs to what membership. Let's assume that you
can successfully and easily query the active directory system, you still
have to find a way of saying that this particular sales report cannot be
viewed unless you're a member of the sales membership group -- the only
practical way you're going to do that is to write code to prevent the
form/report from opening (And further you'll need some efficient or
reasonable way to a store what report's belongs to what particular group.
You have to store that information somewhere, and code it after you figure a
way to query the ad system).
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx
.
- Follow-Ups:
- Re: Looking to verify users via Active Directory
- From: Albert D. Kallal
- Re: Looking to verify users via Active Directory
- References:
- Re: Looking to verify users via Active Directory
- From: Albert D. Kallal
- Re: Looking to verify users via Active Directory
- From: graymk
- Re: Looking to verify users via Active Directory
- Prev by Date: Re: Search string for Excel carriage return
- Next by Date: Re: Looking to verify users via Active Directory
- Previous by thread: Re: Looking to verify users via Active Directory
- Next by thread: Re: Looking to verify users via Active Directory
- Index(es):
Relevant Pages
|