]> andersk Git - moira.git/blobdiff - regtape/common.pc
tcsh is dead. Long live bash.
[moira.git] / regtape / common.pc
index db64d72c29e5defb3025304a8674d8b3e8662423..6dabac2e25d0d86b2ae289e66983652bed7ce942 100644 (file)
@@ -29,7 +29,7 @@ EXEC SQL END DECLARE SECTION;
 extern char *whoami;
 
 #define MIN_ID_VALUE 100
-#define MAX_ID_VALUE 65535
+#define MAX_ID_VALUE 131072
 
 /* Remove non-digits from a phone number. */
 void fixphone(char *phone)
@@ -281,8 +281,8 @@ void newuser(struct entry *e, int secure)
      department, home_addr, home_phone, office_addr, office_phone, fmodtime,
      fmodby, fmodwith, potype, pmodtime, pmodby, pmodwith,
      xname, xdept, xtitle, xaddress, xphone1, xphone2, xmodtime, secure,
-     created, creator, winhomedir, winprofiledir)
-    VALUES (:login, :users_id, :uid, '/bin/athena/tcsh', 'cmd',
+     created, creator, winhomedir, winprofiledir, sponsor_type, sponsor_id, expiration)
+    VALUES (:login, :users_id, :uid, '/bin/athena/bash', 'cmd',
            NVL(:last, CHR(0)), NVL(:first, CHR(0)), NVL(:middle, CHR(0)),
            :st, NVL(:id, CHR(0)), NVL(:type, CHR(0)), SYSDATE, :who, :prog,
            NVL(:name, CHR(0)), NVL(:dept, CHR(0)), NVL(:haddr, CHR(0)),
@@ -292,7 +292,7 @@ void newuser(struct entry *e, int secure)
            NVL(SUBSTR(:name, 0, :xnlen), CHR(0)), NVL(:dept, CHR(0)),
            NVL(:xtitle, CHR(0)), NVL(:xaddress, CHR(0)),
            NVL(:xphone1, CHR(0)), NVL(:xphone2, CHR(0)), SYSDATE, :issecure,
-           SYSDATE, :who, '[AFS]', '[AFS]');
+           SYSDATE, :who, '[DFS]', '[DFS]', 'NONE', 0, CHR(0));
   if (sqlca.sqlcode)
     {
       dbmserr("adding user", sqlca.sqlcode);
This page took 2.525648 seconds and 4 git commands to generate.