Tips and Tricks

How to create and verify lmPassword or ntPassword hash using PHP

Sometimes authenticating password against LDAP in PHP can't rely on userPassword attribute because they might use only lmPassword or ntPassword. It is not quite easy but not too hard as long as we have LDAP Account Manager.

How to add quote to string delimited by comma in PHP

Sometimes we will have a list of string delimited by comma, e.g., a,b,c,d, and we would like to add quote or single quote around each element, e.g., 'a','b','c','d'. It is possible to do so in a line.

How to create and verify SSHA hash using PHP

There are so many hash. SHA1 is one of them which is widely used in recent years even though it is not safe to use right now. By the way, it is still the default hash function for storing password in LDAP especially OpenLDAP. In order to develop a website with LDAP authentication manually against POSIX account, SSHA hash function or SHA1 is the easiest solution.

Where to get LDAP Explorer

Working with LDAP is not as easy as I expect. I do need to have a good frontend to handle LDIF. There are several LDAP GUI Applications available in public domain but the easiest one should be web-based software solution. One main reason is to run it on localhost without graphical interface like X server and so on. The most popular one I know is called LDAP Explorer which is available for so long and it is a kind of old project. Right now, it is not easy to find and download this software because the main web site (igloo.its.unimelb.edu.au) has been downed for a while. Anyway, I have found a valid one eventually.

How to clone LCD to projector using fglrx

Even though I used IBM ThinkPad T43 for a month, I just have a chance to give a short talk and presentation in this week. So I have to show my slide on a projector. Anyway, Fn+F7 didn't work as expect like I did in BenQ as well as amdcccle which didn't help. Eventually, I find a right way through command line interface. Note that I use driver from ATI, fglrx 8.38.6.

How to configure laptop hotkey in Ubuntu

Today I have a little trouble. All hotkeys of my T43 didn't response my finger by displaying on-screen display. Instead, it was just nothing happen. After investigated 2 hours, I found a solution. It is hotkey-setup.