You just add this code after you include your Jquery library:
(function(){// Define overriding method.jQuery.fx.prototype.hide=function(){// Remember where we started, so that we can go back to it laterthis.options.orig[this.prop]=jQuery.style(this.elem,this.prop);this.options.hide=true;// Begin the animationthis.custom(this.cur(),1);}})();
I was using a cheap USB charger, but I couldn’t get my Raspberry Pi to connect over Ethernet. The ethernet lights showed no link.
Turned out the charger couldn’t supply enough current. The Model B needs a 5V micro-USB supply that can deliver at least 700mA for the board alone, and more with anything plugged in; plenty of phone chargers only put out 500mA. When the Pi undervolts it shuts off its USB ports to stay stable, and on the Model B the Ethernet runs through that same USB chip, so it drops right along with them. Swapping in a Motorola OEM charger fixed it. I have the Model B, Rev 2.0 board with 512MB RAM.
I created an Action Hook for WHMCS which will create an user when they are added as a client. With this script, we no longer need to add our users to LDAP manually. I’m thinking about turning it into a module, and making it easier to other users to use.
If you are trying to use php’s ldap_add to add an user and are getting an object class violation, try to copy all the fields of a working user exactly. Most likely you are missing some of the required fields of the objectclass you are trying to add.
Once you have PySerial installed, open IDLE again and use the following code to see output from the reader:
Why didn’t ser.read(12) return the same unique identifier as what is written on the fob?:
If the key on the card says 30788590 and the reader returns 3501D5CBEE. The “1D5CBEE” part is the card number. Try going from the card number in DEC to HEX it in the windows calculator while it’s in scientific mode if you don’t believe me.
To get something centered within a div in IE8, it requires doing something unusual. I wasn’t able to get the “display: block;” trick working. But this worked:
I had to do this to get the InfoGrid (http://css-tricks.com/examples/InfoGrid/) to center in IE8. The div with the ID of #page-wrap already exists, but the super-wrap div needs to be created outside of the page-wrap div.
Updated 2026-08-07: the snippet I originally posted produced an unsalted {SHA} hash despite the {SSHA} in the title. Replaced it with the password modify extended operation.
This is what I originally posted here, and it was wrong:
That produces {SHA}, a plain unsalted SHA-1, not the {SSHA} the title promises. In the RFC 2307-style schemes OpenLDAP uses, {SHA} is base64(SHA-1(password)), while {SSHA} hashes the password with a random salt and stores that salt alongside the digest, as slappasswd documents. Skipping the salt means every user who picks the same password ends up with the same hash, so one lookup table cracks all of them at once.
The better fix is to stop generating the hash in PHP. The LDAP password modify extended operation (RFC 3062) exists so the client never has to pick a storage scheme. You hand the server the new password and it applies whatever hash it’s configured for:
PHP has had that wrapper since 7.2. The password travels in the clear inside the request, so run it over LDAPS or StartTLS, and you can confirm the server supports the operation by reading supportedExtension on the root DSE and looking for 1.3.6.1.4.1.4203.1.11.1.
Doing it this way makes the scheme a server setting instead of something frozen into application code. OpenLDAP calls that setting olcPasswordHash (password-hash in the older slapd.conf), and it defaults to {SSHA}. OpenLDAP also ships an argon2 module adding an {ARGON2} scheme, which is a far better choice than anything built on SHA-1. Debian has it in slapd after 2.5.4+dfsg-1, where it needs a moduleload argon2. Changing that directive re-hashes new passwords with no application deploy.
If you’re stuck generating the value yourself, salt it: