Mick Knutson wrote:
How can I force my usernames to be either email address, or alpha-numeric
only without whitespace?
It seems that by default, I can add whitespace...

You can replace the credential validator in the spring configuration
The general credential handling is described here:

http://portals.apache.org/jetspeed-2/multiproject/jetspeed-security/credentials.html

I think there are a couple of credential handlers, but nothing doing what you want out of the box:

http://portals.apache.org/jetspeed-2/multiproject/jetspeed-security/apidocs/org/apache/jetspeed/security/spi/impl/DefaultCredentialPasswordValidator.html
http://portals.apache.org/jetspeed-2/multiproject/jetspeed-security/apidocs/org/apache/jetspeed/security/spi/impl/SimpleCredentialPasswordValidator.html

Shouldn't be too difficult to create a credential validator to do validatation alpha-numeric, no-whitespace, or emails Just open a JIRA issue, attach your patch, or if you don't/can't code, let us me know and I'll write it



Also, how do I change the Role and group defaults for all new subscribers?

Are you using the User Manager or Registration portlet to create new subscribers?

If you are using the User Manager portlets provided with Jetspeed, there is only one default role that can be configured upon creation.
You can change this settings in Edit Mode
Unfortunately there is no equivalent for groups
Be pretty easy to add though

The Jetspeed Registration portlet allows you to setup both default role list and default group list for a new user. Add init parameters named "roles" and "groups"

The Registration portlet calls the PortalAdministration Jetspeed service to register users:

public interface PortalAdministration
{
    /**
* Registers and creates a new user, assigning userInfo, roles, groups, * profiling rules and a folder template. If any values are null, defaults
     * are used from the system wide configuration.
     *
     * @param userName Unique user principal identifier
     * @param password Password for this user
     * @param roles A list of roles to assign to this user
     * @param groups A list of groups to assign to this user
* @param userInfo Portlet API User Information Attributes name value pairs (PLT.D)
     * @param rules A map of name value pairs of profiling rules.
     *              Well known rules names are 'page' and 'menu'
     * @param folderTemplate The full PSML path name of a folder to be deep
     *               copied as the new user's set of folders, pages, links
     */
    void registerUser(String userName,
                      String password,
                      List roles,
                      List groups,
                      Map userInfo,
                      Map rules,
                      String template)
        throws RegistrationException;


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to