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 03:20:00 +0000 (14:20 +1100)
commit86f0984baf6881b49879bb45193d56f8651c91aa
treefc5a4be9acfa46717c057c756afc85a1bd7e3d86
parenta4a51f9fdf7b97d56446e9e0c51e884d5cd990c0
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