Category Archives: IBM

All around IBM Software

Log Login Errors of IBM Connections with IBM HTTP Server

You can log login errors within IBM Http Server.

One way would be to get use SetEnvIf, but then you can’t get the querystring of the error page. When you type a wrong password the URL changes from https://connectionshost/application/login/ to https://connectionshost/application/login/?error=true.

SetEnvIf Request_URI "/login$" log

This set the environment variable to log, but when you read the Apache documentation you find:

The resource requested on the HTTP request line — generally the portion of the URL following the scheme and host portion without the query string. See the RewriteCond directive of mod_rewrite for extra information on how to match your query string

So we need a way to get ?error=true, with mod_rewrite we can access the query_string:

LoadModule rewrite_module modules/
RewriteCond %{QUERY_STRING} "error=true"
RewriteRule (.*) $1 [E=log:yes] 
CustomLog "D:/IBM/HTTPServer/logs/loginpage.log" combined env=log

Now we can access the login page, type a wrong password and check the log: - - [15/Apr/2014:10:40:15 +0200] "GET /homepage/login/?error=true HTTP/1.1" 200 2763 "https://cnxwin.stoeps.local/homepage/login/?error=true" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0" - - [15/Apr/2014:11:00:49 +0200] "GET /communities/login?error=true HTTP/1.1" 200 2766 "https://cnxwin.stoeps.local/communities/login" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0" - - [15/Apr/2014:11:00:56 +0200] "GET /blogs/login?error=true&lang=en_us HTTP/1.1" 200 2763 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0"

IBM Connections 4.5 CR4 released – new features are available

IBM released CR4 for IBM Connections 4.5 yesterday evening.

You can download CR4, TDISOL and some Cognos Updates at following links:

New Functions

After deploying CR4 you can enable some new features:

Hash tags in status update replies


    <genericProperty name="">enabled</genericProperty>

to lotusconnections-config.xml

Now you can use hash tags in replies.


Include file links in status update replies

Activate with:

    <genericProperty name="">enabled</genericProperty>

Now you get a add file in the reply window and you can attach one file:



Expose activity stream search in the user interface and filter by hashtag

Activate with:

    <genericProperty name="">true</genericProperty>

Search find hashtags in the activity stream now.


Community Folders

Add following code to files-config.xml:

        <communityFolder enabled="true"/>

With this feature you can add folders in the files module of your community or in the community overview.



It is possible to share existing folders and create new ones:


@mentions via the activity stream API

Activated by default, no additional configuration needed! I did not test this feature, but i think it is good.

Properties section of lotusconnections-config.xml after applying CR4

To activate the new features of CR2 (nextGen Theme), CR3 (badging) and CR4 i have following settings in my lotusconnections-config.xml:

    <genericProperty name="">false</genericProperty>
    <genericProperty name="">gen4</genericProperty>
    <genericProperty name="">enabled</genericProperty>
    <genericProperty name="">enabled</genericProperty>
    <genericProperty name="">enabled</genericProperty>
    <genericProperty name="">true</genericProperty>


Luis Benitez mentions some more new features in his last blog post: Introducing File Sync for Mobile and More in IBM Connections 4.5 CR4

Last weeks, new scripts and next weeks

It was little bit quiet here after Connect 2014. I had lots of projects and no time to add new scripts or even do bug fixing.

I promised at Connect, that i will fix the JDBC drivers, that they will load on Windows too. See as an example.

Loading JDBC Drivers within jython scripts

Jan Riedel sent me a solution for SLES and i tested his proposal today within Windows. He points me in the right direction, i mustn’t load the path or jar within the script, it is better to load on starting wsadmin. You have to add the JDBC Driver path to WAS_EXT_DIRS.

I see two ways here:

Change|bat (Update)

I don’t like to change setupCmdLine directly, because i don’t want to load the driver everytime i start wsadmin or WebSphere, but you can add your JDBC path to the line

set WAS_EXT_DIRS=….;c:\ibm\jdbc (Windows)
export WAS_EXT_DIRS=….:/opt/IBM/JDBC (Linux)

Please do not change your setupCmdLine in this way. I had errors on using Connections updateInstaller, when i use it! Use WAS_USER_SCRIPT!


I create a batch|shell script with following content.

Create the script in $WAS_HOME/profiles/Dmgr01/bin and make it executable.



Create batch in %WAS_HOME%\profiles\Dmgr01\bin


Now it is enough to set the environment variable WAS_USER_SCRIPT, then the jdbc driver will be loaded on wsadmin start. So when you want to load or one of the scripts using JDBC (, simply set the WAS_USER_SCRIPT variable in your operating system, terminal or console.

export WAS_USER_SCRIPT=/opt/IBM/.../


set WAS_USER_SCRIPT=C:\....\wasuserscript.bat

Thanks to Victor Toal for your script testing and bug reporting!

New scripts

I added some scripts for special j2ee roles to the github repository:


These scripts set consistent the roles mentioned in the file name. So you can enable or disable Socialmail integration, Metrics or Moderation.

Next weeks, next events

Next events i will attend are: Engage in Breda, BCCON in Hamburg and Social Connections VI in Prag.

At Engage i will speak with my friend Sharon Bellamy about Scripting.

At BCCON i will be with my swiss friend and scripting colleague Klaus Bild, we will do the Script show in german.

I plan a session for SocCon VI too, hope i will get a slot there.