Chuck modified the emulab lib code that creates accounts to allow you to request a specific UID (before it always assigned the UID).
I added a new config variable DISABLENEWUSER. If you set that to 1 it disables all web-based new account features of emulab.
/root/bin/emuact-sync is the script that polls accounting info and syncs narwhal with it. eventually to run from cron, but i run it manually right now to keep an eye out for errors. should be run under "narwhal" account with "wap"...