summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett2011-06-066-47/+7
| | | | | | | | | | This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
* s3-lib Remove unused lib_path()Andrew Bartlett2011-06-062-14/+0
|
* s4-param Add hook between Samba3 and Samba4 loadparm systems.Andrew Bartlett2011-06-064-4/+77
| | | | | | | | In the top level build, this allows calls to code that requires a lpcfg_ style loadparm_context, while using the global parameters loaded from the source3 loadparm code. Andrew Bartlett
* s3-param always allow the realm parameterAndrew Bartlett2011-06-061-2/+0
|
* s3: Make use of name_resolve_bcast in nmblookupVolker Lendecke2011-06-051-21/+3
|
* s3: Make name_resolve_bcast do parallel lookups to all interfacesVolker Lendecke2011-06-051-21/+19
|
* s3: Add name_queries_send/recvVolker Lendecke2011-06-051-0/+231
|
* s3: Fix a valgrind errorVolker Lendecke2011-06-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For me this fixes ==1950== Invalid read of size 4 ==1950== at 0x81EBED5: GUID_equal (uuid.c:239) ==1950== by 0x81E51AB: ndr_syntax_id_equal (ndr_misc.c:35) ==1950== by 0x82EB0D1: get_iface_from_syntax (rpc_common.c:160) ==1950== by 0x82EB25E: get_pipe_name_from_syntax (rpc_common.c:179) ==1950== by 0x8509E4F: close_policy_by_pipe (rpc_handles.c:322) ==1950== by 0x8507941: close_internal_rpc_pipe_hnd (rpc_ncacn_np.c:109) ==1950== by 0x468270: _talloc_free_internal (talloc.c:826) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x80E6487: sam_trusted_domains (winbindd_samr.c:406) ==1950== Address 0x687ea4 is 20 bytes inside a block of size 40 free'd ==1950== at 0x58CDC: free (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so) ==1950== by 0x8507812: free_pipe_rpc_context_internal (rpc_ncacn_np.c:74) ==1950== by 0x8507936: close_internal_rpc_pipe_hnd (rpc_ncacn_np.c:106) ==1950== by 0x468270: _talloc_free_internal (talloc.c:826) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x80E6487: sam_trusted_domains (winbindd_samr.c:406) ==1950== by 0x80C2F85: trusted_domains (winbindd_cache.c:2820) ==1950== by 0x80D5188: winbindd_dual_list_trusted_domains (winbindd_misc.c:162) ==1950== by 0x80E987F: wb_child_request_trigger (winbindd_dual.c:437) ==1950== Andreas, Guenther, please check! Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 5 13:19:39 CEST 2011 on sn-devel-104
* s3:winbind: Convert WINBINDD_WINS_BYIP to the async APIVolker Lendecke2011-06-056-73/+145
|
* s3: Fix the build on FreeBSD 8Volker Lendecke2011-06-041-0/+5
| | | | | This is probably not the last word on gss_mech_krb5, but for now it fixes the build on FreeBSD
* Add the same fix to the S3 event backend as the previous commit added to the ↵Jeremy Allison2011-06-041-1/+14
| | | | | | | | | tevent poll backend. Metze please check ! Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Jun 4 00:27:37 CEST 2011 on sn-devel-104
* In samba_version.m4 the test to get the version now returns severalHerb Lewis2011-06-021-1/+1
| | | | | | | | lines instead of the one we really wanted which causes some spurious output when configure tries to print the samba version when it starts running. This is only a cosmetic problem but still looks ugly. Signed-off-by: Jeremy Allison <jra@samba.org>
* Remove another PATH_MAX.Jeremy Allison2011-06-021-12/+27
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jun 2 02:51:06 CEST 2011 on sn-devel-104
* Fix const warnings.Jeremy Allison2011-06-021-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jun 2 01:02:53 CEST 2011 on sn-devel-104
* Fix const warning.Jeremy Allison2011-06-011-1/+1
|
* Fix const warning.Jeremy Allison2011-06-011-1/+1
|
* release_ip() is only used with CLUSTER_SUPPORT.Jeremy Allison2011-06-011-1/+1
|
* Fix bug where format arguments were reversed. Please compile with -Wall !Jeremy Allison2011-06-011-2/+2
|
* Move fd_close on error path to be identical to all other error paths.Jeremy Allison2011-06-011-2/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jun 1 22:30:03 CEST 2011 on sn-devel-104
* TALLOC_FREE already checks for null.Jeremy Allison2011-06-011-3/+1
|
* Fix bug #8175 - smbd deadlock.Jeremy Allison2011-06-011-27/+71
| | | | | | | | Force the open operation (which is the expensive one anyway) to acquire and release locks in a way compatible with the more common do_lock check. Jeremy.
* Revert "s3: Mark sockets in error state writable"Volker Lendecke2011-06-011-23/+0
| | | | | | | This reverts commit 5f6f71956460d6840c1433b59e20555268b622ac. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jun 1 14:56:25 CEST 2011 on sn-devel-104
* s3-epmapper: Register ports on IPv4 too.Andreas Schneider2011-06-012-2/+2
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Jun 1 13:14:53 CEST 2011 on sn-devel-104
* s3-rpc_server: Remove unused variable pipes_open.Andreas Schneider2011-06-011-4/+2
|
* s3-rpc_server: Remove syntax from pipes_struct.Andreas Schneider2011-06-013-3/+0
|
* s3-rpc_server: Fixed debug messages of srv_pipe_hnd.Andreas Schneider2011-06-011-5/+5
|
* s3-rpc_server: Fixed debug messages for rpc_handles.Andreas Schneider2011-06-011-6/+7
|
* s3-rpc_server: Fix debug messages.Andreas Schneider2011-06-011-46/+20
|
* s3-rpc_server: Don't segfault if there are not handles to free.Andreas Schneider2011-06-011-0/+4
|
* s3-rpc_server: Remove guessing of the syntax id.Andreas Schneider2011-06-015-51/+11
| | | | | This is only a wild guess. We don't know to which rpc service the client wants to talk until we read the the rpc bind packet.
* s3-rpc_server: Use the correct syntax id for debugging.Andreas Schneider2011-06-011-8/+11
|
* s3-rpc_server: Migrate init_pipe_handles() to new syntax.Andreas Schneider2011-06-011-8/+21
|
* s3-rpc_server: Use the context syntax id in api_pipe_request().Andreas Schneider2011-06-011-7/+7
|
* s3-rpc_server: Use the correct syntax id in api_pipe_bind_req().Andreas Schneider2011-06-011-19/+14
|
* s3-rpc_server: Use the correct context syntax.Andreas Schneider2011-06-011-2/+20
|
* s3-rpc_server: Move the context functions to own file.Andreas Schneider2011-06-015-22/+72
|
* s3-rpc_server: Store the ndr syntax id in the pipe context.Andreas Schneider2011-06-011-5/+6
| | | | | | | The client tell us in the rpc bind to which rpc service it wants to connect. We did set the p->syntax earlier by guessing to which pipe name it connects, but we don't know to which rpc service it wants to bind until we read the first packet.
* s3-rpc_server: Added syntax id to pipe_rpc_fns struct.Andreas Schneider2011-06-011-1/+2
|
* lib/util/time.c: timeval_current_ofs_usecRusty Russell2011-06-012-8/+8
| | | | | | | | | | | | | | | Several places want "microseconds from current time", and several were simply handing "usecs" values which could be over a million. Using a helper to do this is safer and more readable. I didn't replace any obviously correct callers (ie. constants). I also renamed wait_nsec in source3/lib/util_sock.c; it's actually microseconds not nanoseconds (introduced with this code in Volker's 19b783cc Async wrapper for open_socket_out_send/recv). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util/time.c: timeval_current_ofs_msecRusty Russell2011-06-015-12/+7
| | | | | | | | | | Several places want "milliseconds from current time", and several were simply doing "msec * 1000" which can (and does in one place) result in a usec value over 1 a million. Using a helper to do this is safer and more readable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-param Make lp_ncalrpc_dir() constAndrew Bartlett2011-06-012-2/+2
| | | | | | | | | | | This disables % substitutions in the 'ncalrpc dir' parameter. This is used as a communication point between multiple parts of the codebase, and needs to be internally consistent between all the Samba tasks. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Jun 1 05:30:53 CEST 2011 on sn-devel-104
* s3-param Make lp_dedicated_keytab_file() constAndrew Bartlett2011-06-012-2/+2
| | | | | | This disables % substitutions in the 'dedicated keytab file' parameter. Andrew Bartlett
* s3-param Make lp_realm() constAndrew Bartlett2011-06-012-2/+2
| | | | | | | | This disables % substitutions in the 'realm' parameter. This is used all over the codebase, and needs to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_name_resolv_order() constAndrew Bartlett2011-06-012-2/+2
| | | | | | | | This disables % substitutions in the 'name resolv order' parameter. This is used all over the codebase, and needs to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_utmpdir() and lp_wtmpdir constAndrew Bartlett2011-06-012-4/+4
| | | | | | | | This disables % substitutions in the 'utmp dir' and 'wtmp dir' parameters. These are system paths, and need to be consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_piddir() constAndrew Bartlett2011-06-012-2/+2
| | | | | | | | This disables % substitutions in the 'pid dir' parameter. This is used all over the codebase, and need to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_cachedir() constAndrew Bartlett2011-06-012-6/+6
| | | | | | | | This disables % substitutions in the 'cache dir' parameter. This is used all over the codebase, and need to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_statedir() constAndrew Bartlett2011-06-012-6/+6
| | | | | | | | This disables % substitutions in the 'state dir' parameter. This is used all over the codebase, and need to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_lockdir() constAndrew Bartlett2011-06-012-2/+2
| | | | | | | | | This disables % substitutions in the 'lock dir' parameter. This is used all over the codebase, and needs to be internally consistent for the life of the process, as they determine the location of our locking databases. Andrew Bartlett
* s3-param Make lp_smb_passwd_file() and lp_private_dir() constAndrew Bartlett2011-06-012-4/+4
| | | | | | | | | This disables % substitutions in the 'smb passwd file' and 'private dir' parameters. These are used all over the codebase, and need to be internally consistent for the life of the process, as they determine the location of secrets.tdb, as well as the passdb databases. Andrew Bartlett