2024 π Daylatest newsbuy art
Love itself became the object of her love.Jonathan Safran Foercount sadnessesmore quotes
very clickable
data + munging

The Perl Journal

Volumes 1–6 (1996–2002)

Code tarballs available for issues 1–21.

I reformatted the CD-ROM contents. Some things may still be a little wonky — oh, why hello there <FONT> tag. Syntax highlighting is iffy. Please report any glaring issues.

The Perl Journal
#11
Fall 1998
vol 3
num 3
The Birth of a One-Liner
A beginner's look at shrinking Perl code.
Just the FAQs: Suffering From Buffering
Your output doesn't always appear when you think it does.
Parsing VRML
Using Perl to interpret the Virtual Reality Modeling Language.
Source Filters
Ever wanted to encrypt your Perl programs?
A Web Proxy Module For mod_perl
Eliminate ads from your web pages with a proxy.
Perl Style
How readable is your code?
Perl News
What's new in the Perl community.
Win32: PerlCOM And PerlCtrl
Two new products for gluing Win32 COM objects.
Benchmarking
Measuring the speed of Perl programs.
Iterating Over Permutations
Making certain brute force searches a little more tractable.
Creating Applications With mod_perl
Using Apache::Registry, Apache::Sandwich, Embperl, and DBI.
Making Life And Death Decisions With Perl
Probability theory and deadly diseases.
Netscape and LDAP
Accessing directories via the Lightweight Directory Access Protocol.
The Third Annual Obfuscated Perl Contest Victors
perl -e '$# = print "1 + 1 = "; print 2'
The Perl Journal One-Liners
Tom Paquin (1998) Netscape and LDAP. The Perl Journal, vol 3(3), issue #11, Fall 1998.

Netscape and LDAP

Accessing directories via the Lightweight Directory Access Protocol.

Tom Paquin


Requirements
Just Perl

On January 22, 1998, Netscape announced that the source code for its flagship client software product, Netscape Communicator, would be freely available for modification and redistribution on the Internet. Other programs have been developed using open source models before, but this was the first time a commercial software company allowed broad access to the source code of a major shipping product.

When Communicator was developed solely within Netscape, it was a sizable development effort that required a good deal of coordination to manage. With the release of the Communicator source code, the group of developers working on the code at any one time grows from hundreds to thousands. It may seem that a development effort of this size may be impossible to manage, but successful open source development projects such as Perl, Linux, and Apache have proven that a distributed, loosely organized group of developers can be very effective at developing high-quality software rapidly.

While several factors are required for success, including a compelling need for the software and a good base of code from which to start, the most important is a person or group trusted by the development community to lead and guide the development effort. To fill this role, Netscape created mozilla.org to provide leadership for the Communicator source code. Mozilla.org is responsible for fostering communications among developers, maintaining Communicator source code, and hosting Communicator source code as well as other developer tools on the mozilla.org web site.

Mozilla.org isn't just about Communicator source code. Other developer tools such as source code to the Netscape Directory and Mission Control Console software development kits are also available through mozilla.org. Netscape Directory SDK gives developers the complete set of software libraries, command-line utilities, sample code, and documentation needed to build applications that access networked directory data using the Light-weight Directory Access Protocol (LDAP).

LDAP was developed at the University of Michigan at Ann Arbor in conjunction with the Internet Engineering Task Force, and is the Internet directory protocol for accessing and managing directory services. It is a distributed database application designed to manage the entries and attributes in a directory and makes them available to users and other applications. The Netscape Directory Server is an example of an LDAP-compliant directory service.

For example, you might use a directory service to look up someone's telephone number, or to retrieve a list of email addresses.

An LDAP-enabled server manages and provides information about users and organizational structures, such as groups and departments. Examples of LDAP clients might include the HTTP gateway to the Netscape Directory Server, Netscape Navigator, and Netscape Communicator. The gateway uses the directory service to find, update, and add information about users. The Netscape Directory SDK provides developers with the tools to access the LDAP layer.

Netscape plans to expand the set of tools with the release of PerLDAP source code-Perl modules that allow developers to access and manipulate LDAP-enabled directories quickly and easily. Until now, Perl users would have to write complex Perl code or use C or Java to access LDAP. PerLDAP will increase productivity by abstracting the lower level details of LDAP with an object-oriented Perl interface. You will be able to easily search, add, delete, and update directory entries with minimal knowledge of LDAP. Here's a demonstration of PerLDAP:

#!/usr/bin/perl

use Perldap;

$ldap = new Perldap("mars", "3006",
        "cn=Directory Manager, corp=Corporate Express",
        "administrator");
		
$entry = $ldap->search("corp=Corporate Express",
                       "subtree","objectclass=company");
					   
$ldap->printentry($entry) if $entry;

while ($entry = $ldap->entry) {
    $ldap->printentry($entry);
}

$ldap->close;

This program creates a Perldap object to create a connection to the directory server running on host mars, on port 3006, as cn=Directory Manager, corp=Corporate Express, with administrator as password. Then it searches for all the directory entries where objectclass=company, in the subtree corp=Corporate Express, and prints out the information contained in each entry. Finally, it closes the connection to the directory server.

PerLDAP source code and documentation are available for download on Mozilla.org and CPAN. PerLDAP binaries are also available on Netscape's DevEdge site, https://developer.netscape.com.

The development process for Netscape-branded products in the open source development world is very similar to Netscape's production process today, with one key difference - Netscape is no longer the sole contributor to the Communicator source code. Instead, Netscape will benefit from the best of both worlds, using its own development team to develop new features, while selecting the best enhancements from the open source development to create Netscape-branded versions of software.


Tom Paquin was a member of the original Netscape Navigator development team and is now a Netscape fellow and the manager and "benevolent dictator" of Netscape's mozilla.org project.
Martin Krzywinski | contact | Canada's Michael Smith Genome Sciences CentreBC Cancer Research CenterBC CancerPHSA
Google whack “vicissitudinal corporealization”
{ 10.9.234.152 }