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)
Also, just to note, the oracle getclass.pl uses the current link as well.
Posted by Tim | July 15, 2005 2:26 PM
Posted on July 15, 2005 14:26