credentials: Prioritise command-line specified options above defaults from smb.conf
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Oct 2011 21:41:46 +0000 (08:41 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 18 Oct 2011 02:13:30 +0000 (13:13 +1100)
commit734e5c521cb06a91e708226e0eb6d003175958c2
treeed4441c4f533511d3af524d3ff80e39e64075b17
parentf8c6219188fa4ce39a35a8f192c649a6aa9c7ec1
credentials: Prioritise command-line specified options above defaults from smb.conf

If a user specified -W or --realm on the command line, then this is
of level SPECIFIED, not UNINITIALISED, despite it going via the
loadparm system.

This helps us to ensure that -W server -Ulocaluser is parsed the
same as -Userver\localuser.  This matters as otherwise we might
instead attempt to use kerberos to the realm from the smb.conf.

Andrew Bartlett
auth/credentials/credentials.c
lib/param/loadparm.c
lib/param/param.h