s4:kdc/db-glue: allow principals in form of computer@EXAMPLE.COM
commit61de10240e26f6edf4961841206347d0652c40d9
authorStefan Metzmacher <metze@samba.org>
Mon, 23 Mar 2015 10:00:51 +0000 (23 10:00 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Jun 2015 23:03:16 +0000 (24 01:03 +0200)
tree6d00a3ed10888395181e057308eb54c6d4da7eae
parentccb64954456873c02331b8795fd9bdd0cbe97e79
s4:kdc/db-glue: allow principals in form of computer@EXAMPLE.COM

This should be translated to computer$@EXAMPLE.COM.

Note the behavior differs between client and server lookup.
In samba_kdc_lookup_client() we need to fallback in case of
NO_SUCH_USER. samba_kdc_lookup_server() needs to do a single search
and only use the result if it's unique.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11130

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c