1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

12841 Commits

Author SHA1 Message Date
Jelmer Vernooij
ff166384c8 Remove obsolete files.
(This used to be commit 3d71340e5c1bf3397e69897bbc8434bbaa503a75)
2003-09-10 19:47:13 +00:00
Jeremy Allison
b5f07b9ca8 Fix for bug #273 - smbd crash on machine account change.
Someone only half changed the code to use dc_name
instead of remote machine... Found via back trace from Dariush Forouher
<dariush@forouher.de>.
Jeremy.
(This used to be commit 963b24ac1a721a8b0d348b578f25b1d8cb7e2124)
2003-09-10 18:34:57 +00:00
Jeremy Allison
ec9f544561 Fix stupid typo bug causing CPU spin. Spotted by Markus Ungermann <ungermann@elzet80.de>
Jeremy.
(This used to be commit c5ed59b37be1bf779e0d0e61c31227b520430afd)
2003-09-10 18:03:24 +00:00
Alexander Bokovoy
1c138c6181 Back out --with-good-getgrouplist patch
(This used to be commit d2fdc3955fb6859e865e805d32ca405ab44d0505)
2003-09-10 15:41:07 +00:00
Alexander Bokovoy
85087fbac5 Back out --with-good-getgrouplist patch
(This used to be commit 424b13823b666c122f43d63098cec3e54b4fa353)
2003-09-10 15:39:21 +00:00
Alexander Bokovoy
37737023a8 Support for CAN-2003-0689 port from SAMBA_3_0
(This used to be commit 69b30ec0776b06c62810a3eb1d7be1df3db9e169)
2003-09-10 14:03:08 +00:00
Alexander Bokovoy
cf598c5c1c Now that CAN-2003-0689 is published officially, we need to make possible
to build on systems with fixed getgrouplist() in GNU libc < 2.3.2.
Unfortunately, we can't detect correctness of getgrouplist() functioning in
portable way so this is left up to developer/packager.

This patch adds --with-good-getgrouplist[=no] switch to configure which packagers
on Linux platforms could use to specify in their own builds if they now that glibc
on their platform is fixed w.r.t CAN-2003-0689. By default we still think that glibc
is vulnerable and perform our version check.

** This patch does not change default behaviour in Samba 3.0 -- by default we are not
vulnerable on glibc as we are not using getgrouplist()

See http://www.securityfocus.com/bid/8477 for vulnerability description.

Right now there are following Linux vendors released glibc updates for CAN-2003-0689:

RedHat -- https://rhn.redhat.com/errata/RHSA-2003-249.html
ALTLinux -- http://www.altlinux.com/index.php?module=sisyphus&package=glibc
(This used to be commit e53622c114e0368515c50b357567fcdd0b95979e)
2003-09-10 13:39:09 +00:00
Tim Potter
4059dfcca2 Fix error return path memory leaks in vampire code for creating users.
Display an error if we can't create a posix account for the user
(e.g no add user/machine script was specified; bug #323).
(This used to be commit 0c35ba2cd65ff64c5db2b20d5528a0d486cba51e)
2003-09-10 06:58:41 +00:00
Tim Potter
51297321ba Use opt_target_workgroup instead of lp_workgroup() in vampire code so
we can override the value in smb.conf with the -w option.

Migrating accounts from another domain can now be done like:

# bin/net join bdc -w nt4dom -Uadministrator%password
# bin/net rpc vampire -w nt4dom -U administrator%password
(This used to be commit d7bd3c1efbd02a7ca01ad9a4b242ea4cc4a63c1f)
2003-09-10 06:49:13 +00:00
Tim Potter
ab87cee6cb Formatting fixups for help output.
(This used to be commit c030d1401950b6efcbdf30ad899c25a61efb1814)
2003-09-10 06:15:07 +00:00
Tim Potter
623a46b7e4 Remove tags file for distclean.
(This used to be commit 2ac5ac495025f6c673216c1922ff51b913a0aeac)
2003-09-10 03:59:35 +00:00
Tim Potter
2002fbd72e Remove tags file for distclean.
(This used to be commit c972fac195fd9280ab2a0da28b8ed11aaacd3bff)
2003-09-10 03:59:07 +00:00
Tim Potter
80a11b868d Remove another dead file.
(This used to be commit a5656a5756b3c1061d683d664a7f087182b39b47)
2003-09-10 03:49:43 +00:00
Tim Potter
f59a010674 Remove autogenerated file.
(This used to be commit 275bdc3ff550fd14a11c9f3919a82d4af35dc6fa)
2003-09-10 03:47:10 +00:00
Tim Potter
ca4dabf12c Removed accidentally re-added file.
(This used to be commit a7bffe2095e4bb591dfa97ea4d786483fd44053b)
2003-09-10 03:34:21 +00:00
Jeremy Allison
ee51d6aabe Fix mb bug in fast path code. strlen_w() returns number of *characters*
not number of bytes. Reproduce this by trying to rename the file named :
sibrseau -> sibrseaU
from Windows 2000 explorer.
Jeremy.
(This used to be commit 035f59599514491609078ac0fe5804278c43a9b3)
2003-09-10 02:21:24 +00:00
Gerald Carter
9a9031ec72 remove references to 'strip dot'
(This used to be commit b5c5a9dc76c7584047e6ad8e7063b2da348e67d7)
2003-09-10 00:43:00 +00:00
Gerald Carter
b33b228455 remove references to 'strip dot'
(This used to be commit 5c0c9d68b44f867bf6c2b24b9fd9ba2408b9f83c)
2003-09-10 00:40:32 +00:00
Gerald Carter
fd5b572f55 version.h is autogenerated now
(This used to be commit 04f8cbbca66024ffdcd2ebc0f4db7849d02ca99b)
2003-09-09 18:29:33 +00:00
Gerald Carter
7f438c3b9e removing unused files
(This used to be commit 1a9145015d4b2ee7e7399099760cda13d619e740)
2003-09-09 04:14:19 +00:00
Gerald Carter
4093bf7ff8 sync 3.0 into HEAD for the last time
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
2003-09-09 04:07:32 +00:00
Gerald Carter
6a87470cdd bumping new version to CVS 3.01pre1; optmistic about RC3
(This used to be commit fb69ca974db9aca4aa88952f7872369ce6274e8b)
2003-09-09 02:02:33 +00:00
Jeremy Allison
e99b77985d Don't double-increment p in hash calculation. Found by valgrind.
Jeremy.
(This used to be commit 514d9361c7be8cb8ef1a1309773baab1d982eea6)
2003-09-08 21:33:18 +00:00
Jeremy Allison
16e6d22408 Fix valgrind-found read of uninit variable (ensure length is right).
Jeremy.
(This used to be commit 6fc0e529f70253244628017a372257e8dc053294)
2003-09-08 21:26:30 +00:00
Jeremy Allison
07c90e499e Tidy up some formatting. Get ready for allowing bad password lockout. (based
on a patch posted from Richard Renard <rrenard@idealx.com>.
Jeremy.
(This used to be commit abf54b58e95a949cb883d4485853dc560489c03f)
2003-09-08 20:42:33 +00:00
Jeremy Allison
5daacc87b5 Protect against core dump if ioctl for print job sends invalid fid. Found
by Iskantharajah T <is@tracetec.com.my>.
Jeremy.
(This used to be commit a9f9dd71da41801c975303a385ff229788c9498a)
2003-09-08 20:27:28 +00:00
Jeremy Allison
206d0f4156 Fix for incorrect error message - found by Alex Davis <alex14641@yahoo.com>.
Jeremy.
(This used to be commit 28631ef23f855ce91740fd144e3dc235a3ae7af6)
2003-09-08 18:41:42 +00:00
Gerald Carter
e56192d0cf make sure we substitute basic variables in read/write list
(This used to be commit 52bea54d35e7fb32c7ed7b067c13afe53761affb)
2003-09-08 15:24:01 +00:00
Gerald Carter
7a0b58a012 fix compile error on HP-UX 10.20
(This used to be commit 15d53fd53c622de316d0ff41f1b60f0e2c69f908)
2003-09-08 14:00:51 +00:00
Gerald Carter
154451465b fix valgrind errors; don't access cli_state pointer after it has been shutdown
(This used to be commit 02ae82fb3f70dc37e815d8e88bfd31a8c3ff43db)
2003-09-08 13:53:19 +00:00
Tim Potter
66abd44c6d Set PICFLAG="-fPIC" for gcc under HPUX.
(This used to be commit 7f2533207ee46fa968cf1fd31ac0cd89e1fb0bb1)
2003-09-08 06:30:49 +00:00
Tim Potter
f87bd75423 Fix for bug #299.
There was some confusion over dynamically allocated lists of pointers
(i.e you have to make space for the list of pointers and what they are
pointing too) in the memory buffer passed in from libc.

Valgrind is much happer now and as a bonus there is no segfault.
(This used to be commit 7907c44414acb841a9001e82285790eece73d032)
2003-09-08 05:51:57 +00:00
Tim Potter
605281ef4b Rename FOOLIBS to FOO_LIBS to be consistent with the rest of the
library variable names.
(This used to be commit 9b0b0256a8bb93482fad4032902a4ab6d1e99e23)
2003-09-08 02:48:06 +00:00
Tim Potter
b42500299c Fix for bug #334. We don't unmarshall the trusted domain or secrets
info delta correctly and thus crash when doing a net rpc samdump.

The easiest thing at the moment it to comment out these functions as
they seriously don't correspond with reality (netmon/ethereal) and the
data in the containers aren't used anyway.
(This used to be commit 695aa39c5d798b112f0a06281b499fcac8a5bf31)
2003-09-08 02:13:38 +00:00
Tim Potter
5660c449ef Reformat debug.
(This used to be commit 3aab7a3bc7920b6e479700c176ac7a7b80262f42)
2003-09-08 01:28:48 +00:00
Tim Potter
678de276cd When enumerating dfs shares loop from 0 to lp_numservices() instead of
relying on lp_servicename(n) to return an empty string for invalid
service numbers.  For some reason it is returning NULL now.

Fixes bug 403.
(This used to be commit cebb2abd2e946a5f9f2d84a7e8ae82eceecd0274)
2003-09-08 00:55:29 +00:00
Volker Lendecke
1c38391c70 Nobody complained on the team-list, so commit it ...
This implements some kind of improved AFS support for Samba on Linux with
OpenAFS 1.2.10. ./configure --with-fake-kaserver assumes that you have
OpenAFS on your machine. To use this, you have to put the AFS server's KeyFile
into secrets.tdb with 'net afskey'. If this is done, on each tree connect
smbd creates a Kerberos V4 ticket suitable for use by the AFS client and
gives it to the kernel via the AFS syscall. This is meant to be very
light-weight, so I did not link in a whole lot of libraries to be more
platform-independent using the ka_SetToken function call.

Volker
(This used to be commit 5775690ee8e17d3e98355b5147e4aed47e8dc213)
2003-09-07 16:36:13 +00:00
Jeremy Allison
c4b69a9ca1 Use djb-algorithm string hash - faster than the tdb one we used to use.
Jeremy.
(This used to be commit f094555ed9d4f72841869e79037d6ff980ebe324)
2003-09-06 21:43:23 +00:00
Gerald Carter
dc7ea5851c finish off bug 282. AAdd extra checks for pointers after
ads_search_XXX() calls.
(This used to be commit 74c02e5fbc411d6fd1b13a1e21599da030897efe)
2003-09-06 20:00:16 +00:00
Jeremy Allison
6007eae339 Change some internal interfaces to cause the hash (which is *expensive*)
to be calculated less often. No change to external interface.
Jeremy.
(This used to be commit 155c9ce6663df9963c7563adf78a232d3650b7b5)
2003-09-06 19:59:12 +00:00
Gerald Carter
5bd4af1302 fix bug 382: make sure to free and reset the cli_state pointer after flushing connections in winbindd_pam_auth[_crap]()
(This used to be commit 60c8796edd84249db5419329a0fea4bbc7f9bb98)
2003-09-06 19:49:59 +00:00
Gerald Carter
c913fc0581 address bug #359. Andrew B's patch for implementing client
portion of NTLMv2 key exchange.  Also revert the default for
'client ntlmv2 auth' to no.  This caused no ends of grief in
different cases.

And based on abartlet's mail....

> All I care about at this point is that we use NTLMv2
> in our client code when connecting to a server that
> supports it.

There is *no* way to tell this.  The server can't tell us, because it
doesn't know what it's DC supports.  The DC can't tell us, because it
doesn't know what the trusted DC supports.  One DC might be Win2k, and
the PDC could be an older NT4.
(This used to be commit fe585d49cc3df0d71314ff43d3271d276d7d4503)
2003-09-06 19:23:24 +00:00
Gerald Carter
d5bef211d0 revert retry loops in winbindd_ads as abartket points out, we
already have ads_search_retry() for this.  However, neither
domain_sid() nor sequence_nunber() used this function.  So modify
them to us ads_do_search_retry() so we can specify the base search
DN and scope.
(This used to be commit 89f6adf830187d020bf4b35d1a4b2b48c7a075d0)
2003-09-06 18:02:19 +00:00
Jelmer Vernooij
14b438e90a Only set sids when they're retrurned by the MySQL query
(This used to be commit 9a603f6f077a2e1ddc41849cca3641421ecbaf11)
2003-09-06 12:21:08 +00:00
Jeremy Allison
966b0fc7c9 More cachegrind tuning, plus fix an error message.
Jeremy.
(This used to be commit 8cb9ec5d533085d40fc6bfe4ca9647d80bf41ac7)
2003-09-05 21:30:50 +00:00
Jeremy Allison
94f59f5492 More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
(This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
2003-09-05 19:59:55 +00:00
Gerald Carter
7544b0c773 fixes for ads domain membership when only the realm is defined in
smb.conf

Fixes to ensure we work with disable netbios = yes
(This used to be commit 3913e43724870c62a0d77ec3e73cbe9480cb6247)
2003-09-05 17:57:45 +00:00
Gerald Carter
cadff24182 revert the change from r1.414 in HEAD that removed the
ability to use variables in paths for the [homes] service.
(This used to be commit 8fd13b63103b3c144bdd170edcb3b642dfd9bb54)
2003-09-05 14:53:10 +00:00
Gerald Carter
1f32535d60 fix some output formatting
(This used to be commit 0283b0152e4cbe3d26b305ab9867e2b0765addfe)
2003-09-05 13:25:49 +00:00
Gerald Carter
2d5cf1d451 reformatting
(This used to be commit 5c3094ee5558a85b9e688aca8044f228ec6fbb33)
2003-09-05 13:21:35 +00:00