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
Richard Sharpe
9181ba0c68 Start adding code to allow the in memory version of the registry tree
structure to be manipulated. Keys can be partially deleted now.
0001-01-01 00:00:00 +00:00
Simo Sorce
eb595efa7e it's getting comic ...
yet another missing piece :-O
0001-01-01 00:00:00 +00:00
Simo Sorce
5320d54b90 Uhmm a bad day to commit changes :-(( 0001-01-01 00:00:00 +00:00
Herb Lewis
f3b994326e merge smbtar fixes from 2.2 0001-01-01 00:00:00 +00:00
Simo Sorce
0b2591cc40 oh god, I will forgot my name one of these days :-/ 0001-01-01 00:00:00 +00:00
Simo Sorce
4029dae906 forgont genstruct.pl is needed to build new include files for genparse
sorry
0001-01-01 00:00:00 +00:00
Gerald Carter
e68c7e0ebc fix usage message 0001-01-01 00:00:00 +00:00
Simo Sorce
831d3d1ec7 updates to the gums
introduce genparser will be used by tdbsam2
0001-01-01 00:00:00 +00:00
Richard Sharpe
8686b551cd We now read in the whole of the registry, including security bits.
Still have to make sure that the datastructure is correct, though.

Then on to writing it out and editing/changing keys, values and sec_descriptors
0001-01-01 00:00:00 +00:00
Tim Potter
ab337572b8 Fix fnum leak under error condition in cacl_dump. 0001-01-01 00:00:00 +00:00
Richard Sharpe
330012a4d7 All the code for reading in the registy is done, but I have a malloc'd
area overrun somewhere :-(
0001-01-01 00:00:00 +00:00
Richard Sharpe
eb2f1c826b Almost finished processing the registry encoded SEC DESC ...
Soon to move onto writing these things out.
0001-01-01 00:00:00 +00:00
Richard Sharpe
3564565d33 More code to read in and create security descriptor entries ... 0001-01-01 00:00:00 +00:00
Jeremy Allison
3520195523 Ensure talloc pool query messages are reserved.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
63f344e27b The name pointer in the talloc context must not be a talloced entry as
calling talloc_destroy_pool(as we do sometimes) will destroy it.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
f0fc4e30f6 Store printer guid in the dsspooler registry key so we don't have to
query the directory server every time someone asks
0001-01-01 00:00:00 +00:00
Jeremy Allison
636ab292db Fix for old DOS client when veto files is set to /.*/
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
adda04379e More printer publishing code.
- Add published attribute to info2, needed for win clients to work properly
- Return proper info on getprinter 7

This means you can now look at the sharing tab of a printer and get correct
info about whether it is published or not, and change it.
0001-01-01 00:00:00 +00:00
Richard Sharpe
eca76f2f66 Begin to handle Security descriptors for keys. 0001-01-01 00:00:00 +00:00
Tim Potter
bbb0b2ee40 Guy Harris points out that the level and ptr fields in a
SPOOL_USER_CTR look like they should be transposed.  We don't make use
of the user level information (what is it used for??) so I haven't
changed any code, just added a comment.
0001-01-01 00:00:00 +00:00
Gerald Carter
6b18ca9511 merge of get_dc_name()-like code from APP_HEAD; better support password server = DC1 * 0001-01-01 00:00:00 +00:00
Gerald Carter
a48d8d3f11 ignore editreg 0001-01-01 00:00:00 +00:00
Gerald Carter
8311c4bf8d merge of smbpasswd segfault from SAMBA_2_2 0001-01-01 00:00:00 +00:00
Martin Pool
1e63dc101a CR1333: Fix memory leak when unpacking some structures.
* (pytdbunpack_item): PyList_Append creates an additional reference to
  the appended object.  Therefore, release the initial reference after
  it's added to the list.
0001-01-01 00:00:00 +00:00
Martin Pool
3bb4bd3ed6 * Ignore .pyc and .pyo files produced as a side-effect of running
Python examples.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ac856fbb96 Added "kernel change notify" boolean to allow easier valgrind testing.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ff3a8d3728 Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2d63fc7760 Fix write error returning EFBIG - found by Conrad.
Jeremy.
0001-01-01 00:00:00 +00:00
Richard Sharpe
16e0a3cc08 Fix a small bug. 0001-01-01 00:00:00 +00:00
Richard Sharpe
fbdd850e5a Improve the iterator wrt values ... Now prints keys and value names.
Does not print value values, yet.
0001-01-01 00:00:00 +00:00
Tim Potter
89be695b29 Some more tweaking for compilation of py_tdbpack. 0001-01-01 00:00:00 +00:00
Jeremy Allison
185804ac94 Fix client large file reporting.
Jeremy
0001-01-01 00:00:00 +00:00
Richard Sharpe
f4235ae1e6 Tidy up some bits. We can now at least list all the keys.
More work to do on the iterators and access functions.

Still not King. Stinks really.
0001-01-01 00:00:00 +00:00
Herb Lewis
52fdb787d4 fix broken incremental tar - merge from 2.2
found by "Jacob Anawalt" <anawaltaj@hotmail.com>
0001-01-01 00:00:00 +00:00
Richard Sharpe
5273844a74 Add support to Makefile.in for editreg
Fix a couple of duplicated macros.
0001-01-01 00:00:00 +00:00
Richard Sharpe
6b2943122a Complete more of the code. An iterator is close to complete. Compiles,
but not tested as yet.
0001-01-01 00:00:00 +00:00
Richard Sharpe
8bc6aa72f5 Clean up the code some more. Create more elements of the tree.
Security Descriptors/Keys not yet processed.
Make debugging printfs only occur if verbose is set.
Create an iterator for the registry key.
Still not King. Bother!
0001-01-01 00:00:00 +00:00
Jeremy Allison
aecc9db60a The _abs time functions should not be converting from/to GMT.
Patch from "Jordan Russell" <jr-list-samba-technical@quo.to>
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
e6ae8b4eac finnally put in Alexander parametric pacth 0001-01-01 00:00:00 +00:00
Simo Sorce
6dfa460986 make vfs recycle use vfs facilities correctly!
WARNING: every vfs module maintainer should look at these changes to understand how to properly write a vfs module in head!!

also make installmodules work correctly when the directory structure is not yet in place.

Simo.
0001-01-01 00:00:00 +00:00
Richard Sharpe
8dd608f7ad Handle the creation of more parts of the tree ... Still have to do SK records
and the data parts of the VK records.

Also have to code up routines that can iterate across keys and values, as
well as return values associated with a particular key, etc.
0001-01-01 00:00:00 +00:00
Richard Sharpe
b51bb89841 Start allocating structures to keep the in memory copy of the registry tree
in. Don't yet handle the SK records (security descriptors), but will soon.

It still compiles on Linux, but I am still not King.
0001-01-01 00:00:00 +00:00
Richard Sharpe
0ee49da74d Begin to decode Value Keys, names and values ... 0001-01-01 00:00:00 +00:00
Richard Sharpe
738a821108 Add some more handling of Key records ... 0001-01-01 00:00:00 +00:00
Richard Sharpe
bab2b240ec Commit some more changes ... Start processing the sub-keys, recursively. 0001-01-01 00:00:00 +00:00
Richard Sharpe
63efb7ab2f Fix the breakage, and start processing the first key record:
./editreg ~rsharpe/profile/NTUSER.DAT
NK HDR: Name len: 12, class name len: 0
Key name: $$$PROTO.HIV
0001-01-01 00:00:00 +00:00
Richard Sharpe
481fa87154 A small fix to Makefile.in from Bradley Longhurst.
Less Fir needed.
0001-01-01 00:00:00 +00:00
Richard Sharpe
ee99843861 Define some macros for accessing shorts and ints in an endian independent manner.
Start processing the header and etc.

Make sure it compiles on Linux, and runs on Linux for the code that is there.

Will try FreeBSD soon, and maybe Slowaris.
0001-01-01 00:00:00 +00:00
Richard Sharpe
a4f9b9effc Add definitions of the various NT Registry on-disk structures ... 0001-01-01 00:00:00 +00:00
Richard Sharpe
10bc459dd9 Fix DAT_TIME so it becomes NTTIME and matches Samba source.
Add code to start reading the registry file.
0001-01-01 00:00:00 +00:00
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