]> andersk Git - moira.git/blobdiff - regtape/common.pc
Don't make new LINCOLN accounts have preassigned usernames, but do still
[moira.git] / regtape / common.pc
index 8f89fd2402de9a59f63d9e394686bdc0fc2ffc65..7b259faf87593b7de6f278918cf15f216a85844c 100644 (file)
@@ -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;
@@ -277,7 +280,8 @@ void newuser(struct entry *e, int secure)
      middle, status, clearid, type, modtime, modby, modwith, fullname, 
      department, home_addr, home_phone, office_addr, office_phone, fmodtime,
      fmodby, fmodwith, potype, pmodtime, pmodby, pmodwith,
-     xname, xdept, xtitle, xaddress, xphone1, xphone2, xmodtime, secure)
+     xname, xdept, xtitle, xaddress, xphone1, xphone2, xmodtime, secure,
+     created, creator)
     VALUES (:login, :users_id, :uid, '/bin/athena/tcsh', '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,
@@ -287,7 +291,8 @@ void newuser(struct entry *e, int secure)
            'NONE', SYSDATE, :who, :prog, 
            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);
+           NVL(:xphone1, CHR(0)), NVL(:xphone2, CHR(0)), SYSDATE, :issecure,
+           SYSDATE, :who);
   if (sqlca.sqlcode)
     {
       dbmserr("adding user", sqlca.sqlcode);
This page took 0.036156 seconds and 4 git commands to generate.