]> andersk Git - moira.git/commitdiff
Don't make new LINCOLN accounts have preassigned usernames, but do still
authorzacheiss <zacheiss>
Tue, 18 Mar 2003 22:30:54 +0000 (22:30 +0000)
committerzacheiss <zacheiss>
Tue, 18 Mar 2003 22:30:54 +0000 (22:30 +0000)
default them to Kerberos-only accounts.

regtape/common.pc

index 24a32a6552c7578834680edd2e6619830df14a95..7b259faf87593b7de6f278918cf15f216a85844c 100644 (file)
@@ -252,25 +252,11 @@ void newuser(struct entry *e, int secure)
 
   users_id = set_next_users_id();
   uid = set_next_uid();
+  sprintf(login, "#%d", uid);
   if (!strcmp(e->type, "LINCOLN"))
-    {
-      char *p;
-
-      strncpy(login, e->first, 2);
-      login[2] = '\0';
-      /* strip leading zeroes */
-      p = e->id+4;
-      while (*p == '0')
-       p++;
-      strncat(login, p, strlen(p));
-      lowercase(login);
-      st = US_NO_LOGIN_YET_KERBEROS_ONLY;
-    }
+    st = US_NO_LOGIN_YET_KERBEROS_ONLY;
   else
-    {
-      sprintf(login, "#%d", uid);
-      st = US_NO_LOGIN_YET;
-    }
+    st = US_NO_LOGIN_YET;
   last = e->last;
   first = e->first;
   middle = e->middle;
This page took 6.496886 seconds and 5 git commands to generate.