kdc: Fix Samba's KDC to only change the principal in the right cases
commit9fc3f1e3d6854f399e2b2322b8ab1a714353ba12
authorAndrew Bartlett <abartlet@samba.org>
Thu, 22 Jan 2015 01:11:52 +0000 (22 14:11 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Jan 2015 04:42:08 +0000 (23 05:42 +0100)
tree6e521712a33974e70cd10961ba50c1ff2921973e
parent170ee3071b7b51af0b6a89b7abf944ec3b08c014
kdc: Fix Samba's KDC to only change the principal in the right cases

If we are set to canonicalize, we get back the fixed UPPER
case realm, and the real username (ie matching LDAP
samAccountName)

Otherwise, if we are set to enterprise, we
get back the whole principal as-sent

Finally, if we are not set to canonicalize, we get back the
fixed UPPER case realm, but the as-sent username

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c