[Xerte] Re: No LDAP, so using switch.txt/php but login is impossible

David Goodwin david at palepurple.co.uk
Wed Oct 19 14:34:15 BST 2011

On 19 Oct 2011, at 13:59, moxitron wrote:

> I'd like to use the xerte online toolkits, however I don't have an LDAP setup, so I gather from the installation manual that I can use an alternative (for non-enterprise use) which is the switch.txt. I renamed this to switch.php and navigated to it.
> I was able to enter a canned username and password, but on submitting the form, I got an error saying that I needed LDAP.
> I tracked down this problem and discovered that the rendered form which switch.php generates has a <form ..> tag with an action attribute set to "index.php", so this is the problem. It needs to post the form back to "switch.php" so that the canned credentials can be found and the login accepted.

Edit website_code/login_top and change it so in the <form> tag, the action becomes an empty string (i.e. .... action="" .... ). That should suffice.


Pale Purple Ltd.  (Company No: 5580814)
'Business Web Application Development and Training in PHP'

Office: 0845 0046746     Mobile: 07792380669 

Follow us on Twitter: @PalePurpleLtd

More information about the Xerte mailing list