]> git.saurik.com Git - apple/system_cmds.git/blobdiff - chpass.tproj/table.c
system_cmds-880.100.5.tar.gz
[apple/system_cmds.git] / chpass.tproj / table.c
index a6dae3e6837c6428c83a37d2fcb22f253be5f212..ba1523db8c31f8ee98890e48576e8a95a7a35800 100644 (file)
@@ -1,15 +1,15 @@
 /*
- * Copyright (c) 1999-2006 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1999-2016 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
- * 
+ *
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
  * compliance with the License. Please obtain a copy of the License at
  * http://www.opensource.apple.com/apsl/ and read it before using this
  * file.
- * 
+ *
  * The Original Code and all software distributed under the License are
  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
@@ -17,7 +17,7 @@
  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  * Please see the License for the specific language governing rights and
  * limitations under the License.
- * 
+ *
  * @APPLE_LICENSE_HEADER_END@
  */
 /*-
@@ -74,22 +74,22 @@ char e2[] = ":,";
 #include "open_directory.h"
 
 ENTRY list[] = {
-       { "Login",                                              display_string, p_login,        1,   5, e1,     CFSTR(kDSNAttrRecordName), },
-       { "Password",                                   display_string, p_passwd,       1,   8, e1,     CFSTR(kDS1AttrPassword), },
-       { "Uid [#]",                                    display_string, p_uid,          1,   3, e1,     CFSTR(kDS1AttrUniqueID), },
-       { "Gid [# or name]",                    display_string, p_gid,          1,   3, e1,     CFSTR(kDS1AttrPrimaryGroupID), },
-       { "Generated uid",                              display_string, p_uuid,         1,      13,     NULL,   CFSTR(kDS1AttrGeneratedUID), },
+       { "Login",                                              display_string, p_login,        1,   5, e1,     &kODAttributeTypeRecordName, },
+       { "Password",                                   display_string, p_passwd,       1,   8, e1,     &kODAttributeTypePassword, },
+       { "Uid [#]",                                    display_string, p_uid,          1,   3, e1,     &kODAttributeTypeUniqueID, },
+       { "Gid [# or name]",                    display_string, p_gid,          1,   3, e1,     &kODAttributeTypePrimaryGroupID, },
+       { "Generated uid",                              display_string, p_uuid,         1,      13,     NULL,   &kODAttributeTypeGUID, },
 #if 0
        { "Change [month day year]",    display_time,   p_change,       1,   6, NULL,   CFSTR(kDS1AttrChange), },
-       { "Expire [month day year]",    display_time,   p_expire,       1,   6, NULL,   CFSTR(kDS1AttrExpire), },
+       { "Expire [month day year]",    display_time,   p_expire,       1,   6, NULL,   kODAttributeTypeExpire, },
        { "Class",                                              display_string, p_class,        0,   5, e1,     CFSTR(""),                      "Class" },
 #endif
-       { "Home directory",                             display_string, p_hdir,         1,  14, e1,     CFSTR(kDS1AttrNFSHomeDirectory), },
-       { "Shell",                                              display_string, p_shell,        1,   5, e1,     CFSTR(kDS1AttrUserShell), },
-       { "Full Name",                                  display_string, p_gecos,        1,   9, e2,     CFSTR(kDS1AttrDistinguishedName), },
-       { "Office Location",                    display_string, p_gecos,        1,   8, e2,     CFSTR(kDSNAttrBuilding), },
-       { "Office Phone",                               display_string, p_gecos,        1,  12, e2,     CFSTR(kDSNAttrPhoneNumber),     },
-       { "Home Phone",                                 display_string, p_gecos,        1,  10, e2,     CFSTR(kDSNAttrHomePhoneNumber), },
+       { "Home directory",                             display_string, p_hdir,         1,  14, e1,     &kODAttributeTypeNFSHomeDirectory, },
+       { "Shell",                                              display_string, p_shell,        1,   5, e1,     &kODAttributeTypeUserShell, },
+       { "Full Name",                                  display_string, p_gecos,        1,   9, e2,     &kODAttributeTypeFullName, },
+       { "Office Location",                    display_string, p_gecos,        1,   8, e2,     &kODAttributeTypeBuilding, },
+       { "Office Phone",                               display_string, p_gecos,        1,  12, e2,     &kODAttributeTypePhoneNumber,   },
+       { "Home Phone",                                 display_string, p_gecos,        1,  10, e2,     &kODAttributeTypeHomePhoneNumber,       },
        { NULL,                                                 NULL,                   NULL,           0,      0,      NULL,   NULL,},
 };
 #else /* OPEN_DIRECTORY */