[SCM] Samba Shared Repository - branch v3-6-test updated
Günther Deschner
gd at samba.org
Tue Apr 5 14:25:30 MDT 2011
The branch, v3-6-test has been updated
via eb444c6 s3-libndr: add ../librpc/ndr/libndr.h include in some places.
via 2d46141 s3-vfs: try to fix build of aio_fork module.
via 8778648 s3-smbd: try to fix the irix build.
via 6dc94ab s3-vfs acl modules: more non-linux build fixes.
via fe452e1 s3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.
via d1b40fb s3-passdb: move some passdb defines to passdb.h
via 0aa8387 s3-proto: pure cosmetics, remove some generated comments.
via a827f8d s3-winbind: try to fix the build on hosts w/o winbind support.
via fe9027f s3-vfs_solarisacl: try to fix the solaris build.
via e833163 s3: try to fix the build on some non-linux buildfarm machines.
via 97b2e2a s3-rpc_server: move access check functions out of samr server.
via 108e451 s3: only include ntioctl.h where needed.
via 428e613 s3: only include lib/privileges.h where needed.
via 9bbfc6b s3: include ../librpc/gen_ndr/lsa.h where needed.
via 4a8ed4a s3-passdb: move lsa_dom_info and lsa_name_info out of smb.h into passdb.
via 827a92f s3-includes: only include ntdomain.h where needed.
via d72582b pidl: add an include for "ntdomain.h" for s3 server stubs.
via 93ca820 s3-messages: make ndr_messaging.h part of messages.h.
via 36007af s3-messages: only include messages.h where needed.
via c8d89a2 s3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.
via 26a854a s3-includes: finally remove global include of auth.h.
via 4a0ecfc s3-auth: vfs modules need auth.h
via 1c182fc s3-auth: printing needs auth.h
via cca3b18 s3-auth: smbd needs auth.h
via 0bc1323 s3-auth: rpc_server needs auth.h
via ed8e5bb s3-auth: use auth.h where needed.
via 923f663 s3-auth: move auth prototypes to auth/proto.h.
via ca7162a s3-libsmb: put namequery headers to nmblib.h
via 453098f s3-locking: move locking prototypes out of proto.h.
via de2848f s3: finally remove global include of smbd prototypes.
via cb82d6f s3: rpc_server needs parts of smbd.
via 8ce5d3f s3: printing needs parts of smbd.
via 0ea8b2c s3: auth also needs parts of smbd.
via 4b9a402 s3-vfs: include smbd/smbd.h in vfs modules.
via e539c7d s3: include smbd/smbd.h where needed.
via 8f64dcb s3-smbd: add smbd.h and move smbd prototypes to smbd/proto.h.
from 5899d4f s3-rpcclient: include rpc_client/cli_pipe.h globally in rpcclient.h
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test
- Log -----------------------------------------------------------------
commit eb444c63e80b48042cbc99b55b2bc1c94b62366c
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 23:47:34 2011 +0200
s3-libndr: add ../librpc/ndr/libndr.h include in some places.
Guenther
(cherry picked from commit a730dff78318a0bfe8c6b2b8a2cefed63cc586e8)
commit 2d46141ecae13d6f4624028b249d4d61f6b0d5df
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 22:24:18 2011 +0200
s3-vfs: try to fix build of aio_fork module.
Guenther
(cherry picked from commit 3800bae260ed3998317ce5e492a8f0a42fb2fd5f)
commit 87786480bcbc3c4a20cc286109095d83d2e3ecd0
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 16:18:38 2011 +0200
s3-smbd: try to fix the irix build.
Guenther
Autobuild-User: Günther Deschner <gd at samba.org>
Autobuild-Date: Wed Mar 30 17:17:58 CEST 2011 on sn-devel-104
(cherry picked from commit 220db5aad629451d24fcf678a5aa2f3637bc5eeb)
commit 6dc94ab6938d78c49a4f168190d39a2e716f23b9
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 15:14:05 2011 +0200
s3-vfs acl modules: more non-linux build fixes.
Guenther
Autobuild-User: Günther Deschner <gd at samba.org>
Autobuild-Date: Wed Mar 30 16:00:02 CEST 2011 on sn-devel-104
(cherry picked from commit 53bdf43acab2f8808fb205a719ff6323543a6440)
commit fe452e1b6896a314901fb5fe81ee0d723ee4c436
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 15:09:10 2011 +0200
s3-passdb: move LOOKUP_NAME_ flags to passdb where they belong to.
Guenther
(cherry picked from commit 33082d016ee27537af0514d5eebcdaf0360fa4f7)
commit d1b40fbb88cbb53eeb55f9f77eed2972c7968b08
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 14:49:37 2011 +0200
s3-passdb: move some passdb defines to passdb.h
Guenther
(cherry picked from commit 3253d5ad0515198083b0b185c06b659fc6972830)
commit 0aa83877d81a5461b1242374217d3fbb0f0966b4
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 14:48:18 2011 +0200
s3-proto: pure cosmetics, remove some generated comments.
Guenther
(cherry picked from commit c8ed33ae9c26a63fd8adffa2041fe46a2542f0ba)
commit a827f8da4b752e16a894965b5497909b421f5a6c
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 14:03:13 2011 +0200
s3-winbind: try to fix the build on hosts w/o winbind support.
Guenther
(cherry picked from commit 6206156465b32aa565a1f7fbabfc62d668985d68)
commit fe9027f36f295fe3d321b472a0fa94b614161e85
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 13:46:59 2011 +0200
s3-vfs_solarisacl: try to fix the solaris build.
Guenther
(cherry picked from commit b09b694dddfa4284b2c92d289694013e48b1e3f6)
commit e83316314717e512f755dafde76b6e819fd1b044
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 30 10:50:10 2011 +0200
s3: try to fix the build on some non-linux buildfarm machines.
Guenther
Autobuild-User: Günther Deschner <gd at samba.org>
Autobuild-Date: Wed Mar 30 11:39:31 CEST 2011 on sn-devel-104
(cherry picked from commit fbd0ff69ec07c55a2858f49b1effb40bd871d4a6)
commit 97b2e2ad092e29357f90981c1577fd84d33d5354
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 14:12:59 2011 +0100
s3-rpc_server: move access check functions out of samr server.
Guenther
(cherry picked from commit ab9a29eb638143a93f70bb7880ca24f73bbb2118)
commit 108e4518fffb7e5ccf8daa9c7aa30ddef43fa170
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 13:42:42 2011 +0100
s3: only include ntioctl.h where needed.
Guenther
(cherry picked from commit b1e3b9d7c118b5ba5260525e87796a98a5037144)
commit 428e6132b159f108fc25fe4e89eeb849f40808a7
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 11:56:52 2011 +0100
s3: only include lib/privileges.h where needed.
This finally removes the global lsa.h inclusion.
Guenther
(cherry picked from commit c2d6260f1042313ecb7540dd6ced1470db3001e9)
commit 9bbfc6b009ed07498142e69db2c96149c820dbc3
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 11:56:10 2011 +0100
s3: include ../librpc/gen_ndr/lsa.h where needed.
Guenther
(cherry picked from commit 643b08dd25f9b1891b55d6653d0b04403d9b8ea0)
commit 4a8ed4ad8c3be1afe3bc8d2118b6962861fd7bed
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 11:40:00 2011 +0100
s3-passdb: move lsa_dom_info and lsa_name_info out of smb.h into passdb.
Guenther
(cherry picked from commit 1d383daf399b08c3833e55d11135796e34cc2689)
commit 827a92fdf9a5c60d473932b39776e08b3260c10b
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 22:33:07 2011 +0100
s3-includes: only include ntdomain.h where needed.
Guenther
(cherry picked from commit 6e3f0d28a4c0bc79cdbe4cfb50d105c4fe479d2b)
commit d72582bb056fb812a34359da0bc4b3c5a7c8e3ac
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 22:32:17 2011 +0100
pidl: add an include for "ntdomain.h" for s3 server stubs.
Guenther
(cherry picked from commit 9115615663edf82afde5a3c934b53d53a0e508f0)
commit 93ca8205dff22fa5c4ef2df4e7190f2c6679bd45
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 15:56:32 2011 +0100
s3-messages: make ndr_messaging.h part of messages.h.
Guenther
(cherry picked from commit ab36d597e75286cca09abd75c67d8072c0ff64cf)
commit 36007af23cd1258a1e075ac9ee9caeefdb59e84b
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 15:31:06 2011 +0100
s3-messages: only include messages.h where needed.
Guenther
(cherry picked from commit b2af281e508194d9548ea1119c19ee96a0dd1f0a)
commit c8d89a29462401163927a980a15fc7a37bd04643
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 14:16:28 2011 +0100
s3-prototyes: user_in_netgroup and user_in_list moved to auth, out of smbd.
Guenther
(cherry picked from commit 4bd5f51c43147b74203711764390727bdda17a77)
commit 26a854aad947b4a21552e9d9d7376ba2b8824278
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 02:28:17 2011 +0100
s3-includes: finally remove global include of auth.h.
Guenther
(cherry picked from commit 3679c0b8c101f9652858ea74a71556cdcdc88cb3)
commit 4a0ecfc76b4dd1558be6bdd2a0ea7916ea75a8da
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 14:15:54 2011 +0100
s3-auth: vfs modules need auth.h
Guenther
(cherry picked from commit bd471d30047e7053a0accf8b7a3caf0472d06486)
commit 1c182fca551e7a9313c58f0f8478c11b662dcfa1
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 14:12:42 2011 +0100
s3-auth: printing needs auth.h
Guenther
(cherry picked from commit 3061f44fc9f6cf5b532cd59598d166e52c8cef36)
commit cca3b18891d5778ad4bead9253b91650a0f1ee95
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 13:46:20 2011 +0100
s3-auth: smbd needs auth.h
Guenther
(cherry picked from commit af300a9fcb96f99b37cbf3a47332a135bfe9722f)
commit 0bc13239e46adcb9e38be64df6d8816b8d9deb41
Author: Günther Deschner <gd at samba.org>
Date: Thu Mar 24 12:08:15 2011 +0100
s3-auth: rpc_server needs auth.h
Guenther
(cherry picked from commit 146c1aac99b20afff30567e80fca7540853c446a)
commit ed8e5bbd45831ee70d6857fc9997321f25e544c4
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 02:28:05 2011 +0100
s3-auth: use auth.h where needed.
Guenther
(cherry picked from commit 7e73214ebf614a1f876bf80d374c1e1bc9379981)
commit 923f663eff2e06669abfb3fc130a129c0d4864cb
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 02:27:24 2011 +0100
s3-auth: move auth prototypes to auth/proto.h.
Guenther
(cherry picked from commit 1b6767d26218eaf85ec7af9281c6674bab36ce3f)
commit ca7162aad463914f8f2748521e316d174ddc6854
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 23 14:18:59 2011 +0100
s3-libsmb: put namequery headers to nmblib.h
We might find a better name for it and merge other namequery related things as
well here...
Guenther
(cherry picked from commit 2473c2fb1b9246e284b96cdf117bbb592a7c5309)
commit 453098f9e31ed2eae0163066d9849b6a2b666ebf
Author: Günther Deschner <gd at samba.org>
Date: Wed Mar 23 12:43:17 2011 +0100
s3-locking: move locking prototypes out of proto.h.
Will later become part of locking.h
Guenther
(cherry picked from commit 2377039738ea6676b71d58db770ffcd594ca08b7)
commit de2848f45d5e5e39e7500bfaf65555115d6b3b1b
Author: Günther Deschner <gd at samba.org>
Date: Fri Mar 25 11:15:55 2011 +0100
s3: finally remove global include of smbd prototypes.
Guenther
(cherry picked from commit f064c8e4f23b7d427b6e0cb11a6d7ec04964e773)
commit cb82d6f0b725d0d15cf02b31052222f119b8e4b5
Author: Günther Deschner <gd at samba.org>
Date: Tue Mar 22 23:49:33 2011 +0100
s3: rpc_server needs parts of smbd.
Guenther
(cherry picked from commit 20d8ae49b701bc2663dcecad8253863c9c979a40)
commit 8ce5d3f2e92252bf31d6bd6abbbe0728b0bcc166
Author: Günther Deschner <gd at samba.org>
Date: Tue Mar 22 23:49:17 2011 +0100
s3: printing needs parts of smbd.
Guenther
(cherry picked from commit 84815d38d204f3b6d0bbd2f419a20915078be70a)
commit 0ea8b2cb5babe731f49bb2e3c5605cf7046656d5
Author: Günther Deschner <gd at samba.org>
Date: Tue Mar 22 23:49:03 2011 +0100
s3: auth also needs parts of smbd.
Guenther
(cherry picked from commit 34a335a87db7d707c34a069f29b7cb97c8f36be9)
commit 4b9a40200190542ad3eca1f0b8e4ed945c55d427
Author: Günther Deschner <gd at samba.org>
Date: Tue Mar 22 22:34:22 2011 +0100
s3-vfs: include smbd/smbd.h in vfs modules.
Guenther
(cherry picked from commit 45364f5e69c4ef00f6870e11213da930e802b6d0)
commit e539c7df977423c7d4020ea65f7272c786ea1490
Author: Günther Deschner <gd at samba.org>
Date: Tue Mar 22 16:57:01 2011 +0100
s3: include smbd/smbd.h where needed.
Guenther
(cherry picked from commit 8c24ebf371d8aff4742a2ba063a8789e20eaaabc)
commit 8f64dcba12c5972b9c8b431e7cba15a457455f6c
Author: Günther Deschner <gd at samba.org>
Date: Sat Mar 19 00:47:12 2011 +0100
s3-smbd: add smbd.h and move smbd prototypes to smbd/proto.h.
Guenther
-----------------------------------------------------------------------
Summary of changes:
lib/util/debug_s3.c | 1 +
libgpo/gpo_ldap.c | 1 +
libgpo/gpo_sec.c | 2 +
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 1 +
source3/Makefile.in | 2 +-
source3/auth/auth.c | 1 +
source3/auth/auth_builtin.c | 1 +
source3/auth/auth_compat.c | 1 +
source3/auth/auth_domain.c | 1 +
source3/auth/auth_netlogond.c | 1 +
source3/auth/auth_ntlmssp.c | 2 +
source3/auth/auth_sam.c | 1 +
source3/auth/auth_script.c | 1 +
source3/auth/auth_server.c | 2 +
source3/auth/auth_unix.c | 1 +
source3/auth/auth_util.c | 1 +
source3/auth/auth_wbc.c | 1 +
source3/auth/auth_winbind.c | 1 +
source3/auth/check_samsec.c | 1 +
source3/auth/pampass.c | 1 +
source3/auth/pass_check.c | 2 +
source3/auth/proto.h | 268 +++
source3/auth/server_info.c | 1 +
source3/auth/server_info_sam.c | 1 +
source3/auth/token_util.c | 2 +
source3/auth/user_info.c | 1 +
source3/auth/user_krb5.c | 1 +
source3/auth/user_util.c | 1 +
source3/client/client.c | 1 +
source3/include/auth.h | 2 +
source3/include/ctdbd_conn.h | 2 +
source3/include/event.h | 2 +-
source3/include/includes.h | 6 -
source3/include/locking.h | 2 +
source3/include/messages.h | 2 +
source3/include/passdb.h | 31 +
source3/include/proto.h | 1761 +-------------------
source3/include/smb.h | 67 +-
source3/include/vfs.h | 5 +-
source3/lib/audit.c | 1 +
source3/lib/ctdbd_conn.c | 3 +-
source3/lib/dbwrap_ctdb.c | 1 +
source3/lib/dmallocmsg.c | 2 +-
source3/lib/filename_util.c | 1 +
source3/lib/g_lock.c | 2 +-
source3/lib/messages.c | 3 +-
source3/lib/messages_ctdbd.c | 2 +-
source3/lib/messages_local.c | 3 +-
source3/lib/packet.c | 1 +
source3/lib/privileges.c | 1 +
source3/lib/privileges.h | 18 +
source3/lib/server_contexts.c | 1 +
source3/lib/substitute.c | 1 +
source3/lib/tallocmsg.c | 2 +-
source3/lib/tldap_util.c | 1 +
source3/lib/util.c | 1 +
source3/lib/util_sconn.c | 1 +
source3/lib/winbind_util.c | 2 +-
source3/lib/winbind_util.h | 2 +
source3/libads/disp_sec.c | 1 +
source3/libads/dns.c | 1 +
source3/libnet/libnet_samsync.c | 1 +
source3/librpc/ndr/util.c | 1 +
source3/librpc/rpc/dcerpc_ep.c | 1 +
source3/librpc/rpc/dcerpc_helpers.c | 1 +
source3/libsmb/async_smb.c | 1 +
source3/libsmb/cliconnect.c | 1 +
source3/libsmb/clidfs.c | 1 +
source3/libsmb/clidgram.c | 3 +-
source3/libsmb/clifile.c | 1 +
source3/libsmb/clikrb5.c | 1 +
source3/libsmb/libsmb_dir.c | 1 +
source3/libsmb/libsmb_server.c | 1 +
source3/libsmb/namequery.c | 2 +-
source3/libsmb/nmblib.c | 1 +
source3/libsmb/nmblib.h | 49 +
source3/libsmb/passchange.c | 1 +
source3/libsmb/smbsock_connect.c | 1 +
source3/libsmb/unexpected.c | 1 +
source3/locking/brlock.c | 3 +-
source3/locking/locking.c | 3 +-
source3/locking/posix.c | 1 +
source3/locking/proto.h | 201 +++
source3/modules/gpfs.c | 1 +
source3/modules/nfs4_acls.c | 1 +
source3/modules/onefs_acl.c | 1 +
source3/modules/onefs_cbrl.c | 1 +
source3/modules/onefs_config.c | 1 +
source3/modules/onefs_dir.c | 1 +
source3/modules/onefs_notify.c | 1 +
source3/modules/onefs_open.c | 1 +
source3/modules/onefs_shadow_copy.c | 1 +
source3/modules/onefs_streams.c | 1 +
source3/modules/onefs_system.c | 1 +
source3/modules/perfcount_onefs.c | 1 +
source3/modules/perfcount_test.c | 1 +
source3/modules/vfs_acl_common.c | 1 +
source3/modules/vfs_acl_tdb.c | 2 +
source3/modules/vfs_acl_xattr.c | 2 +
source3/modules/vfs_afsacl.c | 2 +
source3/modules/vfs_aio_fork.c | 2 +
source3/modules/vfs_aixacl.c | 2 +
source3/modules/vfs_aixacl2.c | 1 +
source3/modules/vfs_aixacl_util.c | 1 +
source3/modules/vfs_audit.c | 1 +
source3/modules/vfs_cacheprime.c | 1 +
source3/modules/vfs_cap.c | 1 +
source3/modules/vfs_catia.c | 1 +
source3/modules/vfs_commit.c | 1 +
source3/modules/vfs_crossrename.c | 1 +
source3/modules/vfs_default.c | 3 +
source3/modules/vfs_default_quota.c | 1 +
source3/modules/vfs_dirsort.c | 1 +
source3/modules/vfs_expand_msdfs.c | 2 +
source3/modules/vfs_extd_audit.c | 1 +
source3/modules/vfs_fake_perms.c | 2 +
source3/modules/vfs_fileid.c | 1 +
source3/modules/vfs_full_audit.c | 3 +
source3/modules/vfs_gpfs.c | 1 +
source3/modules/vfs_hpuxacl.c | 2 +
source3/modules/vfs_irixacl.c | 2 +
source3/modules/vfs_linux_xfs_sgid.c | 1 +
source3/modules/vfs_netatalk.c | 1 +
source3/modules/vfs_notify_fam.c | 1 +
source3/modules/vfs_onefs.c | 1 +
source3/modules/vfs_onefs_shadow_copy.c | 1 +
source3/modules/vfs_posixacl.c | 1 +
source3/modules/vfs_prealloc.c | 1 +
source3/modules/vfs_preopen.c | 1 +
source3/modules/vfs_readahead.c | 1 +
source3/modules/vfs_readonly.c | 1 +
source3/modules/vfs_recycle.c | 2 +
source3/modules/vfs_scannedonly.c | 1 +
source3/modules/vfs_shadow_copy.c | 2 +
source3/modules/vfs_shadow_copy2.c | 2 +
source3/modules/vfs_smb_traffic_analyzer.c | 2 +
source3/modules/vfs_solarisacl.c | 2 +
source3/modules/vfs_streams_depot.c | 1 +
source3/modules/vfs_streams_xattr.c | 1 +
source3/modules/vfs_syncops.c | 1 +
source3/modules/vfs_time_audit.c | 2 +
source3/modules/vfs_tru64acl.c | 2 +
source3/modules/vfs_tsmsm.c | 1 +
source3/modules/vfs_xattr_tdb.c | 1 +
source3/modules/vfs_zfsacl.c | 2 +
source3/nmbd/nmbd.c | 2 +-
source3/nmbd/nmbd.h | 1 +
source3/passdb/account_pol.c | 2 +
source3/passdb/lookup_sid.h | 64 +
source3/passdb/machine_account_secrets.c | 1 +
source3/passdb/pdb_ipa.c | 1 +
source3/printing/notify.c | 2 +-
source3/printing/nt_printing.c | 5 +-
source3/printing/nt_printing_ads.c | 1 +
source3/printing/nt_printing_migrate.c | 1 +
source3/printing/printing.c | 4 +-
source3/printing/printspoolss.c | 1 +
source3/printing/spoolssd.c | 4 +-
source3/profile/profile.c | 2 +-
source3/registry/reg_backend_smbconf.c | 1 +
source3/rpc_client/cli_pipe.c | 1 +
source3/rpc_client/cli_spoolss.c | 1 +
source3/rpc_client/cli_winreg_int.h | 2 +
source3/rpc_client/init_lsa.c | 1 +
source3/rpc_client/init_lsa.h | 5 +
source3/rpc_server/dcesrv_gssapi.c | 1 +
source3/rpc_server/dcesrv_ntlmssp.c | 1 +
source3/rpc_server/dfs/srv_dfs_nt.c | 3 +
source3/rpc_server/dssetup/srv_dssetup_nt.c | 1 +
source3/rpc_server/echo/srv_echo_nt.c | 1 +
source3/rpc_server/epmapper/srv_epmapper.c | 2 +
source3/rpc_server/epmd.c | 2 +-
source3/rpc_server/eventlog/srv_eventlog_nt.c | 4 +-
source3/rpc_server/eventlog/srv_eventlog_reg.c | 1 +
.../rpc_server/initshutdown/srv_initshutdown_nt.c | 1 +
source3/rpc_server/lsa/srv_lsa_nt.c | 4 +
source3/rpc_server/netlogon/srv_netlog_nt.c | 4 +-
source3/rpc_server/ntsvcs/srv_ntsvcs_nt.c | 1 +
source3/rpc_server/rpc_handles.c | 2 +
source3/rpc_server/rpc_ncacn_np.c | 2 +
source3/rpc_server/rpc_server.c | 2 +
source3/rpc_server/samr/srv_samr_chgpasswd.c | 1 +
source3/rpc_server/samr/srv_samr_nt.c | 116 +--
source3/rpc_server/spoolss/srv_spoolss_nt.c | 5 +-
source3/rpc_server/spoolss/srv_spoolss_util.h | 1 +
source3/rpc_server/srv_access_check.c | 146 ++
source3/rpc_server/srv_access_check.h | 10 +
source3/rpc_server/srv_pipe.c | 3 +
source3/rpc_server/srv_pipe_hnd.c | 1 +
source3/rpc_server/srvsvc/srv_srvsvc_nt.c | 5 +-
source3/rpc_server/svcctl/srv_svcctl_nt.c | 2 +
source3/rpc_server/svcctl/srv_svcctl_reg.c | 1 +
source3/rpc_server/winreg/srv_winreg_nt.c | 3 +
source3/rpc_server/wkssvc/srv_wkssvc_nt.c | 3 +
source3/rpc_server/wscript_build | 6 +-
source3/rpcclient/rpcclient.c | 1 +
source3/services/svc_winreg_glue.h | 2 +
source3/smbd/aio.c | 1 +
source3/smbd/avahi_register.c | 1 +
source3/smbd/blocking.c | 3 +-
source3/smbd/close.c | 4 +-
source3/smbd/conn.c | 1 +
source3/smbd/connection.c | 2 +
source3/smbd/dfree.c | 1 +
source3/smbd/dir.c | 1 +
source3/smbd/dmapi.c | 1 +
source3/smbd/dnsregister.c | 1 +
source3/smbd/dosmode.c | 1 +
source3/smbd/error.c | 1 +
source3/smbd/fake_file.c | 2 +
source3/smbd/file_access.c | 1 +
source3/smbd/fileio.c | 1 +
source3/smbd/filename.c | 1 +
source3/smbd/files.c | 1 +
source3/smbd/globals.c | 2 +
source3/smbd/ipc.c | 1 +
source3/smbd/lanman.c | 2 +
source3/smbd/mangle.c | 1 +
source3/smbd/mangle_hash.c | 1 +
source3/smbd/mangle_hash2.c | 1 +
source3/smbd/message.c | 1 +
source3/smbd/msdfs.c | 2 +
source3/smbd/msg_idmap.c | 4 +-
source3/smbd/negprot.c | 3 +
source3/smbd/noquotas.c | 1 +
source3/smbd/notify.c | 1 +
source3/smbd/notify_inotify.c | 1 +
source3/smbd/notify_internal.c | 3 +-
source3/smbd/ntquotas.c | 1 +
source3/smbd/nttrans.c | 3 +
source3/smbd/open.c | 4 +-
source3/smbd/oplock.c | 3 +-
source3/smbd/oplock_irix.c | 2 +
source3/smbd/oplock_linux.c | 1 +
source3/smbd/oplock_onefs.c | 1 +
source3/smbd/password.c | 2 +
source3/smbd/perfcount.c | 1 +
source3/smbd/pipes.c | 1 +
source3/smbd/posix_acls.c | 2 +
source3/smbd/process.c | 4 +-
source3/smbd/proto.h | 1131 +++++++++++++
source3/smbd/quotas.c | 1 +
source3/smbd/reply.c | 3 +
source3/smbd/seal.c | 2 +
source3/smbd/sec_ctx.c | 2 +
source3/smbd/server.c | 4 +-
source3/smbd/server_exit.c | 2 +-
source3/smbd/server_reload.c | 4 +-
source3/smbd/service.c | 2 +
source3/smbd/session.c | 2 +
source3/smbd/sesssetup.c | 4 +-
source3/smbd/share_access.c | 2 +
source3/smbd/signing.c | 1 +
source3/smbd/smb2_break.c | 1 +
source3/smbd/smb2_close.c | 1 +
source3/smbd/smb2_create.c | 1 +
source3/smbd/smb2_find.c | 1 +
source3/smbd/smb2_flush.c | 1 +
source3/smbd/smb2_getinfo.c | 1 +
source3/smbd/smb2_glue.c | 1 +
source3/smbd/smb2_ioctl.c | 1 +
source3/smbd/smb2_keepalive.c | 1 +
source3/smbd/smb2_lock.c | 3 +-
source3/smbd/smb2_negprot.c | 1 +
source3/smbd/smb2_notify.c | 1 +
source3/smbd/smb2_read.c | 1 +
source3/smbd/smb2_server.c | 1 +
source3/smbd/smb2_sesssetup.c | 2 +
source3/smbd/smb2_setinfo.c | 1 +
source3/smbd/smb2_signing.c | 1 +
source3/smbd/smb2_tcon.c | 2 +
source3/smbd/smb2_write.c | 1 +
source3/smbd/smbd.h | 27 +
source3/smbd/srvstr.c | 1 +
source3/smbd/statcache.c | 3 +-
source3/smbd/statvfs.c | 1 +
source3/smbd/trans2.c | 2 +
source3/smbd/uid.c | 3 +
source3/smbd/utmp.c | 2 +
source3/smbd/vfs.c | 2 +
source3/torture/cmd_vfs.c | 1 +
source3/torture/locktest.c | 2 +
source3/torture/locktest2.c | 1 +
source3/torture/masktest.c | 1 +
source3/torture/msgtest.c | 2 +-
source3/torture/torture.c | 1 +
source3/torture/vfstest.c | 1 +
source3/utils/dbwrap_tool.c | 1 +
source3/utils/dbwrap_torture.c | 1 +
source3/utils/net.c | 1 +
source3/utils/net.h | 1 +
source3/utils/net_g_lock.c | 1 +
source3/utils/net_rpc_printer.c | 1 +
source3/utils/net_sam.c | 1 +
source3/utils/net_status.c | 1 +
source3/utils/net_time.c | 1 +
source3/utils/nmblookup.c | 1 +
source3/utils/smbcontrol.c | 3 +-
source3/utils/smbfilter.c | 1 +
source3/utils/status.c | 2 +
source3/web/cgi.c | 1 +
source3/web/statuspage.c | 1 +
source3/winbindd/winbindd.c | 3 +-
source3/winbindd/winbindd_cm.c | 3 +-
source3/winbindd/winbindd_dual.c | 3 +-
source3/winbindd/winbindd_dual_ndr.c | 1 +
source3/winbindd/winbindd_dual_srv.c | 1 +
source3/winbindd/winbindd_getgroups.c | 1 +
source3/winbindd/winbindd_getpwnam.c | 1 +
source3/winbindd/winbindd_pam.c | 2 +
source3/winbindd/winbindd_samr.c | 1 +
source3/winbindd/winbindd_wins.c | 1 +
312 files changed, 2407 insertions(+), 1967 deletions(-)
create mode 100644 source3/auth/proto.h
create mode 100644 source3/lib/privileges.h
create mode 100644 source3/libsmb/nmblib.h
create mode 100644 source3/locking/proto.h
create mode 100644 source3/rpc_server/srv_access_check.c
create mode 100644 source3/rpc_server/srv_access_check.h
create mode 100644 source3/smbd/proto.h
create mode 100644 source3/smbd/smbd.h
Changeset truncated at 500 lines:
diff --git a/lib/util/debug_s3.c b/lib/util/debug_s3.c
index b81daea..cfb6755 100644
--- a/lib/util/debug_s3.c
+++ b/lib/util/debug_s3.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "librpc/gen_ndr/messaging.h"
+#include "messages.h"
/* This is the Samba3-specific implementation of reopen_logs(), which
* calls out to the s3 loadparm code, and means that we don't depend
diff --git a/libgpo/gpo_ldap.c b/libgpo/gpo_ldap.c
index e6b9609..6abaf29 100644
--- a/libgpo/gpo_ldap.c
+++ b/libgpo/gpo_ldap.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "libgpo/gpo.h"
+#include "auth.h"
#if _SAMBA_BUILD_ == 4
#include "libgpo/gpo_s4.h"
#include "source4/libgpo/ads_convenience.h"
diff --git a/libgpo/gpo_sec.c b/libgpo/gpo_sec.c
index e0304d4..05b011b 100644
--- a/libgpo/gpo_sec.c
+++ b/libgpo/gpo_sec.c
@@ -20,6 +20,8 @@
#include "includes.h"
#include "libcli/security/security.h"
#include "../libgpo/gpo.h"
+#include "auth.h"
+#include "../librpc/ndr/libndr.h"
#if _SAMBA_BUILD_ == 4
#include "libgpo/ads_convenience.h"
#include "librpc/gen_ndr/security.h"
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 64a4ec5..c4374ba 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -294,6 +294,7 @@ sub Parse($$$)
pidl " */";
pidl "";
pidl "#include \"includes.h\"";
+ pidl "#include \"ntdomain.h\"";
pidl "#include \"$header\"";
pidl_hdr "#include \"$ndr_header\"";
pidl "";
diff --git a/source3/Makefile.in b/source3/Makefile.in
index fc58140..e45fd36 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -714,7 +714,7 @@ NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
../auth/auth_sam_reply.o librpc/gen_ndr/ndr_auth.o
RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
- rpc_server/rpc_handles.o
+ rpc_server/rpc_handles.o rpc_server/srv_access_check.o
RPC_SERVICE = rpc_server/rpc_server.o
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 790bfac..dbe337f 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "smbd/globals.h"
#undef DBGC_CLASS
diff --git a/source3/auth/auth_builtin.c b/source3/auth/auth_builtin.c
index bf6d701..afe71ee 100644
--- a/source3/auth/auth_builtin.c
+++ b/source3/auth/auth_builtin.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "auth.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source3/auth/auth_compat.c b/source3/auth/auth_compat.c
index ffad36e..0ae712a 100644
--- a/source3/auth/auth_compat.c
+++ b/source3/auth/auth_compat.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "auth.h"
extern struct auth_context *negprot_global_auth_context;
extern bool global_encrypted_passwords_negotiated;
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c
index c69ae63..5824d91 100644
--- a/source3/auth/auth_domain.c
+++ b/source3/auth/auth_domain.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "../libcli/auth/libcli_auth.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
#include "rpc_client/cli_pipe.h"
diff --git a/source3/auth/auth_netlogond.c b/source3/auth/auth_netlogond.c
index 5c76542..8e332c8 100644
--- a/source3/auth/auth_netlogond.c
+++ b/source3/auth/auth_netlogond.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "../libcli/auth/libcli_auth.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
#include "librpc/gen_ndr/ndr_schannel.h"
diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c
index ad45d81..ae29c30 100644
--- a/source3/auth/auth_ntlmssp.c
+++ b/source3/auth/auth_ntlmssp.c
@@ -21,9 +21,11 @@
*/
#include "includes.h"
+#include "auth.h"
#include "../libcli/auth/ntlmssp.h"
#include "ntlmssp_wrap.h"
#include "../librpc/gen_ndr/netlogon.h"
+#include "smbd/smbd.h"
NTSTATUS auth_ntlmssp_steal_session_info(TALLOC_CTX *mem_ctx,
struct auth_ntlmssp_state *auth_ntlmssp_state,
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index ffbe5b4..8d2300d 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -21,6 +21,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "../libcli/auth/libcli_auth.h"
#undef DBGC_CLASS
diff --git a/source3/auth/auth_script.c b/source3/auth/auth_script.c
index ee01733..ad97310 100644
--- a/source3/auth/auth_script.c
+++ b/source3/auth/auth_script.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "auth.h"
#undef malloc
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index 47b6e36..5dc8ea7 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -19,7 +19,9 @@
*/
#include "includes.h"
+#include "auth.h"
#include "system/passwd.h"
+#include "smbd/smbd.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c
index 5d89ca8..8f9eacf 100644
--- a/source3/auth/auth_unix.c
+++ b/source3/auth/auth_unix.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "system/passwd.h"
#include "../librpc/gen_ndr/samr.h"
#include "smbd/globals.h"
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 72217af..c84e3d3 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "smbd/globals.h"
#include "../libcli/auth/libcli_auth.h"
#include "../lib/crypto/arcfour.h"
diff --git a/source3/auth/auth_wbc.c b/source3/auth/auth_wbc.c
index 06ddbb1..6150040 100644
--- a/source3/auth/auth_wbc.c
+++ b/source3/auth/auth_wbc.c
@@ -38,6 +38,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "nsswitch/libwbclient/wbclient.h"
#undef DBGC_CLASS
diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c
index ff738be..2143353 100644
--- a/source3/auth/auth_winbind.c
+++ b/source3/auth/auth_winbind.c
@@ -21,6 +21,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "nsswitch/libwbclient/wbclient.h"
#undef DBGC_CLASS
diff --git a/source3/auth/check_samsec.c b/source3/auth/check_samsec.c
index 98d7ce8..f918dc0 100644
--- a/source3/auth/check_samsec.c
+++ b/source3/auth/check_samsec.c
@@ -21,6 +21,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "../libcli/auth/libcli_auth.h"
#include "passdb.h"
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c
index a4f136c..c4da1e6 100644
--- a/source3/auth/pampass.c
+++ b/source3/auth/pampass.c
@@ -27,6 +27,7 @@
*/
#include "includes.h"
+#include "auth.h"
#include "../libcli/auth/pam_errors.h"
#undef DBGC_CLASS
diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c
index d3b9b92..a7a1c3d 100644
--- a/source3/auth/pass_check.c
+++ b/source3/auth/pass_check.c
@@ -21,6 +21,8 @@
password database. The SMB encrypted password support is elsewhere */
#include "includes.h"
+#include "system/passwd.h"
+#include "auth.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
new file mode 100644
index 0000000..88cc707
--- /dev/null
+++ b/source3/auth/proto.h
@@ -0,0 +1,268 @@
+
+/* The following definitions come from auth/auth.c */
+
+NTSTATUS smb_register_auth(int version, const char *name, auth_init_function init);
+bool load_auth_module(struct auth_context *auth_context,
+ const char *module, auth_methods **ret) ;
+NTSTATUS make_auth_context_subsystem(TALLOC_CTX *mem_ctx,
+ struct auth_context **auth_context);
+NTSTATUS make_auth_context_fixed(TALLOC_CTX *mem_ctx,
+ struct auth_context **auth_context,
+ uchar chal[8]) ;
+
+/* The following definitions come from auth/auth_builtin.c */
+
+NTSTATUS auth_builtin_init(void);
+
+/* The following definitions come from auth/auth_compat.c */
+
+NTSTATUS check_plaintext_password(const char *smb_name,
+ DATA_BLOB plaintext_password,
+ struct auth_serversupplied_info **server_info);
+bool password_ok(struct auth_context *actx, bool global_encrypted,
+ const char *session_workgroup,
+ const char *smb_name, DATA_BLOB password_blob);
+
+/* The following definitions come from auth/auth_domain.c */
+
+void attempt_machine_password_change(void);
+NTSTATUS auth_domain_init(void);
+
+NTSTATUS auth_netlogond_init(void);
+
+/* The following definitions come from auth/auth_ntlmssp.c */
+
+NTSTATUS auth_ntlmssp_steal_session_info(TALLOC_CTX *mem_ctx,
+ struct auth_ntlmssp_state *auth_ntlmssp_state,
+ struct auth_serversupplied_info **session_info);
+NTSTATUS auth_ntlmssp_start(struct auth_ntlmssp_state **auth_ntlmssp_state);
+
+
+/* The following definitions come from auth/auth_sam.c */
+
+NTSTATUS check_sam_security(const DATA_BLOB *challenge,
+ TALLOC_CTX *mem_ctx,
+ const struct auth_usersupplied_info *user_info,
+ struct auth_serversupplied_info **server_info);
+NTSTATUS check_sam_security_info3(const DATA_BLOB *challenge,
+ TALLOC_CTX *mem_ctx,
+ const struct auth_usersupplied_info *user_info,
+ struct netr_SamInfo3 **pinfo3);
+NTSTATUS auth_sam_init(void);
+
+/* The following definitions come from auth/auth_server.c */
+
+NTSTATUS auth_server_init(void);
+
+/* The following definitions come from auth/auth_unix.c */
+
+NTSTATUS auth_unix_init(void);
+
+/* The following definitions come from auth/auth_util.c */
+
+NTSTATUS make_user_info_map(struct auth_usersupplied_info **user_info,
+ const char *smb_name,
+ const char *client_domain,
+ const char *workstation_name,
+ DATA_BLOB *lm_pwd,
+ DATA_BLOB *nt_pwd,
+ const struct samr_Password *lm_interactive_pwd,
+ const struct samr_Password *nt_interactive_pwd,
+ const char *plaintext,
+ enum auth_password_state password_state);
+bool make_user_info_netlogon_network(struct auth_usersupplied_info **user_info,
+ const char *smb_name,
+ const char *client_domain,
+ const char *workstation_name,
+ uint32 logon_parameters,
+ const uchar *lm_network_pwd,
+ int lm_pwd_len,
+ const uchar *nt_network_pwd,
+ int nt_pwd_len);
+bool make_user_info_netlogon_interactive(struct auth_usersupplied_info **user_info,
+ const char *smb_name,
+ const char *client_domain,
+ const char *workstation_name,
+ uint32 logon_parameters,
+ const uchar chal[8],
+ const uchar lm_interactive_pwd[16],
+ const uchar nt_interactive_pwd[16],
+ const uchar *dc_sess_key);
+bool make_user_info_for_reply(struct auth_usersupplied_info **user_info,
+ const char *smb_name,
+ const char *client_domain,
+ const uint8 chal[8],
+ DATA_BLOB plaintext_password);
+NTSTATUS make_user_info_for_reply_enc(struct auth_usersupplied_info **user_info,
+ const char *smb_name,
+ const char *client_domain,
+ DATA_BLOB lm_resp, DATA_BLOB nt_resp);
+bool make_user_info_guest(struct auth_usersupplied_info **user_info) ;
+struct samu;
+NTSTATUS make_server_info_sam(struct auth_serversupplied_info **server_info,
+ struct samu *sampass);
+NTSTATUS create_local_token(struct auth_serversupplied_info *server_info);
+NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
+ bool is_guest,
+ uid_t *uid, gid_t *gid,
+ char **found_username,
+ struct security_token **token);
+bool user_in_group_sid(const char *username, const struct dom_sid *group_sid);
+bool user_in_group(const char *username, const char *groupname);
+struct passwd;
+NTSTATUS make_server_info_pw(struct auth_serversupplied_info **server_info,
+ char *unix_username,
+ struct passwd *pwd);
+NTSTATUS make_serverinfo_from_username(TALLOC_CTX *mem_ctx,
+ const char *username,
+ bool is_guest,
+ struct auth_serversupplied_info **presult);
+struct auth_serversupplied_info *copy_serverinfo(TALLOC_CTX *mem_ctx,
+ const struct auth_serversupplied_info *src);
+bool init_guest_info(void);
+NTSTATUS init_system_info(void);
+bool session_info_set_session_key(struct auth_serversupplied_info *info,
+ DATA_BLOB session_key);
+NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx,
+ struct auth_serversupplied_info **server_info);
+NTSTATUS make_session_info_system(TALLOC_CTX *mem_ctx,
+ struct auth_serversupplied_info **session_info);
+const struct auth_serversupplied_info *get_session_info_system(void);
+bool copy_current_user(struct current_user *dst, struct current_user *src);
+struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, const char *domuser,
+ char **p_save_username, bool create );
+NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
+ const char *sent_nt_username,
+ const char *domain,
+ struct auth_serversupplied_info **server_info,
+ struct netr_SamInfo3 *info3);
+struct wbcAuthUserInfo;
+NTSTATUS make_server_info_wbcAuthUserInfo(TALLOC_CTX *mem_ctx,
+ const char *sent_nt_username,
+ const char *domain,
+ const struct wbcAuthUserInfo *info,
+ struct auth_serversupplied_info **server_info);
+void free_user_info(struct auth_usersupplied_info **user_info);
+bool make_auth_methods(struct auth_context *auth_context, auth_methods **auth_method) ;
+bool is_trusted_domain(const char* dom_name);
+
+/* The following definitions come from auth/user_info.c */
+
+NTSTATUS make_user_info(struct auth_usersupplied_info **ret_user_info,
+ const char *smb_name,
+ const char *internal_username,
+ const char *client_domain,
+ const char *domain,
+ const char *workstation_name,
+ const DATA_BLOB *lm_pwd,
+ const DATA_BLOB *nt_pwd,
+ const struct samr_Password *lm_interactive_pwd,
+ const struct samr_Password *nt_interactive_pwd,
+ const char *plaintext_password,
+ enum auth_password_state password_state);
+void free_user_info(struct auth_usersupplied_info **user_info);
+
+/* The following definitions come from auth/auth_winbind.c */
+
+NTSTATUS auth_winbind_init(void);
+
+/* The following definitions come from auth/server_info.c */
+
+struct netr_SamInfo2;
+struct netr_SamInfo3;
+struct netr_SamInfo6;
+
+struct auth_serversupplied_info *make_server_info(TALLOC_CTX *mem_ctx);
+NTSTATUS serverinfo_to_SamInfo2(struct auth_serversupplied_info *server_info,
+ uint8_t *pipe_session_key,
+ size_t pipe_session_key_len,
+ struct netr_SamInfo2 *sam2);
+NTSTATUS serverinfo_to_SamInfo3(const struct auth_serversupplied_info *server_info,
+ uint8_t *pipe_session_key,
+ size_t pipe_session_key_len,
+ struct netr_SamInfo3 *sam3);
+NTSTATUS serverinfo_to_SamInfo6(struct auth_serversupplied_info *server_info,
+ uint8_t *pipe_session_key,
+ size_t pipe_session_key_len,
+ struct netr_SamInfo6 *sam6);
+NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx,
+ struct samu *samu,
+ const char *login_server,
+ struct netr_SamInfo3 **_info3,
+ struct extra_auth_info *extra);
+struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
+ struct netr_SamInfo3 *orig);
+struct netr_SamInfo3 *wbcAuthUserInfo_to_netr_SamInfo3(TALLOC_CTX *mem_ctx,
+ const struct wbcAuthUserInfo *info);
+
+/* The following definitions come from auth/auth_wbc.c */
+
+NTSTATUS auth_wbc_init(void);
+
+/* The following definitions come from auth/pampass.c */
+
+bool smb_pam_claim_session(char *user, char *tty, char *rhost);
+bool smb_pam_close_session(char *user, char *tty, char *rhost);
+NTSTATUS smb_pam_accountcheck(const char *user, const char *rhost);
+NTSTATUS smb_pam_passcheck(const char * user, const char * rhost,
+ const char * password);
+bool smb_pam_passchange(const char *user, const char *rhost,
+ const char *oldpassword, const char *newpassword);
+bool smb_pam_claim_session(char *user, char *tty, char *rhost);
+bool smb_pam_close_session(char *in_user, char *tty, char *rhost);
+
+/* The following definitions come from auth/pass_check.c */
+
+void dfs_unlogin(void);
+NTSTATUS pass_check(const struct passwd *pass,
+ const char *user,
+ const char *rhost,
+ const char *password,
+ bool run_cracker);
+
+/* The following definitions come from auth/token_util.c */
+
+bool nt_token_check_sid ( const struct dom_sid *sid, const struct security_token *token );
+bool nt_token_check_domain_rid( struct security_token *token, uint32 rid );
+struct security_token *get_root_nt_token( void );
+NTSTATUS add_aliases(const struct dom_sid *domain_sid,
+ struct security_token *token);
+struct security_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
+ const struct dom_sid *user_sid,
+ bool is_guest,
+ int num_groupsids,
--
Samba Shared Repository
More information about the samba-cvs
mailing list