Added domain info to ldap auth records

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added hasKey() to tree collection

Signed-off-by: Tom Wright <tom@inflatablecookie.com>