Older python-ldap versions will crash if you call ldap.get_option() on a value that has not been set.