Code to look up GAL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm looking for some sort of code that would query our Global Address List.
The reason I would like this is that all phone extensions are located on the
Global Address List and I would like to add this directory to our intranet
site.

There is a phone directory on the site but it queries an Access database
which is not kept up-to-date. It would be much simpler if the directory could
query our GAL since it's updated frequently.

Not all staff have Outlook so it's a good idea to have an updated list on
our site.

I'm using FP 2003.

Please note I'm still a newbie so the simplest wording would be greatly
appreciated.

Cheers,
Nicole
 
In order to do this you will have to learn ASP or ASP.NET (or another
server-side code) and have access to your LDAP Server information (where the
Outlook Global Address List is stored). For example:

Assuming your LDAP is set up correctly and you have access to it you could
do something like this:

Set objRS =
oConn.Execute("<LDAP://SERVER/o=organization/ou=site/cn=recipients>;(object­Class=groupOfNames)")
' enter how you connect to your LDAP server above
While not objRS.EOF
member = objRS.fields("member").Value
objRS.MoveNext
wend

In the above you would change "member" to be whatever field you want to
display.

There are other articles here http://www.15seconds.com/focus/ADSI.htm
 
Back
Top