Home / Community / Blog

I've accidentally commit corrupted file (long story... ;-) into subversion repository, so I would like to revert to a previous version - but only this one particular file.

My file (l6208.lib) had been corrupted in version 309 (revision 308 was the last good one), so I type:

svn merge -c -309 l6208.lib

please note minus sign before 309. This mean apply differences between 309 and 308. You can also type:

svn merge -c -r 309:308 l6208.lib

Now it's time to commit recovered file.

svn ci l6208.lib -m "Reverted last revision"

I don't know if it is best method, but it works for me.

LDAP authentication is build in eZ Publish by default - the only thing to do is configuration.

To use LDAP you have to add line

LoginHandler[]=LDAP

in settings/override/site.ini.append.php file in section UserSettings. In my file it looks like this:

[UserSettings]
LogoutRedirect=/
LoginHandler[]=LDAP

In new file settings/override/ldap.ini.append.php you have to specify all connection settings. In my case it looks like this:

[LDAPSettings]
LDAPServer=127.0.0.1
LDAPBaseDn=ou--users,dc--jaqb,dc--gda,dc--pl
LDAPBindUser=cn--ldap-connect-user,ou--users,dc--jaqb,dc--gda,dc--pl
LDAPBindPassword=SecretPassword

The double minus sign is entered instead of equal sign. You can change this using LDAPEqualSign variable.

As you can see, I've created special user only to bind to LDAP server, because my server doesn't allow anonymous bind and you have to enter password in plain text.

When you clear ini cache you can login using LDAP account.

Earlier I've described how to chose proper language depending on domain. When you want to smoothly switch between these two languages you have to comment out SiteURL entry in settings/override/site.ini.append.php file and set this variable in config files of each language.

I have two directories in settings/siteaccess: pol and eng, so I've add in section SiteSettings

SiteURL=www.somedomain.pl

in file settings/siteaccess/pol/site.ini.append.php, and

SiteURL=www.somedomain.eu

in file settings/siteaccess/eng/site.ini.append.php.

Just my blog...

Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31