LDAP authentication for your Wiki
Apr 14, 08 by Juan Lebrijo about Wiki, blog
In the MediaWiki CMS we have an extension for the LDAP authentication: LDAP_Authentication. Then I we have an Directory Server (LDAP or Active Directory), we can use our wiki with our global authentication services. We can install the file LdapAuthentication.php version 1.1g, in the extensions directory of our wiki: /var/www/wiki/extensions. After you can add the following lines (customized for your system)in the configuration file LocalSettings.php:
# LDAP Validation
require_once( "$IP/extensions/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();

  //Names for the used domains.
  $wgLDAPDomainNames = array("LEBRIJO.COM");

  //Relation between the directory server and the DNS name.
  $wgLDAPServerNames = array("LEBRIJO.COM"=>"ldap.lebrijo.com");

  //We can leave the wiki authentication with LDAP.
  $wgLDAPUseLocal = true;

  //Encrypt the LDAP packets.
  $wgLDAPEncryptionType = array("LEBRIJO.COM"=>"clear");

  //Query base for the user in our directory
  $wgLDAPBaseDNs = array("LEBRIJO.COM"=>"dc=lebrijo,dc=com");
  $wgLDAPSearchAttributes = array("LEBRIJO.COM"=>"uid");

  //Using LDAP groups for group directives:
  $wgLDAPGroupsPrevail = array("LEBRIJO.COM"=>true);
  $wgLDAPGroupNameAttribute = array("LEBRIJO.COM"=>"cn");
At this moment the LDAP user can use your wiki with their LDAP authetication user/password. At the same configuration file we can write the access restrictions for the other visitors:
# VALIDATION AND ACCESS CONTROL:
# Basic for all the visitors by default:
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
Compiz-fusion with Ubuntu: My Graphic Card in the Blacklist
Apr 07, 08 by Juan Lebrijo about Ubuntu, blog
I am going to talk about a little problem that I found installing Compiz over Ubuntu in my laptop. There are graphic cards in a Compiz Blacklist, because of they did not enough tested, or did not use standards, with Compiz can grant a good software performance. Treating to see the 3D Compiz-fusion Desktop on Linux, I installed Ubuntu in my new laptop:
  • ASUS Z53E
  • Ubuntu 7.10
  • Graphics: Intel X3100
The Ubuntu installation process, brilliant. With the LiveCD a guided installation. Ubuntu was installed in 20 minutes. !! But the brand-new Desktop effects did not installed ¡¡ In the menu option System > Preferences > Aparience > Visual effects we must mark the "Extra" choice to work with 3D effects. But when I marked the option shows the error: "Desktop effects could not be enabled". This was because of my graphic card (intel x3100) is in the Compiz Blacklist, as you can read at this post: http://ubuntuforums.org/showthread.php?t=582112. To solve it then go off the Blacklist:
mkdir -p ~/.config/compiz/ && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager
Then we have the 3D effects. But if we want to tune them, we need:
  • A settings manager (compizconfig-settings-manager): Where I will configure what effects I want to show.
  • A them manager (Emerald): We can tune our Desktop, with the themes in compiz repository: http://www.compiz-themes.org.
This utilities are installing from the command line as I type:
sudo apt-get install compizconfig-settings-manager emerald
We have both at System > Preferences. If you want a reference about compiz-fusion, or learn the utilization, you can access to Compiz wiki: http://wiki.compiz-fusion.org/
Usar compiz-fusion en ubuntu: tarjeta gráfica en lista negra
Apr 07, 08 by Juan Lebrijo about Ubuntu, blog
Os voy a relatar el problemilla que encontré instalando Compiz sobre Ubuntu en mi portátil. Hay tarjetas gráficas que están en la Lista Negra de compiz por no estar los suficientemente testeadas ó no obedecer a estándares, sobre los que poder asegurar un correcto funcionamiento del software. Tratando de ver el escritorio 3D de compiz-fusion para linux, instalé ubuntu en mi portátil nuevo:
  • ASUS Z53E
  • Ubuntu 7.10
  • Gráfica: Intel X3100
La instalación de Ubuntu genial, desde el LiveCD y muy bien guiada, hasta me deje auto-particionar el disco. En 20 minutos tenia Ubuntu en el disco duro. !! Pero los flamantes efectos de escritorio no se instalaron ¡¡ En el menú Sistema > Preferencias > Apariencia > Efectos Visuales debemos marcar la opción "Extra" para tener todos los efectos 3D. Pero al intentar marcar saltaba el error: "Desktop effects could not be enabled". Esto sucedía por que mi tarjeta gráfica (intel x3100) está en la Blacklist de Compiz como bien se explica en este post: http://ubuntuforums.org/showthread.php?t=582112. Para solucionarlo, puentear la lista:
mkdir -p ~/.config/compiz/ && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager
Con esto tenemos los efectos 3D. Pero para personalizarlos necesitamos:
  • Un Gestor de Preferencias (compizconfig-settings-manager): En el que le podemos decir exactamente que efecto queremos reproducir.
  • Un Gestor de Temas de Escritorio (Emerald): Con el que podremos tunear nuestro escritorio y personalizarlo , apartir de los temas del repositorio de compiz: http://www.compiz-themes.org.
Estas dos utilidades se instalan desde la línea de comandos tecleando:
sudo apt-get install compizconfig-settings-manager emerald
Y se os instalarán en Sistema > Preferencias. Si quereis más referencia a cerca de compiz-fusion, o aprender simplemente como se utiliza, acceder a la wiki de compiz-fusion: http://wiki.compiz-fusion.org/