ibexa

Path

ez publish / technical manual / 4.x / reference / datatypes / user account


Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

User account

Summary

Validates and stores info about a user.

Properties

NameInternal nameSearchableInformation collector
User account ezuser Yes. No.

Description

This datatype allows storage and retrieval of a single user account. Whenever an object that uses this datatype is published for the first time, the system will create a new user. The user's ID number will be the identification number of the object. The following screenshot shows the class attribute edit interface for this datatype.

Class attribute edit interface for the "User account" datatype.

Class attribute edit interface for the "User account" datatype.

Object attribute edit interface

For each user, the "User account" datatype stores the following information:

  • A username
  • A password
  • An E-mail address

The username can only be modified before the object is published for the first time. The following screenshot shows the object attribute edit interface for this datatype.

Object attribute edit interface for the "User account" datatype.

Object attribute edit interface for the "User account" datatype.

User account settings

The properties of a user account can be tweaked by the administrator. This can be done by following the "Change user account settings" link from within the view of a user account object in the administration interface. Currently it is only possible to change whether the user account should be enabled or disabled (whether the user is allowed to log in to the system or not). The following screenshot shows the user account settings panel.

Settings interface for the "User account" datatype.

Settings interface for the "User account" datatype.

Raw output

The ".content" of an ezcontentobjectattribute object using this datatype returns an ezuser object.

Balazs Halasy (21/02/2005 2:45 pm)

Balazs Halasy (27/04/2005 8:51 am)


Comments

  • Modifying the password?

    I'm trying to do a fresh ezPublish install (my first experience with the software). The basic installation fails with a meaningless error. (Okay, I know that `could not install add-on package “Contact Us.”` means *something,* but it's pretty useless, really). So I followed the steps to create a manual installation. The admin user account is still in place from my failed automated install, though it's not accepting the password.

    Now, the password is encrypted with hash function #2. What on earth does that mean? I just want to reset the password to see whether I typed it in wrong or something else equally silly.
    • Re: Modifying the password?

      UPDATE ezuser SET password_hash="publish", password_hash_type=5 WHERE contentobject_id=14;
    • Re: Modifying the password?

      On a standard installation the password_hash is a md5sum of the username and password, you generate it like this:

      $> echo -n -e "admin\npublish"|md5sum
      c78e3b0f3d9244ed8c6d1c29464bdff9

      and then in MySQL:
      UPDATE ezuser SET password_hash='c78e3b0f3d9244ed8c6d1c29464bdff9' WHERE login='admin'
  • INI settings

    There are some settings related to this datatype in site.ini under the [UserSettings] group. Take a look in settings/site.ini to learn what they do.

    GeneratePasswordIfEmpty=true
    GeneratePasswordLength=6
    HashType=md5_user
    UpdateHash=true
    AuthenticateMatch=login;email
    RequireUniqueEmail=true
    UseSpecialCharacters=false
  • How can these users login

    As described above, there is the possibility to activate or deactivate user accounts that are created while creating a class object using this datatype. Although activated, my new user accounts have no rights to login. Does anyone know how to control, to which user group the new user account belongs?
    • Re: How can these users login

      It depends on the settings defined in site.ini (if we talk about self registered users of course):
      [UserSettings]
      DefaultUserPlacement=12
      

      12 is the node-id of the UserGroup where a self registered user is stored. You can change this setting in the site.ini stored in the override or siteaccess directory.