Project

General

Profile

Revision 8548

Added by Jing Tao over 6 years ago

Add a note to let user know he/she should use single quotes to surround the hashed password.

View differences:

src/edu/ucsb/nceas/metacat/authentication/AuthFile.java
56 56
 *          <surName>Smith</surName>
57 57
 *          <givenName>John</givenName>
58 58
 *          <organization>NCEAS</organization>
59
 *          <group>nceas-dev</group>
59
 *          <memberof>nceas-dev</memberof>
60 60
 *      </user>
61 61
 *  </users>
62 62
 *  <groups>
......
996 996
                        "./authFileManager.sh usermod -password -dn user-distinguish-name -h new-hashed-password\n"+
997 997
                        "./authFileManager.sh usermod -group -a -dn user-distinguish-name -g added-group-name\n" +
998 998
                        "./authFileManager.sh usermod -group -r -dn user-distinguish-name -g removed-group-name\n"+
999
                        "Note:\n"+"1. 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"+
1000
                        "2. if a value of an option has spaces, the value should be enclosed by the double quotes.\n"+
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"+
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
                        "3. if a value of an option has spaces, the value should be enclosed by the double quotes.\n"+
1001 1003
                        "  For example: ./authFileManager.sh groupadd -g nceas-dev -d \"Developers at NCEAS\"\n"+
1002
                        "3. \"-d description\" in groupadd is optional; \"-g groupname -e email-address -s surname -f given-name -o organizationName\" in useradd are optional as well.");
1004
                        "4. \"-d description\" in groupadd is optional; \"-g groupname -e email-address -s surname -f given-name -o organizationName\" in useradd are optional as well.");
1003 1005
                       
1004 1006
                        
1005 1007
    }

Also available in: Unified diff