]> andersk Git - moira.git/blobdiff - regtape/common.pc
tcsh is dead. Long live bash.
[moira.git] / regtape / common.pc
index 1c4588d902aecbad519a540251efff9434a619b9..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)
@@ -253,7 +253,10 @@ void newuser(struct entry *e, int secure)
   users_id = set_next_users_id();
   uid = set_next_uid();
   sprintf(login, "#%d", uid);
-  st = US_NO_LOGIN_YET;
+  if (!strcmp(e->type, "LINCOLN"))
+    st = US_NO_LOGIN_YET_KERBEROS_ONLY;
+  else
+    st = US_NO_LOGIN_YET;
   last = e->last;
   first = e->first;
   middle = e->middle;
@@ -278,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)
-    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)),
@@ -289,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);
+           SYSDATE, :who, '[DFS]', '[DFS]', 'NONE', 0, CHR(0));
   if (sqlca.sqlcode)
     {
       dbmserr("adding user", sqlca.sqlcode);
This page took 0.056501 seconds and 4 git commands to generate.