blog'o thnet

To content | To menu | To search

Tag - Drupal

Entries feed - Comments feed

Tuesday 9 January 2007

Thilelli.NET Project Website Design Update

In order to follow security fixes along with the evolving FreeBSD Drupal's Port, the Thilelli.NET website has just been updated to the Drupal 4.7.5 release.

The update process was not as smooth as expected, but all seems ok by now. In the same time, reset the thnet theme to the more classical pushbutton.

Thursday 28 July 2005

[headsup] Thilelli.NET Website Updated and Fully Switched to Drupal

After weeks of testings, finally switched the website of the Thilelli.NET project to the Drupal content management system yesterday since it gave very good satisfaction during that time. SPIP was notably good, but the overall filling of Drupal smelt better to me, especially a little more polished.

Monday 25 July 2005

Alter the password of a user in Drupal, directly via the SGBD

Using Drupal as the CMS of choice for time now, there is a little thing assumed by the system at the first time the web site is launched which isn't welcomed in all situation: an already working mail environment.

In fact, when creating the first Drupal user (and so with administrative rights), the password is by default sent to the email address provided... even if there is no working email subsystem in order to take delivery of the random generated password. This can render the freshly installed CMS very... inefficient, don't you think?

So, in order to be able to log in, the password for this account may be directly reset to the SGBD (a MySQL data server in the following case). Here is how this can easily be achieved.

Obtain the checksum of the given string corresponding to the wanted password:

server# md5 -s padawan
MD5 ("padawan") = 9a4b83013501fde3e8864f4f4b5fb7c5

Update the password entry for the administrative account:

server# mysql -u dba_user -p drupal_database
Enter password: ********
mysql> UPDATE users SET pass = '9a4b83013501fde3e8864f4f4b5fb7c5'
    -> WHERE name = 'obiwan'\g\q
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1  Changed: 0  Warnings: 0
Bye

That's all: just log in as usual via the Drupal web portal, using obiwan/padawan as login/password. And be prepared to build a working mail subsystem very soon for next time...