Jun 14

JDiagnostic tech preview released

A lot of emails I get are with regards to deploying JAuthTools and Microsoft Active Directory (AD). AD doesn’t make things easy for users in the LDAP interface: its case sensitive, has everything in capitals, disallows anonymous searching (though users can bind anonymously and see,well, nothing) and has an interesting default layout (e.g. CN=Users instead of OU=Users). By default Joomla! 1.0.x doesn’t have the ability to log items which is a function of the system (e.g. there are very few functions that run purely in the ‘background’) which makes it hard to diagnose things that are going wrong. There is a small tool I use called JLogger which is basically a mambot API loader and a component to view the logs. Its pretty primitive and I haven’t ‘released’ it because it hasn’t had anywhere enough work done on it (it is available via Subversion, zip files together to create installable packages) but it was one of the first step towards diagnostic tools, and this is another step.

Recently I released JDiagnostic, a tech demo of a tool that I hope will evolve into a launching pad for a wide range of useful tools, tests and diagnostics. At present it solves the above stated problem: MSAD integration. Its a step by step wizard configurator for Active Directory, with tests along the way. At the end it configures the LDAP SSI and Joomla! LDAP mambots with as much details as it can (what you’ve supplied) leaving you hopefully with a consistent and working Active Directory setup, without the pain of having to read through logs to see what is happening.

You can check out JDiagnostic on the Pasamio’s Projects FRS page.


7 Comments so far

  1. Cheeky Monkey July 16th, 2007 3:13 am


    I’ve unzippped the JDiagnostic package (jdiagnostic.zip) into my Joomla directory

    How do I now get to the diagnostic admin page from within Joomla?

  2. admin July 16th, 2007 6:29 am

    You need to install it as a component normally using the Joomla! component installer.

  3. Cheeky Monkey July 19th, 2007 5:16 am

    Hi Sam. Thanks I get it now, I was being a doughnut!

    I have it installed now!

    Today I unpublished/uninstalled 1.0.3 and installed your v 1.04 LDAP mambots
    on joomla 1.0.12 and get the following messages on attempting to install

    Upload mambot – Upload Failed
    ERROR: Could not find a Joomla! XML setup file in the package.
    [ Continue … ]
    Upload mambot – Failed
    Installation file not found:
    [ Continue … ]

    I’ve looked at the xml files in the installers and they look fine to me.

    I’ve also repackaged the 1.0.4 installers as .tgz files in the same way as the 1.0.3 versions
    but still get the warning messages

    the 1.0.3 installers install as expected, the 1.0.4 installers give me the warnings

    any thoughts…?

  4. Cheeky Monkey July 19th, 2007 6:29 am


    looks like this may be the fix:

    replace the following two xml lines at the end of the joomla.ldap.xml file

    with the following

    Note the close “/>” at the end of the two

  5. Cheeky Monkey July 19th, 2007 7:51 am


    the xml in my post got cut out by the WordPress comment filters

    The fix is posted on the joomlacode foums


  6. sandeep October 13th, 2008 11:19 pm

    Hi Sam,
    When i install your LDAP mambots i got an error in front end “LDAP Not Enabled – Please install LDAP in your PHP instance to continue.” what is this and how can i resolve this error.
    any thoughts…?

  7. pasamio October 13th, 2008 11:42 pm

    You need to enable LDAP in your PHP instance, exactly as the comment says. If you go into your php.ini file under Windows, typically you can just uncomment the line with extension=php_ldap.dll or similar (don’t use Windows much), in Linux there might be a PHP LDAP module you need to install (the Debian package is php5-ldap or php4-ldap; similar exist on different Linux versions) and depending on what you’re using on Mac OS X will determine what you need to do there.

Leave a comment

%d bloggers like this: