1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

9289 Commits

Author SHA1 Message Date
Simo Sorce
8877ff2482 make querygroup in rpcclient working, same fix as per 2.2 tree 0001-01-01 00:00:00 +00:00
Richard Sharpe
92697adcd7 Some more updates ... 0001-01-01 00:00:00 +00:00
Richard Sharpe
b9cb3e6f2a The beginnings of a registry editing program. 0001-01-01 00:00:00 +00:00
Jeremy Allison
7185b846e4 Ensure global_scope() returns "", not the NULL string. Froma tpot fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
631d606698 Fix debugs for rap mapping. Delete job on map fail.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
82f3a786bf More printer data to publish 0001-01-01 00:00:00 +00:00
Jim McDonough
1426a5ca4f Add some const 0001-01-01 00:00:00 +00:00
Jeremy Allison
15f0bad1fc The element in fsp->print_job should be a RAP jobid, not a uint32 RPC
jobid. This was causing Win9x client "set name" calls to fail.
Still need one cleanup fix to finish.
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
c53e10ff87 fix stat reporting on put command 0001-01-01 00:00:00 +00:00
Tim Potter
18afae7b7a Rerun configure. 0001-01-01 00:00:00 +00:00
Tim Potter
2a9d183cf6 Remove FILE_MACRO as __FILE__ is ANSI C. 0001-01-01 00:00:00 +00:00
Tim Potter
739285ff69 FUNCTION_MACRO change broke the Python modules.
Also fix up string pasting (I thought this should only be a warning?)
0001-01-01 00:00:00 +00:00
Jeremy Allison
2fe7504a08 Added Volker's directory fix - save the attributes
from the first call.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
4fc602fd7d More attributes to publish. All DsSpooler attributes except REG_MULTI_SZ ones should be published now. 0001-01-01 00:00:00 +00:00
Jeremy Allison
a2ab78d68d Janitor for tpot yet again... Merging in memory leak fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
974822526f change_trust_account_password() must always use the PDC for rpc
password changes.

jerry
0001-01-01 00:00:00 +00:00
Jeremy Allison
9cf56dc977 Make sure we have a default st_blocksize.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
f978387e78 cleaning up some friendly error messages 0001-01-01 00:00:00 +00:00
Gerald Carter
157b5ab198 [merge] remove assert(count ==1) for multi-homed PDCs; CR 1277 0001-01-01 00:00:00 +00:00
Jeremy Allison
51c2cf3a9c Need brackets around macro args. Spotted by Patrick Welche <prlw1@newn.cam.ac.uk>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c6da50def8 Doing janitorial duty for tpot - memory leak fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
bbd7c8071a Automatic printer publishing when using APW or choosing 'list in the directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients. 0001-01-01 00:00:00 +00:00
Jeremy Allison
9cfa245bba Missed the removal of the incorrect ifdef.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4a9c995e50 Fix for 64 bit issues with oplocks and allocation size.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
81be3a1429 THIS FILE IS NOT OBSOLETE JELMER. DO NOT REMOVE ! Removing it breaks
autoconf 2.13.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
42a2e7d701 [merge from app_head]
XP sends GetPrinterData("ChangeId"). So we now respond accordingly.
Possible fix for CR 1147.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d41858b9e6 Reformat of reply.c before Volker's patch.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
aa496524cc Rerun autoconf. 0001-01-01 00:00:00 +00:00
Tim Potter
5739ee4e63 Defaulting python breaks the clean target it python isn't installed. 0001-01-01 00:00:00 +00:00
Herb Lewis
243763d6eb use FILE_MACRO instead of __FILE__
use FUNCTION_MACRO instead of __FUNCTION_
0001-01-01 00:00:00 +00:00
Herb Lewis
ce7d421ba9 use the new IVAL_TO_SMB_OFF_T for file_info size member
dir now shows correct size on large files
0001-01-01 00:00:00 +00:00
Jim McDonough
3c9726454e Support printer info 7, used for publishing 0001-01-01 00:00:00 +00:00
Jim McDonough
ca8735532c Stop using hardcoded key/value strings, be more forgiving of dsspooler/dsdriver info existence. 0001-01-01 00:00:00 +00:00
Jim McDonough
1d0086aadb Stop using hacks for dns host/domain names. 0001-01-01 00:00:00 +00:00
Jim McDonough
456813308d fns for retrieving dns host name and domain name (get rid of lp_realm hacks). 0001-01-01 00:00:00 +00:00
Jim McDonough
2b152addf4 Add defines for standard DsSpooler/DsDriver values that get published. 0001-01-01 00:00:00 +00:00
Jim McDonough
1bf36d3fc6 Don't segfault when trying to delete a key when none exist. 0001-01-01 00:00:00 +00:00
Jeremy Allison
fc7d3faed7 Fixed nasty bug where file writes with start offsets in the range
0x80000000 -> 0xFFFFFFFF would fail as they were being cast
from IVAL (uint32) to SMB_OFF_T (off_t or off64_t, both *signed* types).
The sign extension would cause the offset to be treated as negative.
Thanks to Herb for helping me track this one down (IRIX is good for large
file tests :-).
Jeremy.
PS. That horrid EXEXIST thing has broken configure.....
0001-01-01 00:00:00 +00:00
Tim Potter
8c306804c6 Fixes for EXEEXT - must use \$ signs when you want an actual $ sign to
be used.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
323088259f As per Jeremy's request back this out, so as to re-gain the implicit length
check.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
49d9698ef0 Link less with smbmnt and smbumount. Also change from a pstrcpy() to a
strncpy() to make it clear that we must operate on a PATH_MAX sized buffer.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b072bb9c84 No need for fstring manipulation here (Tcon&X), just use string pointers.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
13b9af53bf Remove extra headers, and ensure that we correctly bail out of winbindd if we
can't create the socket.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
ea18d02036 Dereference the correct thing here, so we don't segfault 0001-01-01 00:00:00 +00:00
Andrew Bartlett
7d099e9a5b Make it clear that we might not be talking to a PDC here. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
281b713b12 POSIX indicates that this is always in network byte order, so we don't need the
little-endian case (tested on Intel-linux).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
3f5608c7e0 Patch from Paul Green to detect exe extensions, needed for Stratus VOS.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
7ba051a830 Fixup of ordered cleanup of get_dc_list - bug found by Dominik 'Aeneas' Schnitzer <dominik@schnitzer.at>
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
25bbd0d1f9 Ignore ntlm_auth binary. 0001-01-01 00:00:00 +00:00
Tim Potter
191c1596f5 Fixed silly bug. 0001-01-01 00:00:00 +00:00
Tim Potter
d9644ea3ed Rerun autoconf. 0001-01-01 00:00:00 +00:00
Tim Potter
f5fa4801ce Fix up smbwrapper target. 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
5b4d03fc85 merge in some changes from metze's patches (rest follows later, after
some issues in the new module system have been resolved)
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
3d0735e6b0 Add PDBLIBDIR, just like VFSLIBDIR 0001-01-01 00:00:00 +00:00
Jeremy Allison
6639693746 Fix comment - 850 -> iso8859-1
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e88bbec2a0 Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
1a36ac60be Test was reversed for ERRmoredata in cli_read.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
1cf0cfa1b7 merging changes from SAMBA_3_0 relating to RPM packaging 0001-01-01 00:00:00 +00:00
Gerald Carter
08ac3610f9 removing inet_aton() 0001-01-01 00:00:00 +00:00
Gerald Carter
481a8a8aa9 fix cli_ds_getprimarydominfo(); merge from SAMBA_3_0 0001-01-01 00:00:00 +00:00
Andrew Bartlett
e4be82e4e2 After consultation with tpot, remove the 'winbind_domain' environment
variable hack, the feild on the pipe, and the server-side.

It only controlled some enum operations in any case.

This is to try and have less 'magic' environment variables.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
47f3bfe956 Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code.

This uses gencache, mimir's new caching code that stores at text-based cache
of various data.

Mimir has done a *lot* of work on this patch, and it is finally time to
get it in CVS.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
256d8c27cd [print notify fixes from APP_HEAD]
* fixing change notify on print server handle
 * adding change notify support into smbcontrol for sending comment
   changes, etc...

All part of CR 1159/1160
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
9084002709 Regenerate with newer autoconf 0001-01-01 00:00:00 +00:00
Andrew Bartlett
7e846e7387 Instead of walking the entire group database, grabbing all members of each
group, testing for membership etc, use the already calculated NT_USER_TOKEN.

(which is initgroups() based)

So far we only fill out the 'domain' groups - we need to fill out the
'other sids' as well, and we possibly need to filter the list for 'domain
groups' only (the old code did that), but Win2k doesn't seem to mind
this for now.

I also need to find out what the magic '7' is about.  Fortunetly JF is in town,
so I'll grill him tomorrow :-).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
be90650674 Make lp_winbind_separator a const string. 0001-01-01 00:00:00 +00:00
Tim Potter
93306f581e Fix some argument checking bugs found by testsuite. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
71e24d0200 Add support to switch between Squid 2.4 and 2.5 protocols - squid doesn't
encode the username, so don't decode it (users could play HTTP escaping games
on usernames).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
5b1185b4e8 Move from NT_STATUS_UNSUCCESSFUL to NT_STATUS_NO_SUCH_USER, and other slightly
more useful error codes.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
9bac0b7277 Try to twiddle with the makefile to avoid having a trailing \ when we
don't build any extra programs.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
ce1464fb1c Remove silly ideas about taking the LM or NT hash as a password in pam_smbpass.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b3049bb0d0 No need to #include smb.h, when we already #include include.h 0001-01-01 00:00:00 +00:00
Andrew Bartlett
82dbf83887 Add ntlm_auth, a new program to provide a stable interface to winbind's
authentication code.

In particular, ntlm_auth is designed to replace the winbind authentication
'helpers' currently supplied by Squid.  I have added support for the current
plaintext password protocol used by Squid, and will add the real guts (NTLMSSP
support) shortly.

I'll merge this into 3.0 when I've got the interface more stable (error message
format etc) and got the important NTLMSSP support added.

Also move SWAT's URL decoding code into util_str.c, for use in both utilities.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
c31a17889e [merge from APP_HEAD]
90% fix for CR 1076.  The password server parameter will no take things
like

        password server = DC1 *

which means to contact DC1 first and the go to auto lookup if it
fails.


jerry
0001-01-01 00:00:00 +00:00
Andrew Tridgell
6efdd54d06 a working timegm() function for systems that don't have it 0001-01-01 00:00:00 +00:00
Jeremy Allison
41b56d975b Please compile with :
-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
if you're using gcc. It really does help !
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
19f86f1f72 Lots of fixes for error paths where tdb_fetch() data need freeing.
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
0ac3af1a27 jcmd really should run with a higher compiler warning level more often :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
7b982ad962 Rerun autoconf. 0001-01-01 00:00:00 +00:00
Tim Potter
d6dfe3ea69 Here's a bit of a cleanup of the {configure,Makefile}.in files. I've
now combined all the ad-hoc AC_SUBST variables into three generalised
ones:

  EXTRA_BIN_PROGS 	Additional programs to install in ${prefix}/sbin
  EXTRA_SBIN_PROGS 	Additional programs to install in ${prefix}/bin
  EXTRA_ALL_TARGETS     Additional targets to build by default
  SHLIB_PROGS           Shared library objects (pam, winbind) to build

We also build some extra stuff by default: the python extensions (if
--with-python specified), smbmount related binaries (if
--with-smbmount specified), and the samba torture suite.

The idea behind this is to have everything that is configured built by
default to detect breakage as soon as possible when people make low
level changes.
0001-01-01 00:00:00 +00:00
Tim Potter
6f1d48555f Added some extra code to test absence/presence of LM and NT passwords. 0001-01-01 00:00:00 +00:00
Tim Potter
9e871cc256 Fixed some compiler warnings. 0001-01-01 00:00:00 +00:00
Tim Potter
4580e16908 Fixed some globals that escaped the recent globalcide. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
ab812ada56 Add support for 'restrict anonymous=2' and make the doco give a slight hint
as to what it now does in 3.0.  Needs more work, but better than documenting
the old functionality :-).

As the security benifits of this are nullified by a setting of 'guest ok' on
any share, we might want to put some documentation there too.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Martin Pool
ff1244c457 Add support for new 'F' format, which is a string in the default
codepage.
0001-01-01 00:00:00 +00:00
Martin Pool
47c5c2209e If you don't specify --with-python, we assume "python" anyhow, because
the extensions are not built until you specifically "make python_ext".
0001-01-01 00:00:00 +00:00
Jim McDonough
929874d274 get_nt_error_msg from APPLIANCE_HEAD is called nt_errstr in HEAD. This should fix the build. 0001-01-01 00:00:00 +00:00
Gerald Carter
3ea73f158e merge get_friendly_nt_err_msg() from app_head 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d076823c73 fixed a number of places where we can try to free a wild pointer or
look for the record count after an invalid search. This fixes a segv
in ldapsam
0001-01-01 00:00:00 +00:00
Tim Potter
43cd6e5a70 Spelling fix. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ea3787d819 more %U fixes for head 0001-01-01 00:00:00 +00:00
Andrew Tridgell
9ead4fc3c3 a better for for using %U in smb.conf
this follows the method used for remote_machine and also fixes the
problem of anonymous connections clobbering the string
0001-01-01 00:00:00 +00:00
Jeremy Allison
801b87e0f7 Very curious. It turns out attribute matching on truncate only matters
when opening truncate with current SYSTEM|HIDDEN -> NONE. It's fine to
truncate on open with current NONE -> SYSTEM | HIDDEN.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
e643003dd4 Merge from appliance:
>Fix memory leak in cli_ds_getprimarydominfo()
0001-01-01 00:00:00 +00:00
Tim Potter
9f9347bc03 Fix typo in docstring. 0001-01-01 00:00:00 +00:00
Jeremy Allison
657aa857a5 Added HIDDEN/NORMAL attribute test.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
2beebe252f Bug fix from appliance - we must initialise the winbindd server state
before reading smb.conf parameters, not after.
0001-01-01 00:00:00 +00:00
Jim McDonough
a148e4c290 Don't pass a function to ADS_ERR_OK(). 0001-01-01 00:00:00 +00:00
Jim McDonough
c03d6198f2 Revert ADS_ERR_OK change. Some compilers didn't like it.
The problem is that ADS_ERR_OK() run on a function that returns an ADS_STATUS
causes the function to be run mulitple times...so you have to return a status,
then check it with the macro.
0001-01-01 00:00:00 +00:00
Jim McDonough
6b51934616 Back out some goofs that accidentally checked in with printer publishing. 0001-01-01 00:00:00 +00:00
Jim McDonough
64951938cc Next step of printer publishing.
net ads printer publish <printername> [servername]
Will retreive the DsSpooler and DsDriver info by rpc for a remote server
then publish it.

Next comes doing it within smbd
0001-01-01 00:00:00 +00:00
Gerald Carter
6ce20a61a8 formatting fix 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d664e6b4d2 the change in the way %U is handled to use current_user has broken
some basic usages like 'include = smb.conf.%U'

This changes fixes things again, by checking for reload after we setup
current_user in tconx.
0001-01-01 00:00:00 +00:00
Tim Potter
d813997c5a Renamed uuid_to_string() to guid_to_string() to avoid conflict with OSF DEC
headers.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
efa639c5ce Remove the assumption that all Solaris has -lsendfile.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
cc7566ca50 Add samdump and vampire to 'net rpc help'
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
0e87408eb0 Add const to PACKS() 0001-01-01 00:00:00 +00:00
Andrew Bartlett
f5d8afc626 Include the hostname we are trying to match with $@, to allow easier debugging. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
e6d2debaf6 Small auth updates:
- add static remove unnneded prototype
 - move become_root() to just around pdb calls, so as to make it easier to
remove when we kill off this silly idea
 - Change auth_sam to do 'account before password' rather than 'password before
account'.  This means that we match Win2k in giving 'account disabled' instead
of 'wrong password' if the wrong password to a disabled account is used.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
2fd47d0c25 patch from aedil@alchar.org to correctly detect solaris workshop CC's ability
to build shared libs (but not with .po suffix).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
507ff510e7 Fix from "Stefan (metze) Metzmacher" <metze@metzemix.de> for nmbd 1c group
release.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
32ca3afa54 fix segfault 0001-01-01 00:00:00 +00:00
Gerald Carter
3ac98b5963 enable enumeration of domain local groups using LDAP (and in a native mode domain) 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
7b860414b1 Rename pdb_mysql and pdb_xml to 'mysql' and 'xml' 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
2addbaff35 Use smb_register_passdb() - plus some small fixes 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b5b3b2e6be Add smb_register_passdb() 0001-01-01 00:00:00 +00:00
Andrew Bartlett
32684e133f Rerun autoconf 0001-01-01 00:00:00 +00:00
Andrew Bartlett
9d8aa4bd51 When testing for /usr/include/heimdal, don't include /usr/heimdal/include
instead :-)
0001-01-01 00:00:00 +00:00
Andrew Bartlett
43020bb4e6 Add const to DEBUG() macro. 0001-01-01 00:00:00 +00:00
Tim Potter
a59f731256 A cool idea from mbp: create a big shared library of all Samba objects
which we can use to link against Samba unit test programs.  Now we can
compile and link unit tests without having to create 4MB executables
for each program

It's called libbigballofmud.so both to discourage casual usage and
also to reflect what the dependencies within Samba have become.
0001-01-01 00:00:00 +00:00
Tim Potter
fdce4be719 A cool idea from mbp: create a big shared library of all Samba objects
which we can use to link against Samba unit test programs.  Now we can
compile and link unit tests without having to create 4MB executables
for each program

It's called libbigballofmud.so both to discourage casual usage and
also to reflect what the dependencies within Samba have become.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
f6ef18df11 Remove the #ifdef's for NISPLUS_SAM - there are no function name collisions anymore 0001-01-01 00:00:00 +00:00
Tim Potter
85946731dd Quieten status message when linking libsmbclient.so 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
5f16343e0d small patch to makesure we fallback to <xfs/xqm.h> if <linux/xqm.h> doesn't exist (e.g. in SuSE 8.1) (by metze) 0001-01-01 00:00:00 +00:00
Jeremy Allison
6ab12ca80d Fix smbwrapper from the global_* changes.
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
c656e7dce9 Add installmodules and uninstallmodules targets 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
d777bba508 Remove obsolete scripts and put in module install/uninstall 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
2134e3b897 Add debug2html and *.so 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
afbff33eba Move 'weird' character set into new 'developer' module 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
77afa4f167 Load modules in lp_modules() after fork() 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
344d8e521f add lp_modules() 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
0855e5810a Don't crash when there are no arguments specified 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
612ea35ab0 Add a DEBUG() that gives the number of successfully loaded modules - useful for debugging 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
018a44055d Only add modules/pdb_xml.so and modules/pdb_mysql.so to the 'modules' target if
the libs they depend on are available
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
98cb778cb7 Don't build Makefile.in in examples/VFS/ 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
4c05cbbe74 Add make target 'modules' that currently builds vfs_audit, vfs_recycle and vfs_netatalk 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
14b129e301 Move working VFS modules to source/modules/ 0001-01-01 00:00:00 +00:00
Andrew Bartlett
e424b08050 Try to bring libsmbclient in line with the new global_myname stuff 0001-01-01 00:00:00 +00:00
Andrew Bartlett
6da20cd763 Undo the new --enable-developer flags that caused breakage on gcc != 3.2, and
rerun autoconf
0001-01-01 00:00:00 +00:00
Jeremy Allison
e57853000a Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
to ensure the malloc is done.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
5170a9f7ff Bring smbmount.c in line with jra's global-cide. global_scope was used here... 0001-01-01 00:00:00 +00:00
Andrew Bartlett
1dbc9eff14 - Add some more warning flags for --enable-developer.
- patch from SUSE for hiemdal headers in /usr/include/heimdal
0001-01-01 00:00:00 +00:00
Jeremy Allison
82b8f749a3 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Martin Pool
8cbaea2afa Rename unpack_* functions to be consistent
Decode CP850 strings when unpacking

Add variable giving default encoding name
0001-01-01 00:00:00 +00:00
Martin Pool
e62baf3a76 Rename pytdbpack_unpack -> pytdbunpack 0001-01-01 00:00:00 +00:00
Martin Pool
7863c948b7 Just reorder functions to put related ones together 0001-01-01 00:00:00 +00:00
Martin Pool
001779dffd Remove dead code for packing buffers which has now been reimplemented. 0001-01-01 00:00:00 +00:00
Martin Pool
62ca27d140 Remove dead code for packing buffers which has now been reimplemented. 0001-01-01 00:00:00 +00:00
Martin Pool
4a18526257 Remove non-integer Pointer values, which are no longer supported. 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
5191719eee Don't throw out WEIRD - yet (I committed my local changes together with my last fix. D'oh!) 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
a20676bc05 Fix segfault with high debug levels 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
8b65465875 Add smb_register_charset() and use it 0001-01-01 00:00:00 +00:00
Jeremy Allison
205e8f0301 Fix all returns to be size_t (they are all unsigned). Fixup strlen being
done on ucs2 strings.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
c6d45216f6 fix for CR 601. Only call addprinter command when the port, driver, comment, or location field changed 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
21530f06b2 More improvement of DEBUG output 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
79207d5692 Add extra debug info 0001-01-01 00:00:00 +00:00
Jim McDonough
101727335f Add getdata and getdataex commands 0001-01-01 00:00:00 +00:00
Simo Sorce
1645567db3 union is better to avoid problems with pointers 0001-01-01 00:00:00 +00:00
Jeremy Allison
940b04ddfa First cut of fix for changenotify on a print server handle. Use the connections tdb
with an snum of -1 and a special printername.
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
f4110a0f80 Print the number of returned rows, not the number of fields 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
ba34be7033 Add $(POPT_LIB_OBJ) to PROTO_OBJ 0001-01-01 00:00:00 +00:00
Simo Sorce
80086728f2 consolidate error mapping functions into a single file 0001-01-01 00:00:00 +00:00
Jeremy Allison
c206643baa Fix for scalable printing noticed by tpot. Don't loop infinately
when holding a mutex.... :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
20c1cd86ac make sure we don't try to decode any null password buffers during a
SAM sync. This copes with both unset passwords from NT4 DCs and the
null passwords you get from w2k domains.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
69dba08c40 make sure that if kerberos fails we can fall back on NTLMSSP for SASL 0001-01-01 00:00:00 +00:00
Andrew Bartlett
7501b2a518 Kill append_log from smbmount (thanks vance for reminding me).
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jim McDonough
9fc12e6cb2 Add net help join text, from Steve Langasek.
Also update the other commands to his correct example of [<method>], since
it is optional.

Thanks, Steve.
0001-01-01 00:00:00 +00:00
Gerald Carter
f20de1f9b0 deldriver fix 0001-01-01 00:00:00 +00:00
Gerald Carter
e87829b494 re-enable ffpcn on print server handle 0001-01-01 00:00:00 +00:00
Gerald Carter
d422a51b3a remove accidental debug code.. 0001-01-01 00:00:00 +00:00
Jeremy Allison
90ac8184a0 Fix bug found by tpot with given password server.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
064fa201ab Add chainlock_read functions to get a read lock. Used in *massively*
contended tdb's (and I've got one :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
e6837a8560 Fix bug where not specifying '-S PDC' in 'net join' would cause it to attempt
to contact a random IP address.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Martin Pool
2480d385db Rewrite all the packing stuff so that it converts 'f' strings to CP850
on encoding.  (Tough luck if your Samba codepage is not 850.)  It's
much cleaner and possibly more efficient now too: just build one big
list of strings, then zip it up at the end.

Still need to do this for unpacking.
0001-01-01 00:00:00 +00:00
Gerald Carter
488e985caa defunct winbindd fix from APP_HEAD 0001-01-01 00:00:00 +00:00
Andrew Bartlett
81633064dd Compleatly remove support for logfile truncation. All logs are opened for
append writes.

(blessed by jra)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
205209f77f Make smbpasswd use the group mapping, and fix spelling in ldapsam.
This gets user mangler for doamins working again.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
62ee7b7dc0 Make it easier to track things down here - add some debugs on failure. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
a066bed5a4 Make smbpasswd tell people to use 'net join', not 'net rpc join' now we have
the automagic detection.
0001-01-01 00:00:00 +00:00
Jim McDonough
6d1d2849a7 Add enumdataex command 0001-01-01 00:00:00 +00:00
Jim McDonough
a22fdf26fe Implement enumdata command 0001-01-01 00:00:00 +00:00
Jim McDonough
a2e17d4344 Add enumkey command (EnumPrinterKey api) 0001-01-01 00:00:00 +00:00
Gerald Carter
da269a73ed patches from Urban 0001-01-01 00:00:00 +00:00
Tim Potter
0fa87a68fe Don't set global_machine_password_needs_changing if
lp_machine_password_timeout() is set to zero.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9b08b4e4c2 Fix crash bug with overwriting memory.
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
2fd496b49f Make append_log work again 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
d7388b3e1e Back out lp_modules() check - this one got in by accident when I added poptSetOtherOptions 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
3c39bd9db0 Fix small typo 0001-01-01 00:00:00 +00:00
Jim McDonough
1fd6d34526 What is wrong with you, Jim? Check in the final version, not an interim one... 0001-01-01 00:00:00 +00:00
Jim McDonough
163ac34401 Fix the build.
Build farm! Build farm!  Please check the build farm!

...or at least run make torture.
0001-01-01 00:00:00 +00:00
Jim McDonough
d423e6424b Allow multiple fragment RPC's to be sent. 0001-01-01 00:00:00 +00:00
Jim McDonough
ec0d94b4dd Stop using hardcoded transact commands 0001-01-01 00:00:00 +00:00
Jim McDonough
759bcd881d Add smbtrans subcommands so we can stop hardcoding them 0001-01-01 00:00:00 +00:00
Tim Potter
f0a1177acf Remove lp_security() checks for winbindd as this is how we act as a PDC.
Keep the rest of the cleanups though.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ceb01b5ab1 Keeping branches in sync....
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1526b3b19e fixed some formatting errors and improved some debug statements in
'net rpc vampire'
0001-01-01 00:00:00 +00:00
Andrew Tridgell
fb79fa5a31 when doing a 'net rpc vampire' a pdb_init_sam_pw() is used to create a
sam account object, then pdb_update_sam_account() can be used to
update an account. This code path could lead to the methods element of
the account being used when uninitialised (leading to a segv)

Easiest fix is to always make that that when creating a sam_account
object we initialise the methods to null, so that the passdb code
knows that it needs to be filled in.
0001-01-01 00:00:00 +00:00
Jeremy Allison
10024ed06e Merge of scalable printing code fix... Needs testing.
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
8a6d377521 Call winbindd_param_init() earlier on in the piece so we don't get stuck in
the holding pattern when started up when security = user or security = ads.

Clean up return value of winbindd_common_init() - what a mess!
0001-01-01 00:00:00 +00:00
Tim Potter
28871bb696 For a BUFFER5, don't parse the buffer if the buffer length is zero. 0001-01-01 00:00:00 +00:00