Examples of passwd()


Examples of cu.ftpd.user.User.passwd()

                // NOTE: we keep "site primarygroup" and "site tagline" and "site passwd" as a convenience command for users to change their own information
                if ("logins".equals(property)) {
                    target.setLogins(Integer.parseInt(value));
                    connection.respond("200 Setting 'logins' to " + target.getLogins() + " for user " + target.getUsername());
                } else if ("passwd".equals(property)) {
                    target.passwd(ServiceManager.getServices().getUserbase().createHashedPassword(value));
                    connection.respond("200 changed password for user " + target.getUsername());
                } else if ("suspended".equals(property)) {
                    target.setSuspended(Boolean.parseBoolean(value));
                    connection.respond("200 Setting 'suspended' to " + target.isSuspended() + " for user " + target.getUsername());
                } else if ("hidden".equals(property)) {
View Full Code Here

Examples of cu.ftpd.user.User.passwd()

            } else if ("removegadminforgroup".equals(property)) {
                user.removeGadminForGroup(value);
            } else if ("hidden".equals(property)) {
                user.setHidden(Boolean.parseBoolean(value));
            } else if ("password".equals(property)) {
                user.passwd(value);
            } else if ("tagline".equals(property)) {
                user.setTagline(value);
            } else if ("logins".equals(property)) {
                user.setLogins(Integer.parseInt(value));
            } else if ("suspended".equals(property)) {
View Full Code Here

Examples of cu.ftpd.user.userbases.local.LocalUser.passwd()

        if (!userfile.getName().matches("[\\w-]+")) {
            System.err.println("Illegal username: " + userfile.getName());
            return;
        }
        LocalUser user = userbase.addUser(userfile.getName(), "WILL_BE_CHANGED", false);
        user.passwd(passwords.get(user.getUsername()), false);
        BufferedReader in = null;
        try {
            in = new BufferedReader(new InputStreamReader(new FileInputStream(userfile)));
            String line;
            boolean hasPrimaryGroupSet = false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.