Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Active Directory or ADSI

190 views
Skip to first unread message

Deborah Pate (TeamB)

unread,
Mar 22, 2001, 5:26:24 AM3/22/01
to
<<AEgir Sveinsson:
Does anyone know of a good recource on how to program ADSI
with Delphi?
>>

http://www.agnisoft.com/adsi/Conf2000/3132.htm

There was also an article in Delphi Informant by Simon
Murrell, but my link seems to be broken - you can get it
from Google, though:
http://www.google.com/search?q=cache:www.delphiinformant.co
m/features/2000/05/di200005sm_f/di200005sm_f.asp+simon+murr
ell+adsi&hl=en

--
Deborah Pate (TeamB) http://delphi-jedi.org

Use Borland servers; TeamB don't see posts via ISPs
http://www.borland.com/newsgroups/genl_faqs.html


Marc Scheuner

unread,
Mar 22, 2001, 8:59:40 AM3/22/01
to
On Thu, 22 Mar 2001 10:26:24 GMT, "Deborah Pate (TeamB)"
<d.p...@cableinet.co.not-this-bit.uk> wrote:
>There was also an article in Delphi Informant by Simon
>Murrell, but my link seems to be broken - you can get it
>from Google, though:

No, it's not broken - Delphi Informant has locked down access to its
articles on the web site to their magazine subscribers...... a pity in
some ways, but from a business point of view quite understandable.

Marc


------------------------------------------------------------------------
Marc Scheuner Software Engineer
FastLane Technologies Inc. Halifax, Nova Scotia, Canada
Email: msch...@fastlane.com http://www.fastlane.com

AEgir Sveinsson

unread,
Mar 22, 2001, 5:03:42 AM3/22/01
to

Ivan

unread,
Mar 22, 2001, 5:11:27 PM3/22/01
to
The Delphi examples I've come across so far have been very poor and
inefficient. I would recommend using ADO to access the AD unless you're a
COM guru.

Ivan


"Marc Scheuner" <msch...@no.spam.for.me.ca> wrote in message
news:i81kbt0bkgqlfdc6u...@4ax.com...

Marc Scheuner

unread,
Mar 23, 2001, 8:21:42 AM3/23/01
to
On Thu, 22 Mar 2001 22:11:27 -0000, "Ivan"
<ivanjones(DeleteThisAntiSpamBracketBeforeSending)@hotmail.com> wrote:
>The Delphi examples I've come across so far have been very poor and
>inefficient. I would recommend using ADO to access the AD unless you're a
>COM guru.

We're using ADSI from Delphi all the time, and it works like a charm -
using ADO slows down things considerably.

Yes, you need to understand how to USE COM, but that's something every
serious Delphi / WIndows developer must understand these days ;-)

Ing. Wolfgang Bures

unread,
Mar 25, 2001, 7:55:33 AM3/25/01
to
Is there a way to find the AD container a user is in when you have the user
name?

"Marc Scheuner" <msch...@no.spam.for.me.ca> schrieb im Newsbeitrag
news:rdjmbtcoi6vrnnj4a...@4ax.com...

Marc Scheuner

unread,
Mar 26, 2001, 7:59:13 AM3/26/01
to
On Sun, 25 Mar 2001 14:55:33 +0200, "Ing. Wolfgang Bures"
<Wolf...@bures.at> wrote:
>Is there a way to find the AD container a user is in when you have the user
>name?

Sure - if you have the *FULL* user's LDAP name, that is.

<LDAP://MyServer.MyCompany.Com/CN=John Doe,OU=R&D,DC=MyCompany,DC=Com>

In that case, he's in the OU called:

OU=R&D or in full LDAP:
<LDAP://MyServer.MyCompany.Com/OU=R&D,DC=MyCompany,DC=Com>

If you have only its first/last name (John Doe), then you'd have to do
a search on the whole directory - using IDirectorySearch or something
like that.

0 new messages