« Recent issues with myUMBC | Main | MATLAB upgraded to R14.2 »

Setting the current semester in LDAP

We keep track of what is the current semester in LDAP for apps that need it don't have to expend any effort. At the time of this writing, the most important thing that relies on this being correct is the authorization to use the SGI lab machines.

It's kept as a referral ('ref') entry:
dn: umbcsemester=current,ou=Courses,o=umbc.edu
objectclass: top
objectclass: referral
objectclass: umbcCourseSem
ref: ldap:///umbcSemester=200506,ou=Courses,o=umbc.edu

Refs are slightly annoying to work with, so if you should ever need to do so here are the commands you need:
(Both commands take -h <host> -p <port> -D <bind_dn> -w <password>)

Search:
ldapsearch -b "umbcsemester=current,ou=Courses,o=umbc.edu" -M -s base "objectclass=*"

Modify:
ldapmodify -M
dn: umbcSemester=current,ou=Courses,o=umbc.edu
objectclass: top
objectclass: referral
objectclass: umbcCourseSem
umbcsemester: current
ref: ldap:///umbcSemester=200506,ou=Courses,o=umbc.edu

Comments (1)

Tim:

Also, just to note, the oracle getclass.pl uses the current link as well.

Post a comment

About

This page contains a single entry from the blog posted on June 9, 2005 4:43 PM.

The previous post in this blog was Recent issues with myUMBC.

The next post in this blog is MATLAB upgraded to R14.2.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34