Posts

Showing posts from January, 2012

Bash script launched by cron on OpenBSD not working

In the pink world of Ubuntu from where I come, things are easy, and PATH variable is fully set in each context. But in the dark world of OpenBSD, things aren't always obvious ;) If you decide to write a bash script intended to be used as a cron task, DO NOT forget to fully qualify path of non standard commands : e.g. zip or smbclient should be written as /usr/local/bin/zip and /usr/local/bin/smbclient . Hope it could save time for others...

Use squid on ubuntu server 11.10 joined to a domain in order to force NTLM authentication (review ubuntu 11.10)

This installation was made on an ubuntu server 11.10 and is partially based on my previous tutorial . Install squid: sudo apt-get install squid You can already test the installation by configuring your web browser to use your server on port 3128 as the proxy server. You should receive an error web page generated by squid or the requested web page. In order to request your domain controler, you have to install the following packages: sudo apt-get install samba krb5-user libpam-krb5 winbind During the installation, you should be prompted for a default kerberos realm . Enter your domain name in capital letters : YOURDOMAIN.COM You can test that all is running fine by typing the following command: sudo kinit Administrator You will be prompted for the administrator password. If all is correctly configured, the command should return no result. You can also check the credential cache with: sudo klist Edit /etc/samba/smb.conf and add or modify the following items: [glo