1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
Commit Graph

6585 Commits

Author SHA1 Message Date
Herb Lewis
969d1dd468 added structure members referred to by recent changes in vfs-wrap.c
(This used to be commit c5e14d73df)
2002-01-10 19:40:40 +00:00
Herb Lewis
e87d94d46d merge tpots name changes into IRIX part of code. When you change the name
of a define you need to grep for the old name and change ALL places.
(This used to be commit 09e3276fb7)
2002-01-10 18:49:37 +00:00
Andrew Bartlett
7d6dd0b3a0 Return the winbind separator over the socket, so programs don't have to parse
smb.conf to get it right.

While wb_client needs its lp_load() for samba dependency reasons, it now uses
the new method both to example and test the new code.

Also add an interface version function, and return the winbind's samba version
string.

In preperation for default domains, its now up to winbindd to reject plaintext
auths that don't have a seperator, but NTLM (CRAP) auths now have two feilds,
hence need parsing.

Andrew Bartlett
(This used to be commit 2bd2a092ee)
2002-01-10 11:28:14 +00:00
Andrew Bartlett
cf00e41421 This changes the winbind protcol a bit:
It adds a 'ping' request, just to check winbind is in fact alive

It also changes winbindd_pam_auth_crap to take usernames and domain seperatly.

(backward incompatible change, needs merge to 2.2, but this is not yet released
code, so no workarounds)

Finally, it adds some debugs and fixes a few memory leaks (uses talloc to do
it).

Andrew Bartlett
(This used to be commit 6df29bfe33)
2002-01-10 10:23:54 +00:00
Martin Pool
692215e485 Quieten warning about uninitialized variable.
(This used to be commit 63ea2bb0ad)
2002-01-10 06:32:01 +00:00
Tim Potter
610f530aee A big tidyup while thinking about getting trusted domains being re-read
when they are added or removed on the PDC.

 - renamed GETPWNAM_FROM_{UID,USER} constants and functions to GETPW{NAM,UID}

 - renamed GETGRNAM_FROM_{GID,GROUP} constants and functions to GETGR{NAM,GID}

 - use SIGUSR2 in winbindd for debugging/logging instead of SIGUSR1 in
   preparation for moving to smbcontrol type messages (not sure whether to
   ditch this altogether or not)

 - tidy debugging messages in top level winbind user and group routines

 - convert talloc_init() to talloc_init_named()

 - make enumerations of the domain list use the same local variable names
(This used to be commit eeb8af9c1a)
2002-01-10 06:20:03 +00:00
Tim Potter
cd1ad031a6 Spelling fix.
(This used to be commit 85d3ffb270)
2002-01-10 06:05:37 +00:00
Martin Pool
b8b7ab052a browse_fn: FIXME: If the remote machine returns non-ascii characters
in any of these fields, they can corrupt the output.  We
	   should remove them.
(This used to be commit 934aacdb39)
2002-01-10 03:53:06 +00:00
Jeremy Allison
a36c10bd1e First part of UNIX extensions (#ifdefed out) more to follow.
Jeremy.
(This used to be commit 02b18f2cca)
2002-01-10 02:41:15 +00:00
Jeremy Allison
fd56ebd54f Oh joy - the original code didn't do mapping of the perms onto the wire.
Make it up as we go along... :-).
Jeremy.
(This used to be commit 4289fe3499)
2002-01-10 02:18:08 +00:00
Jeremy Allison
f069a41c85 Ensure this is committed last.
Jeremy.
(This used to be commit 2591361fa8)
2002-01-10 01:49:22 +00:00
Jeremy Allison
09571aa76d We need to test for major/minor macros.
Jeremy.
(This used to be commit ee8c8add7f)
2002-01-10 01:49:09 +00:00
Tim Potter
87db7c557b Although configure.in and configure were checked in at the same time
I think configure.in just beat it to the repository so the timestamp of
configure.in is newer than configure.  )-:
(This used to be commit ee0a6f8d26)
2002-01-10 01:32:57 +00:00
Jeremy Allison
3454945146 Getting ready to add UNIX extensions in HEAD also.
Jeremy
(This used to be commit 6210d4aa19)
2002-01-10 00:28:09 +00:00
Jeremy Allison
3375267106 Added tests for st_blocks in struct stat, and added a (hateful) constant
the specifies the units that st_blocks is in. The reason for this is
that HPUX uses 8k, AIX uses a #defined constant and everyone else (tm)
uses 512 byte units.
Needed for the CIFS UNIX extensions - coming to a Samba server near
you soon.... :-).
Jeremy.
(This used to be commit 38cfffea5f)
2002-01-09 21:30:37 +00:00
Jeremy Allison
ca2558ff34 Fixed typo.
Jeremy.
(This used to be commit a99e0cec1e)
2002-01-09 20:48:18 +00:00
Jeremy Allison
d3e9213af7 Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace.
Jeremy.
(This used to be commit 4f703b84cd)
2002-01-09 18:26:39 +00:00
Martin Pool
6c7050ea95 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.
(This used to be commit bcb443c5c4)
2002-01-09 08:27:15 +00:00
Martin Pool
a56f0e93ea 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??
(This used to be commit 5f6feb55d7)
2002-01-09 08:17:12 +00:00
Martin Pool
f5bc0e92a6 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)
(This used to be commit 391cbb6901)
2002-01-09 07:52:51 +00:00
Martin Pool
a8389eaeb5 With --enable-dmalloc, also use dmalloc's wrappers around routines
like strcat
(This used to be commit fb8ab69b6f)
2002-01-09 06:38:22 +00:00
Martin Pool
8079930620 Sample configuration for dmalloc.
(This used to be commit 7bbfb29842)
2002-01-09 06:35:45 +00:00
Martin Pool
bb21af13e3 Add UNUSED(paramname) macro to be used in parameter lists, to quieten
gcc warnings about unused parameters.
(This used to be commit b29775d442)
2002-01-09 05:27:59 +00:00
Martin Pool
e4bf9af03c 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.
(This used to be commit 3ef135e91a)
2002-01-09 05:27:27 +00:00
Jeremy Allison
a842a3d458 When re-writing tdb version numbers as little endian int32, we must
change the version number also.
Jeremy.
(This used to be commit 3dec9cf99a)
2002-01-09 05:24:07 +00:00
Martin Pool
abc6e70ca4 Fix macro name controlling inclusion of DMALLOC.
(This used to be commit a57e13b8b6)
2002-01-09 05:10:47 +00:00
Martin Pool
0e0c24b40d Add harmless parentheses so that dmalloc doesn't get confused by a
variable called 'free'.
(This used to be commit a823e3f8b2)
2002-01-09 05:09:44 +00:00
Tim Potter
d42fc03e9b 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()
(This used to be commit 08d2bcef1a)
2002-01-09 04:26:41 +00:00
Tim Potter
bf22d9cca8 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.  (-:
(This used to be commit 24bae9f055)
2002-01-09 04:17:24 +00:00
Jeremy Allison
91536cc901 Fixed all uses of tdb_fetch/store/_int to use explicit int32 little endian
in tdb's. All except winbindd_idmap.... Hmmmmmm.
Jeremy.
(This used to be commit ec71f1732b)
2002-01-09 04:13:30 +00:00
Jeremy Allison
0a3f6b9b48 HPUX nss fix.
Jeremy.
(This used to be commit 1f12e310e5)
2002-01-09 03:38:31 +00:00
Jeremy Allison
d2687a00e1 Fixed up atomic update code.
Jeremy.
(This used to be commit 274b04d4a6)
2002-01-09 02:35:08 +00:00
Jeremy Allison
af85c2f062 Added int32 version of "atomic" update.
Jeremy.
(This used to be commit 1233b553e7)
2002-01-09 01:53:19 +00:00
Jeremy Allison
b6f4f3465f Added int32 versions of the endian-dependent code.
Jeremy.
(This used to be commit d57fb9a8c2)
2002-01-09 01:32:17 +00:00
Jeremy Allison
eca00cab66 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.
(This used to be commit 9fb780d951)
2002-01-08 23:50:14 +00:00
Jeremy Allison
9178f89200 Getting ready to add winbindd support for HPUX 11.
Jeremy.
(This used to be commit 012a914412)
2002-01-08 21:11:25 +00:00
Jeremy Allison
bbc42672a2 Another attempt at getting changeid correct. Jerry / JF please check !
This fixes a driver init bug.
Jeremy.
(This used to be commit 8e8d718160)
2002-01-08 05:39:27 +00:00
Andrew Tridgell
1803e9cc0f - fixed my breakage of CPPFLAGS
- allow winbindd and wbinfo to build without shared libraries
(This used to be commit d5db2518be)
2002-01-08 04:44:15 +00:00
Jeremy Allison
b19ec04f52 Caught one problem where a BOOL fn was returning 3 different values :-).
Roll on defined types :-).
Jeremy.
(This used to be commit ccf07e2184)
2002-01-08 01:22:23 +00:00
Jeremy Allison
c1efcac59c Debugs that print out a share mode table in debug level 10. This code
enabled me to track down a *nasty* bug.
Jeremy.
(This used to be commit ed5a9a0ee3)
2002-01-08 00:52:36 +00:00
Jeremy Allison
4702494dce 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.
(This used to be commit 10d72f0b01)
2002-01-08 00:46:56 +00:00
Jeremy Allison
43b27771f5 Return called NetBIOS name if present in preference to global_myname.
Should allow print servers to work with NetBIOS aliases.
Needs testing.
Jeremy.
(This used to be commit ee8fd2690a)
2002-01-07 22:58:20 +00:00
Herb Lewis
f1256e847e merge changes from 2.2 branch to prevent smb.conf from changing debug level
of commands when specified on command line.
(This used to be commit 39d6b31e14)
2002-01-07 21:32:22 +00:00
Gerald Carter
bff833e76a sync getopt() args with 2.2
(This used to be commit 2fcdc520ce)
2002-01-07 14:17:49 +00:00
Andrew Tridgell
6c14b8c387 - 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
(This used to be commit c98158f3f8)
2002-01-07 11:42:12 +00:00
Tim Potter
17729f5dc5 Sed error. The status value in the PRINTER_INFO_2 structure isn't a WERROR
but a plain old uint32.
(This used to be commit 690cc12bad)
2002-01-07 06:13:40 +00:00
Tim Potter
9a02c6b4e8 Converted getprinterdriver to WERROR - it always returns dos error 6
(invalid handle) though.  )-:
(This used to be commit 7bfd1f35e4)
2002-01-07 03:33:46 +00:00
Tim Potter
0094af05ed Spelling fix.
(This used to be commit dfcc97a158)
2002-01-07 02:58:31 +00:00
Tim Potter
105e35a6e4 Don't log the password in pam_sm_authenticate() unless DEBUG_PASSWORD is
defined.  This is done with --enable-developer mode.
(This used to be commit caff5dc1d6)
2002-01-07 02:57:06 +00:00
Tim Potter
2f25e5118f 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.
(This used to be commit 4efbdda3fc)
2002-01-06 09:03:48 +00:00