PHP code to search Windows Active Directory (via LDAP)
Following sample PHP code will connect to your local (or remote) Active Directory Domain Controller (LDAP server) and return all object with specified OU:
- Number of objects found
- Common Name
- Distinguished Name
- Description (if exists)
- Primary Email Address (if exists)
Be aware that LDAP support by default is not installed in PHP. For instructions on how to install it check here.
Read more: PHP code to search Windows Active Directory (via LDAP)
Gmail signatures stack up at the bottom
To change this behaviour and make signatures appear just below your message (like in Outlook and other clients) go to:
Gmail Settings > Labs > Signature tweaks> Enable
Joomla – TinyMCE Editor removes non braking spaces on saving
To stop this behaviour head to Extensions > Plugin Manager > Editor – TinyMCE
In plugin parameters set:
Code Cleanup on Startup: Off
Code cleanup on save: Never
Joomla 1.5
Enabling default .htaccess (for SEF) breaks Joomla website
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
More information about this error may be available in the server error log.
Checking Apache error.log file revealed following error:
[Thu Oct 01 13:14:24 2011] [alert] [client 192.168.1.154] /var/web/test/site1/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
This made it clear that issue is caused by not enabled mod_rewrite module.
Following 2 commands solved the problem:
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
Joomla 1.5
Joomla 1.6
Joomla 1.7
- Joomla 1.7 - admin email notification after user registration
- Joomla - Redirection after user registration
- Joomla 1.7 language override (User-Profile Plugin)
- Add additional fields to a Joomla 1.7 registration form
- Password fields in IE smaller than other fields
- Joomla - remove login form border
- List all Joomla rated / voted articles
- Joomla – insert module into article
- Add additional fields to a Joomla 1.5 registration form