468,278 Members | 1,565 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,278 developers. It's quick & easy.

API to Access Active Directory Organizational Unit Membership

Does anyone know of any Windows API calls to get to Active Directory
organizational unit information? I searched for this a while back
and found nothing. It would be a great thing if I could get to it,
as it would mean I wouldn't have to duplicate location information
in Access/Jet security for a certain application I'm managing.

Any ideas?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #1
5 3547
David W. Fenton wrote:
Does anyone know of any Windows API calls to get to Active Directory
organizational unit information? I searched for this a while back
and found nothing. It would be a great thing if I could get to it,
as it would mean I wouldn't have to duplicate location information
in Access/Jet security for a certain application I'm managing.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Though I've never used it myself, I know that you can use ADO to access
Active Directory. Use the Provider "ADSDSOObject." See this URL for
more info:

http://tinyurl.com/bsxx3

Also, using Google & the search string '"active directory" ADO provider'
(remove the single quotes) I found about 28,500 hits.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQworqoechKqOuFEgEQKpegCgwfkRUr+pS7QQpOnUASbe89 fozUEAoPwN
VueLJqBiqdUEOfH6dSrSzf18
=rHVB
-----END PGP SIGNATURE-----
Nov 13 '05 #2
Hi, David
Does anyone know of any Windows API calls to get to Active Directory
organizational unit information? I searched for this a while back
and found nothing. It would be a great thing if I could get to it,
as it would mean I wouldn't have to duplicate location information
in Access/Jet security for a certain application I'm managing.
Any ideas?


I've once found the function IsMember() published by Greg Reddick here :

http://doc.advisor.com/doc/08691

Maybe the links mentioned there let you get more informations.

Jens
Nov 13 '05 #3
"Jens Schilling" <Je************************@fissership.de> wrote in
news:de**********@online.de:
Does anyone know of any Windows API calls to get to Active
Directory organizational unit information? I searched for this a
while back and found nothing. It would be a great thing if I
could get to it, as it would mean I wouldn't have to duplicate
location information in Access/Jet security for a certain
application I'm managing. Any ideas?


I've once found the function IsMember() published by Greg Reddick
here :

http://doc.advisor.com/doc/08691

Maybe the links mentioned there let you get more informations.


That's not an ActiveDirectory lookup -- it's just regular Domain
Group lookup. What I need is information about membership in an
Active Directory organizational unit.

I'll see if I can muck around with the other citation.

If it were just a matter of moving Access security groups into
Domain-level security, it wouldn't be an issue, but what is needed
is to use already-existing AD data so as to not need to shift the
maintenance of Access user groups to the domain security system.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #4
Br
David W. Fenton <dX********@bway.net.invalid> wrote:
"Jens Schilling" <Je************************@fissership.de> wrote in
news:de**********@online.de:
Does anyone know of any Windows API calls to get to Active
Directory organizational unit information? I searched for this a
while back and found nothing. It would be a great thing if I
could get to it, as it would mean I wouldn't have to duplicate
location information in Access/Jet security for a certain
application I'm managing. Any ideas?


I've once found the function IsMember() published by Greg Reddick
here :

http://doc.advisor.com/doc/08691

Maybe the links mentioned there let you get more informations.


That's not an ActiveDirectory lookup -- it's just regular Domain
Group lookup. What I need is information about membership in an
Active Directory organizational unit.

I'll see if I can muck around with the other citation.

If it were just a matter of moving Access security groups into
Domain-level security, it wouldn't be an issue, but what is needed
is to use already-existing AD data so as to not need to shift the
maintenance of Access user groups to the domain security system.


I've a similar problem. I'm trying to implement row level security based
on where the person sits in the organisation structure. At the moment
I'm using a table to hold the information but this means I can't
automate the security process (I need to manually link the AD login to
an employee record in the DB by controlling user admin through the
client).

So, what I need is to determine what organistation unit the person
manages and then determine all the employees in that unit AND in any
sub-ordinate units and allow the person to view all those employee's
records.

I think I'd need to link my employee table somehow to the AD
entries....?
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 13 '05 #5

"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:Xn**********************************@216.196. 97.142...
Does anyone know of any Windows API calls to get to Active Directory
organizational unit information? I searched for this a while back
and found nothing. It would be a great thing if I could get to it,
as it would mean I wouldn't have to duplicate location information
in Access/Jet security for a certain application I'm managing.

Any ideas?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc


If you check Scripting in Microsoft TechNet, there is an example on how to
get Active Directory information into Excel. You should be able to modify it
to work with Access.
Nov 13 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tim | last post: by
4 posts views Thread by Marc | last post: by
4 posts views Thread by Phil Kelly | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.