LDAP mostly done. A couple of bugs.