MACSCRPT Archives

June 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
David Livesay <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 30 Jun 2006 10:31:01 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (12 lines)
 On Friday, June 30, 2006, at 10:16AM, Bill Steele <[log in to unmask]> wrote:

>Can URL Access Scripting do an LDAP lookup?  If so, hints on syntax 
>would be appreciated. The syntax that works with Eudora does not seem 
>to transfer to Applescript.

You should be able to use ldapsearch. Here's an example of how it works:

ldapsearch -hZ [IP ADDRESS]:[PORT 389 (default)/636 (ssl)] -b [SEARCH BASE (e.g. ou=[TREE],dc=[DOMAIN NAME],dc=[TLD])] -D cn=[USER NAME],ou=[TREE],dc=[DOMAIN NAME],dc=[TLD] -w [PASSWORD] -x '[SEARCH STRING (enclose in quotes if you're using wildcards)]'

Take a look at the manpage for ldapsearch for more (and clearer) information.

ATOM RSS1 RSS2