1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

1560 Commits

Author SHA1 Message Date
Tim Potter
aa1a248336 Merge cleanups of return values.
(This used to be commit bae354a20c07458722b5193911e7eaaf9bfbaeb7)
2003-02-19 22:50:29 +00:00
Andrew Bartlett
251ea1e677 Merge minor library fixes from HEAD to 3.0.
- setenv() replacement
 - mimir's ASN1/SPNEGO typo fixes
 - (size_t)-1 fixes for push_* returns
 - function argument signed/unsigned correction
 - ASN1 error handling (ensure we don't use initiailsed data)
 - extra net ads join error checking
 - allow 'set security discriptor' to fail
 - escape ldap strings in libads.
 - getgrouplist() correctness fixes (include primary gid)

Andrew Bartlett
(This used to be commit e9d6e2ea9a3dc01d3849b925c50702cda6ddf225)
2003-02-19 12:31:16 +00:00
Jim McDonough
17ec9642cd base64_decode() with heimdal libs, so I've renamed it base64_decode_inplace().
(This used to be commit d510ff85fb0dafddf3dea9412a09eeee6e70f0cb)
2003-02-18 23:17:59 +00:00
Jeremy Allison
737f82e3b3 Ensure we use getgrnam() unless BROKEN_GETGRNAM is defined. I now need
to set this for Tru64.
Jeremy.
(This used to be commit a21154961135def29d7ede302ed09ce52fc22fc1)
2003-02-18 04:48:32 +00:00
Jelmer Vernooij
9770ba3f4c Remove obsolete file lib/netatalk.c - We now have a vfs module
(This used to be commit fcc7a197b1ec85f9492e335a824317a904b0c919)
2003-02-15 02:03:55 +00:00
Jim McDonough
49d3f7bc81 merge from HEAD - enable dynamic RPC modules
(This used to be commit d9c485b01017594d113502f9de2248d6c120cfa3)
2003-02-14 00:48:28 +00:00
Tim Potter
a68de8f42c Merge of nicer error message for gencache open error from HEAD.
(This used to be commit 23ca54000514d400c81950edb556ef4308a88253)
2003-02-12 01:20:56 +00:00
Jeremy Allison
cba08587d3 Merge from HEAD - pull_ucs2_talloc() should pull to a char**, not a void**
Jeremy.
(This used to be commit 81437e2ad034e9b83ae954c17a7a261504c55101)
2003-02-12 01:09:35 +00:00
Andrew Bartlett
8f166a9725 merge from HEAD - x_fileno, not fileno on an XFILE
(This used to be commit e3468d8edc77c4d3dffc81770f4bc991e5a5fe52)
2003-02-08 01:01:49 +00:00
Andrew Bartlett
b36a53b0cb Merge from HEAD - don't mix FILE and X_FILE - fixes debian bug
http://bugs.debian.org/178219 where the first 4096 bytes where being chewed
into the FILE buffer, and never available to X_FILE's read.

Andrew Bartlett
(This used to be commit 8af72c13841ee51bca4f061a91c05e8fd366f586)
2003-02-08 00:08:23 +00:00
Jeremy Allison
a90def7e8a Samba janitor: adding mbp's umask patch :-).
Jeremy.
(This used to be commit d4d8d27bf136bdbc785c7aad027537aabaa56a76)
2003-02-07 21:59:51 +00:00
Andrew Tridgell
50edc1a831 merge from head
(This used to be commit fd3216dbcbaec7d64dd24fe2af6c4156935c47e9)
2003-02-07 04:11:36 +00:00
Andrew Bartlett
3b2244526c Merge of signed/unsigned fixes from HEAD.
(This used to be commit e9f56a157bd472914eebf64fde586104d8274717)
2003-02-01 07:25:53 +00:00
cvs2svn Import User
21554bfae2 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit ed336acc6eef4736bd924e8402cc463944e9327c) 2003-02-01 05:20:12 +00:00
Andrew Bartlett
c2b134cc3b Always escape ldap filter strings. Escaping code was from pam_ldap, but I'm to
blame for the realloc() stuff.

Plus a couple of minor updates to libads.

Andrew Bartlett
(This used to be commit 34b2e558a4b3cfd753339bb228a9799e27ed8170)
2003-02-01 05:20:11 +00:00
Andrew Bartlett
cf4e0982fd Make it clear that the magic value is (size_t)-1.
Andrew Bartlett
(This used to be commit 0676b4e35f2ab5b58c44df9fe2eef112425d6013)
2003-02-01 04:40:00 +00:00
Jeremy Allison
bbf9f09ee5 Add 3 second timeout when terminating server and sending print notify
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
(This used to be commit 07efebb98473cb3d4adc6b2e0afef3f06dcc99b8)
2003-01-30 23:55:58 +00:00
Jeremy Allison
b102e79e75 Add 3 second timeout when terminating server and sending print notify
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
(This used to be commit 4ae130bfa82be60de6a6f357f65207fcb24f45fb)
2003-01-30 23:55:13 +00:00
Tim Potter
97027aa5ff Merge of REQ_DEBUGLEVEL messaging and debug_count fixes from HEAD.
(This used to be commit abb112ba2ad362036c7b3f340d5f64d6fcc0cd3c)
2003-01-30 04:37:18 +00:00
Tim Potter
0310697963 Move debug level message handling into debug.c from messages.c
Removed duplicate message_register() for REQ_DEBUGLEVEL message.
(This used to be commit 6fee7196d695ca813a301b1e6d7da687b7e7bda5)
2003-01-30 04:00:28 +00:00
Jeremy Allison
655000e43e Removed duplicate fn to avoid compiler warning. (from HEAD - tpot).
Jeremy.
(This used to be commit 60be9a2f1e6d18562218a55e1a1f753e34fb1e5b)
2003-01-29 17:55:41 +00:00
Jeremy Allison
d4b82b17fc Return 0 instead of crashing when a NULL source string is passed
to rpcstr_pull() - merge from HEAD (tpot).
Jeremy.
(This used to be commit e781388c59d694058576529fb43f861c48011091)
2003-01-29 06:51:35 +00:00
Tim Potter
ffaaa7a5af Removed duplicate fn to avoid compiler warning.
(This used to be commit 55d268fdd67e42244128dae8614d0e4aa2eb2da2)
2003-01-29 05:16:16 +00:00
Tim Potter
308efc0337 Return 0 instead of crashing when a NULL source string is passed
to rpcstr_pull()
(This used to be commit b9c4cc119588d6a564f0aaf12fd2ef867a42aeb8)
2003-01-29 02:55:39 +00:00
Tim Potter
1394248a10 Quieten debug about gencache.tdb not being able to be opened.
Perhaps we should try to open O_RDONLY if O_RDWR fails?
(This used to be commit 1e7236371d2b766b161acbb0c950cd3bb4a6ede7)
2003-01-29 02:54:36 +00:00
Andrew Bartlett
1cba0a7579 Merge from HEAD:
- NTLMSSP over SPENGO (sesssion-setup-and-x) cleanup and code refactor.
  - also consequential changes to the NTLMSSP and SPNEGO parsing functions
  - and the client code that uses the same functions
 - Add ntlm_auth, a NTLMSSP authentication interface for use by applications
   like Squid and Apache.
  - also consquential changes to use common code for base64 encode/decode.
 - Winbind changes to support ntlm_auth (I don't want this program to need
   to read smb.conf, instead getting all it's details over the pipe).
 - nmbd changes for fstrcat() instead of fstrcpy().

Andrew Bartlett
(This used to be commit fbb46da79cf322570a7e3318100c304bbf33409e)
2003-01-28 12:07:02 +00:00
cvs2svn Import User
2326525950 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit b741abd496621586040081c04674ae53cb5db47c) 2003-01-28 03:37:15 +00:00
Gerald Carter
f911f03a7d sync with tpot's change to gencache_get() in HEAD
(This used to be commit 305f167db2a34cdf3dd6378954e815ce34111232)
2003-01-24 21:25:12 +00:00
Gerald Carter
7cc3cf9410 masking an assert error in Tim's wins server checking code; needs a proper fix after I talk to tpot
(This used to be commit 607bc0b4fca38640c6b5c730aa4119e2aa9006fc)
2003-01-24 21:20:31 +00:00
Jeremy Allison
012f7aae4e Fix memory leak found my Leo Qiu <leoxqiu@yahoo.com>.
Jeremy.
(This used to be commit af6e4ea640828438fe234db1652dc4c1e10a487e)
2003-01-24 19:20:01 +00:00
Jeremy Allison
ac49b63c1c Memory leak fix from Leo Qiu <leoxqiu@yahoo.com>.
Jeremy.
(This used to be commit efd52f6ca7784a3edfc0371b5ff2054ad9704ab7)
2003-01-24 19:19:25 +00:00
Gerald Carter
48f6ede4b4 merging [un]signed declaration
(This used to be commit 15be89e72fee97106db1bd06d18060c21bbf78e1)
2003-01-24 16:34:54 +00:00
Tim Potter
644d31ae25 Merge of max log file fixes from appliance:
- smbd/process.c: check log file sizes more often than in
       timeout_processing()

 - lib/debug.c: increment debug_count inside Debug1() instead of
       when log file sizes are checked.
(This used to be commit 303710c2065850beebef678e657633497e4d8452)
2003-01-23 03:02:08 +00:00
Tim Potter
2ad0d8ccbd Merge of wins server dead list into gencache.tdb
(This used to be commit d1107efa1cd23cbfe8da6d3462714a6f3ec570ae)
2003-01-22 23:32:03 +00:00
Tim Potter
aeaa901a72 Updated some comments.
(This used to be commit f150af98a77ebcfa848735b7a67bbb95bd6d5b57)
2003-01-21 06:30:11 +00:00
Tim Potter
4d3ec0020d Keep the list of dead WINS servers in gencache.tdb instead of in
memory.  This allows the information to be shared amongst all smbd
processes.

HP CR #1099
(This used to be commit 88d977ecceaec45ab6b238ddd32d92885da19793)
2003-01-21 05:05:10 +00:00
Tim Potter
4d6535dc1a Make the valstr and timeout return pointers optional so a caller can
pass NULL if it doesn't care about the gencache key.
(This used to be commit 9ff4fe7e0d95c0cea94f65c00fea21600308d7d1)
2003-01-21 05:01:05 +00:00
Jim McDonough
1793c8f143 dlsym() can return NULL validly, so we can't use that as the error test.
dlerror() is the correct way to test.
(This used to be commit 41b1be15bac271116a7096e511cc029685013e1f)
2003-01-17 21:23:14 +00:00
Jim McDonough
9eb368e068 Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt for instructions.
(This used to be commit d51e12df78ff8fc721d693fedbd1c633f39edd49)
2003-01-17 20:57:26 +00:00
Jeremy Allison
ff8ca2f88b Janitorial duty...
fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code. (tridge).
Jeremy.
(This used to be commit 2b4335f06265940582f389f48dc4f87f452a2703)
2003-01-17 06:40:12 +00:00
Andrew Tridgell
31482b2c6b fix some undefined behaviour with increments in C. In theory a
compiler could have produced complete crap for this code.
(This used to be commit 0e90da0810b60dd1c2b1ec46c1a2993856b919d3)
2003-01-17 04:09:23 +00:00
Jeremy Allison
effbd70c21 Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit 3d04872499332ef2d8e7479b924afc8fc1ac29d7)
2003-01-16 20:08:33 +00:00
Jeremy Allison
6b2eb72df0 Fixed up mutex protection around winbindd logon code. Sync with APP-HEAD.
Jeremy.
(This used to be commit daf179bcd6297b525bfc644efb154734723f4d58)
2003-01-16 20:08:26 +00:00
Andrew Bartlett
d92b21280e Updates to the NTLMSSP code again - moving the base64 decode fuctionality out
of the SWAT code, and adding a base64 encoder.

The main purpose of this patch is to add NTLMSSP support to 'ntlm_auth', for
use with Squid.  Unfortunetly the squid side doesn't quite support what we need
yet.

Changes to winbind to get us the info we need, and a couple of consequential
changes/cleanups in the rest of the code.

Andrew Bartlett
(This used to be commit fe50ca8f54ded2e119bde08831785fbe0db2ee99)
2003-01-16 03:29:54 +00:00
Andrew Bartlett
078468a147 Fix a signed/unsigned warning.
(This used to be commit b5ae49544d8e389595a3b076466498912de42081)
2003-01-16 02:02:23 +00:00
Richard Sharpe
056e963e93 Remove a wayward file.
(This used to be commit ef597400602cdbd1601355f8ef54f12ea45dff78)
2003-01-15 21:35:36 +00:00
Gerald Carter
99cdb46208 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
(This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
2003-01-15 18:57:41 +00:00
Andrew Bartlett
3095cbd635 Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdup
instead.

Andrew Bartlett
(This used to be commit c781e34d274f4185ec932cc59029d3f9a65e47c4)
2003-01-15 12:48:06 +00:00
Andrew Bartlett
d645041d63 Merge from HEAD:
- remove useless #else
 - signed/unsigned fixes
 - use an fstring for LM hash buffer.

Andrew Bartlett
(This used to be commit c0fb53c31fd7341745d14640e761affc5dae5230)
2003-01-14 08:26:54 +00:00
Jeremy Allison
f504cc4e10 Don't touch data after a free.
Jeremy.
(This used to be commit 3aea32c8e6d204e41776b4bce79234d2159867b3)
2003-01-13 23:15:14 +00:00