Oct 27
RSS and mercurial
Oct 25
LDAP, PAM, SSHA, and CRYPT on RHEL 5
I’m putting this here because it took me two days to figure this out. RHEL 5 (or CentOS 5) has openLDAP broken out of the box. It does not handle SSHA password encryption (the default for openLDAP) properly. If you want openLDAP authentication to work with PAM on CentOs 5.3 you MUST edit the /etc/openldap/slapd.conf to contain:
password-hash {CRYPT}If you do not then as soon as you use ldappasswd to change a password your user will no longer be able to log in. That is all.
No commentsJul 24
Why is XML Better?
Why is XML better than custom internal formats? Isn’t a non-standard set of XML tags basically equivalent to a custom format when using data internally to an application? Absolutely not, and here is why.
Read more
Jun 26
DVSL: An Alternative to XSLT
Dec 10
Spirit Vs. Lex/yacc/et al.
What are the differences and when should I use one or the other?
Read more
Oct 13
Writing a custom check macro for the BOOST test library
In this article I demonstrate how to write your own check macros for the boost test library (not guaranteed to work in the future)
Full source code for this example can be downloaded here.
Read more
Sep 13
A Better Binary File Generator DSL in Ruby
In Creating a Binary File Using a Ruby DSL I did a very small example of using a ruby DSL to generate complex binary files without having to use C or a hexeditor. I’ve beefed it up significantly since then so here is the updated version of h2b.irb.
Read more
Sep 6
Verifying Code Examples in your Documentation
One of the more annoying aspects of writing developer documentation is that it is very easy for your code examples to get out of date, develop typos, etc(As those reading previous articles may have noticed). In this article I use docbook, xslt, and automake to generate code examples that are guaranteed to compile.
Read more