summaryrefslogtreecommitdiffstats
path: root/source3/include/proto.h
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:param: remove unused function lp_idmap_backend()Michael Adam2013-02-051-1/+0
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: remove unused functions lp_idmap_uid() and lp_idmap_gid()Michael Adam2013-02-051-2/+0
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: add utility function lp_idmap_default_range()Michael Adam2013-02-051-0/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: add a utility function lp_idmap_range() to get the configured ↵Michael Adam2013-02-051-0/+1
| | | | | | | range for a given domain. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* More for #9374 - Allow smb2.acls torture test to pass against smbd with a ↵Jeremy Allison2012-11-201-2/+1
| | | | | | | | | | | | | | | | | | | | POSIX ACLs backend. Change can_delete_directory() to can_delete_directory_fsp(), as we only ever call this from an open directory file handle. This allows us to use OpenDir_fsp() instead of OpenDir(). OpenDir() re-checks the ACL on the directory, which may refuse DIR_LIST permissions. OpenDir_fsp() does not. As this is a file-server internal check to see if the directory actually contains any files before setting delete on close, we can ignore the ACL here (Windows does). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Nov 20 01:46:28 CET 2012 on sn-devel-104
* s3:param: make init_locals() static.Michael Adam2012-11-161-1/+0
| | | | | | | | | | it is only used in loadparm.c Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Nov 16 03:33:34 CET 2012 on sn-devel-104
* smbd: Remove NT4 compatability handling in posix -> NT ACL conversionAndrew Bartlett2012-11-131-1/+0
| | | | | | | | | | | | | | | | | NT4 is long dead, and we should not change which ACL we return based on what we think the client is. The reason we should not do this, is that if we are using vfs_acl_xattr then the hash will break if we do. Additionally, it would require that the python VFS interface set the global remote_arch to fake up being a modern client. This instead seems cleaner and removes untested code (the tests are updated to then handle the results of the modern codepath). The supporting 'acl compatability' parameter is also removed. Andrew Bartlett Reviewed by: Jeremy Allison <jra@samba.org>
* s3:lib: remove unused sessionid_*() functionsGregor Beck2012-10-191-6/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
* Remove the parameters:Jeremy Allison2012-10-041-4/+0
| | | | | | | | | security mask force security mode directory security mask force directory security mode and update the docs.
* Revert "Add functions to programatically set the security mask and directory ↵Jeremy Allison2012-10-041-2/+0
| | | | | | | | security mask parameters." This reverts commit 8f0ecbbbeebff0174579a78827d384067cd4cbb7. Not now needed as part of the move to remove security mask parameters.
* Add functions to programatically set the security mask and directory ↵Jeremy Allison2012-10-021-0/+2
| | | | security mask parameters.
* Avoid overriding default ccache for ads operations.Simo Sorce2012-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Avoid overriding default ccache for ads operations. Nowadays various samba components may need to use GSSAPI and a default cred cache to perform their tasks. This code was completely overriding the whole process default ccache name, thus altering the current credentials and sometimes hijacking them (or getting preemptively hijaked). By using gss_krb5_import_cred we can instead use a private ccache (necessary sometimes to use a different set of credentials fromt he default cifs/fqdn@realm one, for example when contacting foreign DCs using trust credentials) that does not affect the rest of the process. For the kerberos versions which don't have gss_krb5_import_cred we fallback to temp override of KRB5CCNAME and gss_acquire_cred. Signed-off-by: Alexander Bokovoy <ab@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Wed Sep 12 21:18:09 CEST 2012 on sn-devel-104
* s3: introduce a new share config option "durable handles" defaulting to "yes"Michael Adam2012-09-081-0/+1
| | | | | | | | | | | | | | | This is in order to be able to turn durable handles off and on on a per share basis. Note: This is only used in combination with: kernel share modes = no kernel oplocks = no posix locking = no Which means CIFS/SMB2 only access. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: add an option "kernel share modes" to be able to switch off using kernel ↵Michael Adam2012-09-081-0/+1
| | | | | | flocks Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Remove align_string(). No longer used.Jeremy Allison2012-08-221-1/+0
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Aug 22 20:38:50 CEST 2012 on sn-devel-104
* s3:lib: implement serverid_equal() as macro of server_id_equal()Stefan Metzmacher2012-08-171-1/+1
| | | | metze
* Fix strlower_m() to return an error indication.Jeremy Allison2012-08-091-1/+1
|
* Check error returns on strnorm().Jeremy Allison2012-08-091-1/+1
|
* Change strupper_m() to return a value.Jeremy Allison2012-08-091-1/+1
|
* source3/loadparm.c: Move string_set/string_free inside.Rusty Russell2012-08-071-2/+0
| | | | | | | The only user, so make them static inside loadparm.c Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* lib/param: Rename "socket address" to "nbt client socket address" to clarify ↵Andrew Bartlett2012-07-271-1/+1
| | | | | | | | | | | | | role This parameter is only used in our NBT client code and in nmbd as a fallback when we fail to select a better interface from "interfaces" to use directly. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jul 27 12:16:25 CEST 2012 on sn-devel-104
* lib/param: Merge handling of security/domain master/domain logons/server roleAndrew Bartlett2012-07-241-0/+4
| | | | | | | This ensures that the same input parameters always gives the same output values in both loadparm systems. Andrew Bartlett
* param: Make the 'unicode' parameter commonAndrew Bartlett2012-07-241-0/+1
| | | | | | This parameter is most useful for interop testing, rather than production use. Andrew Bartlett
* s3-winbind: Fix bug #9052 resolving our own "Domain Local" groups.Andreas Schneider2012-07-231-2/+1
| | | | | | | | | | | | | | | | | We don't resolve our own "Domain Local" groups since bug #7843 has been fixed. So we need to add the add resource groups to the sid list too. Before bug #7843 the "Domain Local" groups were added with a lookupuseraliases call, but this isn't done anymore for our domain so we need to resolve resource groups here. When to use Resource Groups: http://technet.microsoft.com/en-us/library/cc753670%28v=WS.10%29.aspx Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Jul 23 22:12:30 CEST 2012 on sn-devel-104
* Remove source3/lib/pidfile.cJeremy Allison2012-07-201-6/+0
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 20 03:57:20 CEST 2012 on sn-devel-104
* Make the s3 pidfile use the common code inside lib/util/pidfile.cJeremy Allison2012-07-191-1/+1
|
* Move source4/smbd/pidfile into lib/util in preparation for making it in common.Jeremy Allison2012-07-191-3/+3
|
* lib/param: bring lp_smb_ports() into common by making it a list everywhereAndrew Bartlett2012-07-191-1/+1
|
* s3-param: Make lp_name_resolve_order() return a listAndrew Bartlett2012-07-191-3/+2
| | | | | | | | | This allows this parameter, one of the few with differing declarations between the loadparm systems, to be brought into common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s3-aio: Remove unused VFS functions and moreVolker Lendecke2012-07-181-14/+0
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-181-81/+81
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* Move set_thread_credentials_permanently() to set_thread_credentials()Jeremy Allison2012-07-111-4/+4
| | | | | | | | | | as we need to keep the saved set uid/gid otherwise there is an interaction with open[at]() and NO_ATIME returning EPERM. As this is meant for threaded code inside the process we don't need to do an irreverisble change anyway. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jul 11 03:54:00 CEST 2012 on sn-devel-104
* Make check_same_stat() and check_same_dev_ino() common functions.Jeremy Allison2012-07-091-0/+4
|
* Move copy_unix_token() from locking/locking.c to lib/util.c.Jeremy Allison2012-07-031-0/+1
| | | | Make public.
* Add function set_thread_credentials_permanently(). Panic if fail.Jeremy Allison2012-07-031-0/+4
| | | | Not yet used.
* s3-smbd: Remove deprecated 'share modes' option.Andreas Schneider2012-07-031-1/+0
|
* s3-printing: Remove deprecated lp_printer_admin().Andreas Schneider2012-07-031-1/+0
|
* s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett2012-06-271-1/+1
| | | | | | | | | | | | | | | | | This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
* s3:util: rename procid_equal() to serverid_equal()Michael Adam2012-06-211-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:util: remove (now) unused cluster_id_equal()Michael Adam2012-06-211-2/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Revert "s3-lib Remove unused sys_fcntl_long()"Stefan Metzmacher2012-06-191-0/+1
| | | | | | | | This reverts commit 846a697e20478798288afb43cdb7a9f389a15c69. This is still used in source3/smbd/oplock_irix.c metze
* s3:lib: add a utility function "fsp_fnum_dbg" for logging the fnum of an fspMichael Adam2012-06-151-0/+1
| | | | | | This is to unify logging of an files_struct. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* S3: Add ntlmssp_set_password_hashVolker Lendecke2012-06-121-0/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:include: move sys_acl prototypes to smb_acls.hStefan Metzmacher2012-06-061-30/+0
| | | | metze
* s3:lib: split things into a conn_tdb.hStefan Metzmacher2012-06-051-19/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
* s3-param: Use same function name for "max xmit" as lib/paramAndrew Bartlett2012-05-301-1/+1
| | | | | | Again, this helps with merging the FN_ list. Andrew Bartlett
* s3-param: Rename lp_dns_proxy() -> lp_wins_dns_proxy() for clarityAndrew Bartlett2012-05-301-1/+1
| | | | | | This avoids some confusion now we have a DNS server as well. Andrew Bartlett
* Added torture test for bug #8910. Test remove_duplicate_addrs2().Jeremy Allison2012-05-221-0/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 22 01:31:17 CEST 2012 on sn-devel-104
* lib/util: move tevent_req_poll_ntstatus() to tevent_ntstatus.cStefan Metzmacher2012-05-141-3/+0
| | | | metze
* s3-lib: Add const to sys_acl_to_textAndrew Bartlett2012-05-091-1/+1
|