Project

General

Profile

Revision 8575

Added by Jing Tao about 7 years ago

Modified the usage.

View differences:

src/edu/ucsb/nceas/metacat/authentication/AuthFile.java
989 989
     */
990 990
    private static void printUsage() {
991 991
        System.out.println("Usage:\n"+
992
                        "./authFileManager.sh useradd -i -dn user-distinguish-name -g group-name -e email-address -s surname -f given-name -o organizationName\n" +
993
                        "./authFileManager.sh useradd -h hashed-password -dn user-distinguish-name -g group-name -e email-address -s surname -f given-name -o organizationName\n"+
994
                        "./authFileManager.sh groupadd -g group-name -d description\n" +
995
                        "./authFileManager.sh usermod -password -dn user-distinguish-name -i\n"+
996
                        "./authFileManager.sh usermod -password -dn user-distinguish-name -h new-hashed-password\n"+
997
                        "./authFileManager.sh usermod -group -a -dn user-distinguish-name -g added-group-name\n" +
998
                        "./authFileManager.sh usermod -group -r -dn user-distinguish-name -g removed-group-name\n"+
992
                        "./authFileManager.sh useradd -i -dn <user-distinguish-name> [-g <group-name> -e <email-address> -s <surname> -f <given-name> -o <organizationName>]\n" +
993
                        "./authFileManager.sh useradd -h <hashed-password> -dn <user-distinguish-name> [-g <group-name> -e <email-address> -s <surname> -f <given-name> -o <organizationName>]\n"+
994
                        "./authFileManager.sh groupadd -g group-name [-d description]\n" +
995
                        "./authFileManager.sh usermod -password -dn <user-distinguish-name> -i\n"+
996
                        "./authFileManager.sh usermod -password -dn <user-distinguish-name> -h <new-hashed-password>\n"+
997
                        "./authFileManager.sh usermod -group -a -dn <user-distinguish-name> -g <added-group-name>\n" +
998
                        "./authFileManager.sh usermod -group -r -dn <user-distinguish-name> -g <removed-group-name>\n"+
999 999
                        "Note:\n"+"1. Metacat currently uses Bcrypt algorithm to hash the password. The hashed password following the \"-h\" should be generated by a Bcrypt algorithm.\n"+
1000
                        "  The hash string usually has $ signs which messes the command line arguments. You should use two SINGLE quotes to wrap the entire hashed string.\n"+
1000
                        "  The hash string usually has $ signs which can interfere with the command line arguments. You should use two SINGLE quotes to wrap the entire hashed string.\n"+
1001 1001
                        "2. The user-distinguish-name must look like \"uid=john,o=something,dc=something,dc=something\" and the group-name must look like \"cn=dev,o=something,dc=something,dc=something\".\n"+
1002 1002
                        "3. if a value of an option has spaces, the value should be enclosed by the double quotes.\n"+
1003 1003
                        "  For example: ./authFileManager.sh groupadd -g cn=dev,o=something,dc=something,dc=something -d \"Developers at NCEAS\"\n"+

Also available in: Unified diff