auth/credentials: Better integrate fetch of secrets.tdb and secrets.ldb records
authorAndrew Bartlett <abartlet@samba.org>
Tue, 28 Aug 2012 23:44:12 +0000 (09:44 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 Aug 2012 01:34:52 +0000 (11:34 +1000)
commitbeafdd6410f122d39c32d51629dd7eaf20a8a6c1
tree7e1df7cc879f43a85a7183c04ed12bb82895d9ef
parenta0e4bdcb5b374a4259164aed8fdbcc7b1761f09b
auth/credentials: Better integrate fetch of secrets.tdb and secrets.ldb records

By checking first if there is a secrets.tdb record and passing in the password and last change time
we avoid setting one series of values and then replacing them.  We also avoid the need to work
around the setting of anonymous.

Andrew Bartlett
auth/credentials/credentials_secrets.c