s4-kdc Fix the realm handling again, this time pay attention to the flags
authorAndrew Bartlett <abartlet@samba.org>
Tue, 16 Nov 2010 03:16:31 +0000 (14:16 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 16 Nov 2010 04:30:13 +0000 (15:30 +1100)
commitd76f11a8bd685517b0e5a3be4684bec41af9e822
tree1e102e7e2fc95e663fe13b380bacf62bb5ff3caa
parent5c72c6b760af479b3e88b10cce713025528496c3
s4-kdc Fix the realm handling again, this time pay attention to the flags

The KDC sets different flags for the AS-REQ (this is client-depenent)
and the TGS-REQ to determine if the realm should be forced to the
canonical value.  If we do this always, or do this never, we get into
trouble, so it's much better to honour the flags we are given.

Andrew Bartlett
source4/kdc/db-glue.c