Princeton LDAP Database Interface

This page lets you search the Princeton University LDAP database. So does this page. The difference here is that you can use multiple criteria in your search. For example, let's say you're looking for a sophomore named James who lives in Rockefeller College. You could root through the facebook (boring), or knock on every door in Holder (too slow). Or you could check off the criteria you want to use (Complete Name: James, Status=u04, College: Rockefeller), click "search", and actually find the person.

Note: this script is extremely slow for large queries, and has an upper limit of about 500 matches. If you're trying to find every student in Wilson, you're going to have to wait about 40 seconds. If you want to get every student in the Class of 2004, your search will hit the limit and return only partial results.

NameUse?Criteria
By Status
By surname, or fraction thereof*.
By complete name, or fraction thereof*.
By netid (does not support wildcards).
By student address, or fraction thereof*.
By College

Require exact match (turn off automatic wildcarding)

Check to see if search hits have Princeton web pages (checks for response 200 from www.princeton.edu; slow for large result sets)

Check to see if search hits are online (ping probe; only works for students; slow for large result sets)

Don't fetch pictures of search hits (Facebook pictures cannot be posted due to copyright issues. Write to submit@amory.princeton.edu to submit a picture.)

Fetch larger versions of the pictures.

*Use wildcards for partial names: the name "Bar*t" matches "Bart" and "Barret". Terms are encapsulated in wildcards by default: the address "Little" is considered "*Little*" matches everybody in Little. Note that queries with wildcards are really slow if lots of matches appear. Ditto searching for everybody in a residential college. To turn off the automatic substitution of "*Little*" for "Little", check the Require Exact Match box. Netids are not automatically wildcarded.

All uses of this tool are logged -- I don't want anyone feeding it escape-sequence-laden search strings in an attempt to bring down my machine. All that will do is crash Tiger Magazine's file server and make lots of people annoyed.

You can specify an address and a college, but that's silly, unless your query is something like "Everybody in Rockefeller with the room number 222"


Author:Joseph Barillari. Directory information is the property of Princeton University, photographs property of their respective holders.

Do you find this script useful? It's powered by free: and open-source software: PHP, OpenLDAP, Apache, and OpenBSD. The source code for this script is online. The Princeton Unix Group is the on-campus source for information about software like this.

Last updated $Date: 2002/03/20 03:47:05 $ GMT.

changelog