Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

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'