]> andersk Git - moira.git/blobdiff - gen/passwd.dc
added nickname field
[moira.git] / gen / passwd.dc
index 52b8101af35aa5938083b74c01e7347136bcce18..9fcbce2cb5b0fa0afccbc5172a38e61f5ccffe96 100644 (file)
@@ -28,6 +28,7 @@ char **argv;
     char *outf, outft[64];
     struct stat sb;
 ##  char login[9], shell[33], fullname[33], oa[17], op[13], hp[17], *filetime;
+##  char nickname[17];
 ##  int uid, error, flag;
     int ingerr();
 
@@ -63,16 +64,18 @@ char **argv;
 ##  range of u is users
 ##  retrieve (login = u.#login, uid = u.#uid, shell = u.#shell,
 ##           fullname = u.#fullname, oa = u.office_addr,
+##           nickname = u.#nickname,
 ##           op = u.office_phone, hp = u.home_phone)
 ##     where u.status = 1 {
            strtrim(login);
            strtrim(fullname);
+           strtrim(nickname);
            strtrim(oa);
            strtrim(op);
            strtrim(hp);
            strtrim(shell);
-           fprintf(out, "%s:*:%d:101:%s,%s,%s,%s:/mit/%s:%s\n",
-                   login, uid, fullname, oa, op, hp, login, shell);
+           fprintf(out, "%s:*:%d:101:%s,%s,%s,%s,%s:/mit/%s:%s\n",
+                   login, uid, fullname, nickname, oa, op, hp, login, shell);
 ##  }
 ##  inquire_equel(error = "errorno")
     if (error)  {
This page took 0.036201 seconds and 4 git commands to generate.