Categoriearchief: English

Apache 2.4 – mod_auth_form

Still a ‘wordpress  draft’, but published already.
It should bring you to an working solution.

I prefer webserver authentication above and php/coded authentication script. This because the webserver can also protect stylesheets, javascript files and, more important, images or other attachments. Within php you can only protect the called page.

Of course, in apache, you can easily use basic authentication. But then the browser shows you an ‘static’ login window. Apache2 has now an module which helps you with form authentication. You can make in now more fancy :).

Please leave comments if necessary 🙂
note… in my test setup this is compiled and running next to system default Apache2 instance.
so 2 apache-bin directories are on the system.

Downloading and extracting Apache 2.4

# cd /opt/src/
# wget http://ftp.tudelft.nl/apache/httpd/httpd-2.4.10.tar.gz
# tar xf httpd-2.4.10.tar.gz
# cd httpd-2.4.10/

Downloaden and extracting Apache 2.4 requirements. Check requirements here

# cd srclib
# wget http://apache.mirror.triple-it.nl/apr/apr-1.5.1.tar.gz
# wget http://apache.mirror.triple-it.nl/apr/apr-util-1.5.3.tar.gz
# tar xf apr-1.5.1.tar.gz
# tar xf apr-util-1.5.3.tar.gz
# mv apr-1.5.1 apr
# mv apr-util-1.5.3 apr-util
# cd .. (/opt/src/httpd-2.4.10/)
# apt-get install libpcre3 libpcre3-dev (if not already installed)

Configuring source tree. (option –with-ssl is optional, decide for yourself if needed)

# ./configure --prefix=/opt/apache2 --with-included-apr --with-ssl --enable-auth-form

Lees verder

Reset Domain Controller password

This post is based on ‘this one‘, but now with some ‘print screens’ attached.

I know it should not be necessary :), but unfortunately it is…
And because i could not find the solutions very easily/quickly, i thought i should share it…

  1. Restart your server with an install disk in place.
  2. Boot from this setup disc
  3. Choose language and keyboard layout
  4. Click Next
  5. Click Repair you computer
  6. Choose the right (mostly one?) installation
  7. Start the ‘Command Prompt’
  8. Type: C:
  9. Type: cd Windows\System32
  10. Type: copy Utilman.exe Utilman.exe.backup
  11. Type: copy cmd.exe Utilman.exe
  12. Type: exit
  13. Click ‘Restart’
  14. Do a normal boot now
  15. When ready to login…
  16. Click the ‘Ease of access’ icon OR press [Windows] + [U]
  17. A command prompt starts now  (note that the titlebar says utilman.exe 🙂 )
  18. Type: net user “Administrator” “newpassword”
  19. Type: exit
  20. Login with the “Administrator” user and your new password “newpassword”
  21. You are done now.
  22. Do not forget to change back Utilman.exe.backup to Utilman.exe
  23. If you do not have write acces on this file now…
  24. Repeat steps 1 to 9 and then
  25. Type: copy Utilman.exe.backup Utilman.exe

Lees verder

Windows 7 Disappearing Icons

Desktop Icons disappear randomly, and NO, it is not the checkbox ‘Show desktop icons’…

The problem and (possible) solution is explained at the Microsoft TechNet forums.
http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/ada5d392-2af7-43c3-9191-08baf63f0098

It seems that a service cleaning up broken desktop shortcuts. Maybe the service can not determine very well if the link is broken or not. All involved shortcuts are linked to folder on a network drive.

We will wait for a couple of day to see if this really was the problem.

Server: Small Business 2003 Dutch
Client: Windows 7 64b Dutch
Roaming profiles enabled, with only My Documents redirected.

Update 1: My Customized Solution:

Take a look at this site for manual command:
http://rays-it.blogspot.com/2011/02/one-way-to-get-around-desktop-shortcuts.html

Then you will see that making an Windows 7 startup script is not very hard to do. This may be helpfull if you have to update multiple computers in a Windows Domain environment.

Go to your NETLOGON share and make a new script file:

TS_Brokenshortcuts_Script.bat

# NETLOGON Script: TS_BrokenShortcuts_Customized
# Take Ownership of the file
takeown /f "C:\Windows\diagnostics\scheduled\Maintenance\TS_BrokenShortcust.ps1" /A
# Assign Administrator full access rights
icacls "C:\Windows\diagnostics\scheduled\Maintenance\TS_BrokenShortcuts.ps1" /grant "Administrators:F"
# Now you can replace the file
xcopy "\\server\netlogon\TS_BrokenShortcuts_NEW.ps1" "C:\Windows\diagnostics\scheduled\Maintenance\TS_BrokenShortcuts.ps1" /y

Place also the new ps1 file in you netlogon share. And do not forget to call the new scripts. One possibility to do is by using Group Policy’s: Computer Startup Scripts.

W109 Heizung Ventile

One valve (ventil) was stuck at a position and for that the control cable broke. Since the unit was disassembled, this problem can be fixed to.

New seals need to be ordered, i am going to visit a hardware store first, before ordering this at a MB dealer.

Update 1: New standard o-rings fit fine, just €2,-

Below are images which show you the construction of the valve assembly.