r5988: Fix the -P option (use machine account credentials) to use the Samba4
authorAndrew Bartlett <abartlet@samba.org>
Wed, 23 Mar 2005 01:30:43 +0000 (01:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:12 +0000 (13:11 -0500)
commit79f6bcd5ae1711075ce0e75392ce83a72766698e
treeeb7928570c6843880253d0ce053957b1a17d0fcb
parent9b48673ad9ed5cf2019df7111fe6ef89ad57573d
r5988: Fix the -P option (use machine account credentials) to use the Samba4
secrets system, and not the old system from Samba3.

This allowed the code from auth_domain to be shared - we now only
lookup the secrets.ldb in lib/credentials.c.

In order to link the resultant binary, samdb_search() has been moved
from deep inside rpc_server into lib/gendb.c, along with the existing
gendb_search_v().  The vast majority of this patch is the simple
rename that followed,

(Depending on the whole SAMDB for just this function seemed pointless,
and brought in futher dependencies, such as smbencrypt.c).

Andrew Bartlett
(This used to be commit e13c671619bd290a8b3cae8555cb281a9a185ee0)
20 files changed:
source4/auth/auth_domain.c
source4/auth/auth_sam.c
source4/dsdb/samdb/samdb.c
source4/dsdb/samdb/samdb_privilege.c
source4/include/secrets.h
source4/lib/basic.mk
source4/lib/cmdline/config.mk
source4/lib/cmdline/popt_common.c
source4/lib/credentials.c
source4/lib/gendb.c [moved from source4/rpc_server/common/gendb.c with 78% similarity]
source4/libcli/auth/kerberos_verify.c
source4/libnet/libnet_join.c
source4/ntvfs/common/sidmap.c
source4/rpc_server/config.mk
source4/rpc_server/drsuapi/drsuapi_cracknames.c
source4/rpc_server/dssetup/dcesrv_dssetup.c
source4/rpc_server/lsa/dcesrv_lsa.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/samr/dcesrv_samr.c
source4/rpc_server/samr/samr_password.c