Jeremy Allison
4f703b84cd
Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Martin Pool
bcb443c5c4
Add two more memory-debug smbcontrol messages: these ones should
...
prompt dmalloc to log information about what happening, so you can see
in flight why smbd is getting bloated.
0001-01-01 00:00:00 +00:00
Martin Pool
5f6feb55d7
FIXME: At the moment, if the user should happen to give the options
...
ahead of the service name (in standard Unix fashion) then smbclient
just spits out the usage message with no explanation of what in
particular was wrong. Is there any reason we can't just parse out the
service name and password after running getopt??
0001-01-01 00:00:00 +00:00
Martin Pool
391cbb6901
Better explanation message for dmalloc.
...
Also more insertion of parenthesis to handle struct members called
'free'.
You can now get useful dmalloc output, as long as it is compatible
with your C library. On RH7.1 it looks like you have to rebuild
dmalloc to allow free(0) by default, because something in libcrypt
does that. (sigh)
0001-01-01 00:00:00 +00:00
Martin Pool
fb8ab69b6f
With --enable-dmalloc, also use dmalloc's wrappers around routines
...
like strcat
0001-01-01 00:00:00 +00:00
Martin Pool
7bbfb29842
Sample configuration for dmalloc.
0001-01-01 00:00:00 +00:00
Martin Pool
b29775d442
Add UNUSED(paramname) macro to be used in parameter lists, to quieten
...
gcc warnings about unused parameters.
0001-01-01 00:00:00 +00:00
Martin Pool
3ef135e91a
Add UNUSED(paramname) macro to be used in parameter lists, to quieten
...
gcc warnings about unused parameters.
msg_pool_usage: assert msg_type is as expected.
0001-01-01 00:00:00 +00:00
Jeremy Allison
3dec9cf99a
When re-writing tdb version numbers as little endian int32, we must
...
change the version number also.
Jeremy.
0001-01-01 00:00:00 +00:00
Martin Pool
a57e13b8b6
Fix macro name controlling inclusion of DMALLOC.
0001-01-01 00:00:00 +00:00
Martin Pool
a823e3f8b2
Add harmless parentheses so that dmalloc doesn't get confused by a
...
variable called 'free'.
0001-01-01 00:00:00 +00:00
Tim Potter
08d2bcef1a
Merge from appliance-head:
...
- put in some level 10 debugs so we can see what internal_resolve_name()
is doing
- remove duplicates from returned ip list of internal_resolve_name()
0001-01-01 00:00:00 +00:00
Tim Potter
24bae9f055
For hysterical raisins you must use string_set() to set the value of a
...
string in the loadparam Globals struct. Using pstrcpy was causing every
NULL string was being set to the name of the winbindd log file. (-:
0001-01-01 00:00:00 +00:00
Jeremy Allison
ec71f1732b
Fixed all uses of tdb_fetch/store/_int to use explicit int32 little endian
...
in tdb's. All except winbindd_idmap.... Hmmmmmm.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
1f12e310e5
HPUX nss fix.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
274b04d4a6
Fixed up atomic update code.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
1233b553e7
Added int32 version of "atomic" update.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d57fb9a8c2
Added int32 versions of the endian-dependent code.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9fb780d951
My previous fix had a bug....
...
This is SO NASTY as some drivers need this to change, others need it
static. This value will change every second, and I must hope that this
is enough..... DON'T CHANGE THIS CODE WITHOUT A TEST MATRIX THE SIZE OF
UTAH !
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
91662683e3
I think I've finally gotten this straighten out in my tree.
...
All should be curent now.
0001-01-01 00:00:00 +00:00
Gerald Carter
241f4a548d
i **really** hate stuck tags in CVS :-( Figured out why
...
my files were not being checked in sometimes.....
cvs update -A
cleared all the sticky tages and now I have to recheck some things in.
j-
0001-01-01 00:00:00 +00:00
Jeremy Allison
012a914412
Getting ready to add winbindd support for HPUX 11.
...
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
789c1defa4
entering placeholders for forthcoming documentation
0001-01-01 00:00:00 +00:00
Jeremy Allison
8e8d718160
Another attempt at getting changeid correct. Jerry / JF please check !
...
This fixes a driver init bug.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d5db2518be
- fixed my breakage of CPPFLAGS
...
- allow winbindd and wbinfo to build without shared libraries
0001-01-01 00:00:00 +00:00
Jeremy Allison
ccf07e2184
Caught one problem where a BOOL fn was returning 3 different values :-).
...
Roll on defined types :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ed5a9a0ee3
Debugs that print out a share mode table in debug level 10. This code
...
enabled me to track down a *nasty* bug.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
10d72f0b01
Added get_called_name() function, which replaces global_myname in printing
...
code (one less global, hurrah !) - to allow NetBIOS aliasing to be used
with point and print.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ee8fd2690a
Return called NetBIOS name if present in preference to global_myname.
...
Should allow print servers to work with NetBIOS aliases.
Needs testing.
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
39d6b31e14
merge changes from 2.2 branch to prevent smb.conf from changing debug level
...
of commands when specified on command line.
0001-01-01 00:00:00 +00:00
Gerald Carter
2fcdc520ce
sync getopt() args with 2.2
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c98158f3f8
- use CFLAGS when linking shared libs (for things like -64 on irix)
...
- don't attempt to build winbindd if we can't do shared libs
0001-01-01 00:00:00 +00:00
Tim Potter
690cc12bad
Sed error. The status value in the PRINTER_INFO_2 structure isn't a WERROR
...
but a plain old uint32.
0001-01-01 00:00:00 +00:00
Tim Potter
7bfd1f35e4
Converted getprinterdriver to WERROR - it always returns dos error 6
...
(invalid handle) though. )-:
0001-01-01 00:00:00 +00:00
Tim Potter
dfcc97a158
Spelling fix.
0001-01-01 00:00:00 +00:00
Tim Potter
caff5dc1d6
Don't log the password in pam_sm_authenticate() unless DEBUG_PASSWORD is
...
defined. This is done with --enable-developer mode.
0001-01-01 00:00:00 +00:00
Gerald Carter
3d4adad150
sync up comments with 2.2
0001-01-01 00:00:00 +00:00
Tim Potter
4efbdda3fc
Converted enumprinters and enumports cmd functions to use WERROR
...
values returned from cli functions. They are converted to NTSTATUS codes
using the error map functions.
Do buffer size loop checks by setting offered = 0 and using the return
value of needed in the next call.
0001-01-01 00:00:00 +00:00
Tim Potter
9d9e7fb74d
Converted enumprinters and enumports cli functions to return WERRORs.
...
Make the offered and needed buffer size into parameters.
0001-01-01 00:00:00 +00:00
Tim Potter
6c42bf2089
Check for winbind separator in user name for cli_session_setup()
...
Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
0001-01-01 00:00:00 +00:00
Tim Potter
248d114f85
spoolss rpc client cleanup:
...
- converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS
- doc
0001-01-01 00:00:00 +00:00
Tim Potter
87bc0a71ec
Define a rpc_client doc group.
0001-01-01 00:00:00 +00:00
Tim Potter
5c8f6be290
Minor doc cleanups.
0001-01-01 00:00:00 +00:00
Tim Potter
f4535721d3
Added a get_dos_error_msg() function to mirror the get_nt_error_msg()
...
One day I'll get around to refactoring the DOS error handling so it mirrors
the NT error handling code.
0001-01-01 00:00:00 +00:00
Tim Potter
950d8e3656
Display nicer message when server name could not be resolved.
0001-01-01 00:00:00 +00:00
Tim Potter
9c968fbb01
DOS error 31 is ERRgeneral, General Failure. This is the WERROR equivalent
...
to NT_STATUS_UNSUCCESSFUL according to AB's funky new error map.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
08a5c5bf94
Get this code back to where it belongs...
...
Apparently (and I will doublecheck) its legal to do an annoymous session setup
when we negoitiated SPNEGO, but we can't do an authenticated one becouse we
didn't give a challange.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
0e564cb32a
Some more SPNEGO fixes.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c6affae4bf
fixed another DATA_BLOB constructor
0001-01-01 00:00:00 +00:00
Andrew Tridgell
08bb2dfec2
simple fix for creating blank data blobs
0001-01-01 00:00:00 +00:00