summaryrefslogtreecommitdiffstats
path: root/source3/nmbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename obscure defined constants.Christopher R. Hertel (crh)2012-02-161-1/+1
| | | | | | | | | | | | | | | Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT. Also replaced several hard-coded references to the well-known port numbers (139 and 445, respectively) as appropriate. Small changes to clarify some comments regarding the two transport types. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104
* s3-nmbd: Initialise newly non-static variablesAndrew Bartlett2012-02-161-4/+4
| | | | | | | | Found by testing with wintest. When the variables were made non-static in c21f6a1c6869a5086634bb830d6c3689dea539a3 the implicit initialisation to 0 was lost. Andrew Bartlett
* s3-nmbd: don't discard DGRAM frames from local addresses when we are a DCMatthieu Patou2012-02-031-15/+17
| | | | | | | | | | Winbind use netbios to locate the DC, if samba is also a DC then nmbd receive request from Winbind that are from a local address, those requests must not be discarded otherwise winbind can't find the DC and won't try another method. Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Feb 3 11:09:29 CET 2012 on sn-devel-104
* s3: Remove a call to procid_self()Volker Lendecke2011-12-141-1/+1
|
* s3: Remove nmbd_messaging_context()Volker Lendecke2011-12-141-31/+18
|
* s3: Fix some pointless staticsVolker Lendecke2011-12-141-5/+5
|
* s3: Remove a call to procid_self()Volker Lendecke2011-12-141-6/+8
| | | | Pass messaging_context through the SIGHUP handler
* s3: Remove a call to procid_self()Volker Lendecke2011-12-141-7/+10
| | | | Pass messaging_context through the SIGTERM handler
* s3: Pass messaging_context to nmbd/process()Volker Lendecke2011-12-141-4/+3
|
* s3: Make nmbd_messaging_context staticVolker Lendecke2011-12-142-2/+1
|
* s3: Centralize nmbd_messaging_context in nmbd.cVolker Lendecke2011-12-144-13/+12
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-12-141-4/+4
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-12-131-10/+10
|
* s3: Remove a bunch of calls to procid_self()Volker Lendecke2011-12-122-2/+2
| | | | All callers to messaging_[re]init only used procid_self()
* s3:nmbd: make use of cli_tree_connect()Stefan Metzmacher2011-11-241-1/+1
| | | | metze
* s3-nmbd Remove AD netlogon response from s3 nmbd serverAndrew Bartlett2011-11-171-92/+15
| | | | | | | | | | | | | | | I do not want users with misconfigurations to have nmbd respond with this partially correct packet. For example, it hardcodes the site as Default-First-Site-Name. If nmbd wishes to return this information, it would need to query the AD database using the same APIs that the source4/ nbt server does. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Nov 17 02:10:54 CET 2011 on sn-devel-104
* s3-param remove lp_domain_logons(), always use IS_DCAndrew Bartlett2011-11-172-2/+2
| | | | | | | | This makes the code internally consistant. Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* s3:nmbd: s/Undefined/SMB_SIGNING_DEFAULT/Stefan Metzmacher2011-11-031-2/+2
| | | | metze
* libcli/cldap: don't pass tevent_context to cldap_socket_init()Stefan Metzmacher2011-10-101-2/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
* libcli/cldap: pass tevent_context to cldap_netlogon_send()Stefan Metzmacher2011-10-101-1/+1
| | | | metze
* s3:libsmb: pass max_protocol to cli_negprot()Stefan Metzmacher2011-09-151-1/+1
| | | | metze
* s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()Stefan Metzmacher2011-09-081-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
* s3: Fix some nonempty blank linesVolker Lendecke2011-08-251-3/+3
|
* s3-messaging: Fix messaging classes.Simo Sorce2011-08-111-1/+3
| | | | | | | | | | | | This has been broken since ff0ac5b0 (May 2007). Basically all messages were belonging to the General class except for CTDB messages. This fixed the message_send_all() function to correctly compute the class, and fixes registrations to include all they need to cope with the fact not all messages are of calss general (registrations rotted a bit because as long as FLAG_MSG_GENERAL was defined the process woould receive all messages). Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-nmbd: fix talloc/malloc mismatch in create_listen_pollfds().Günther Deschner2011-08-041-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Aug 4 19:06:39 CEST 2011 on sn-devel-104
* s3:nmbd: use the lp_load_global() wrapper of lp_load()Michael Adam2011-07-281-1/+1
|
* debug: log early messages to stdout, and keep it openAndrew Bartlett2011-07-201-1/+4
| | | | | | | | | The --log-stdout option was compromised by the log file descriptors being closed once the file process forked. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* S3: Fix some nonempty blank linesVolker Lendecke2011-07-031-26/+26
|
* param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()Andrew Bartlett2011-07-021-1/+1
| | | | | | | | | Jermey started this in 1997 with 0aa493cc0303aa4177f289b9e4c797c8fa180672 (avoiding the duplicate function makes it easier to generate the struct loadparm_globals). Andrew Bartlett
* Part of fix for bug 8276 - FD_SET out of bounds access crash.Jeremy Allison2011-06-301-9/+18
| | | | | | | Ensure we never add fd's set to -1 to the pollfd set. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jun 30 21:15:25 CEST 2011 on sn-devel-104
* s3:nmbd_subnetdb: close all sockets attached to a subnet in close_subnet() ↵Stefan Metzmacher2011-06-301-3/+11
| | | | | | (bug #8276) metze
* s3-param Remove 'announce version' parameterAndrew Bartlett2011-06-231-4/+4
| | | | | | | | The only users I can find of this on the internet involve confused users, and our own documentation recommends never setting this. Don't confuse our users any longer. Andrew Bartlett
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-201-1/+1
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-0910-62/+62
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-param Remove special case for global_scope()Andrew Bartlett2011-06-092-6/+6
| | | | | | | There is no reason this can't be a normal constant string in the loadparm system. (Past reasons were that we didn't have lp_set_cmdline()) Andrew Bartlett
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-2/+2
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* lib/util/time.c: timeval_current_ofs_msecRusty Russell2011-06-011-2/+1
| | | | | | | | | | 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:nmbd: add _NMBD_NMBD_H_ guard to nmbd.hMichael Adam2011-05-311-0/+5
|
* s3:nmbd: add GPL/Copyright header to nmbd.hMichael Adam2011-05-311-0/+20
|
* s3:nmbd/nmbd_proto.h: add GPL/Copyright headerMichael Adam2011-05-311-0/+25
|
* s3: Use cli_connect_nb in nmbd sync_childVolker Lendecke2011-05-291-18/+4
|
* s3: Fix some nonemtpy blank linesVolker Lendecke2011-05-281-6/+5
|
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-1/+1
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-062-0/+2
| | | | Guenther
* s3: only include tdb headers where needed.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* More simple const fixes.Jeremy Allison2011-05-054-12/+12
|
* More const compiler warning fixes.Jeremy Allison2011-05-055-28/+28
|