]> git.saurik.com Git - apple/system_cmds.git/blobdiff - chpass.tproj/table.c
system_cmds-279.1.tar.gz
[apple/system_cmds.git] / chpass.tproj / table.c
index dbae70239fd347318f5b5ace4cb1827e19c2f3f8..1cd169b78a68e6d799ea551499a54070b66bbc46 100644 (file)
 char e1[] = ": ";
 char e2[] = ":,";
 
+#ifdef DIRECTORY_SERVICE
+ENTRY list[] = {
+       { "login",              d_login,        p_login,  0,   5, e1,   },
+       { "password",           d_passwd,       p_passwd, 0,   8, e1,   },
+       { "uid",                d_uid,          p_uid,    0,   3, e1,   },
+       { "gid",                d_gid,          p_gid,    0,   3, e1,   },
+       { "change",             d_change,       p_change, 0,   6, NULL, },
+       { "expire",             d_expire,       p_expire, 0,   6, NULL, },
+       { "class",              d_class,        p_class,  0,   5, e1,   },
+       { "home directory",     d_hdir,         p_hdir,   0,  14, e1,   },
+       { "shell",              d_shell,        p_shell,  0,   5, e1,   },
+       { "full name",          d_fullname,     p_gecos,  0,   9, e2,   },
+       { "location",           d_location,     p_gecos,  0,   8, e2,   },
+       { "office phone",       d_officephone,  p_gecos,  0,  12, e2,   },
+       { "home phone",         d_homephone,    p_gecos,  0,  10, e2,   },
+       { NULL },
+};
+#else /* DIRECTORY_SERVICE */
 ENTRY list[] = {
        { "login",              p_login,  1,   5, e1,   },
        { "password",           p_passwd, 1,   8, e1,   },
@@ -77,3 +95,4 @@ ENTRY list[] = {
        { "shell",              p_shell,  0,   5, e1,   },
        { NULL, 0, },
 };
+#endif /* DIRECTORY_SERVICE */