1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

1287 Commits

Author SHA1 Message Date
Tim Potter
bde2b4a8ec Break out of samsync loop on error.
(This used to be commit f8994483484cab47f0d6a6934979f69402dba894)
2003-10-14 03:50:27 +00:00
Tim Potter
ddb71188cf Set errno = ENOSYS if mmap not supported.
From Joachim Schmitz <schmitz@hp.com>
(This used to be commit 22655a65ab73576557487e73c550b45296e534ec)
2003-10-14 03:38:24 +00:00
Jeremy Allison
19953ff72e Portability fixes from schmitz@hp.com (Joachim Schmitz). Bug #549.
Jeremy.
(This used to be commit 93669f329eccec34d4a1da6239ae9759f067fb8b)
2003-10-02 18:22:51 +00:00
Jelmer Vernooij
cda8fc2915 Testparm fixes:
- Also check global 'hosts allow'/'hosts deny' when checking access to share
 - Warn when user specifies 2 arguments instead of 1 or 3.

Patch from Jay Fenlason <fenlason@redhat.com>
(This used to be commit 2690c185f01b8fb4307dc803fb90c00400f2da69)
2003-09-29 02:39:41 +00:00
Jeremy Allison
0fea43eb60 Fix to parse the level-2 strings. From Anthony Liguori aliguor@us.ibm.com.
Jeremy.
(This used to be commit e4c955c98e90901b047c475f204af93a57578248)
2003-09-26 06:35:11 +00:00
Volker Lendecke
c716385220 This only touches the fake kaserver support. It adds two parameters:
afs share -- this is an AFS share, do AFS magic things
afs username map -- We need a way to specify the cell and possibly
		    weird username codings for several windows domains
		    in the afs cell

Volker
(This used to be commit 4a3f7a9356cd5068d9ed4fd6e2336d9bf7923fbd)
2003-09-23 14:52:21 +00:00
Gerald Carter
88c95aa735 fix some warnings found by the Sun C compiler
(This used to be commit e1fac713e25692a5790c3261ba323732930f5249)
2003-09-22 17:53:59 +00:00
Jelmer Vernooij
5def5d2bdb Fix typo
(This used to be commit 37db75fc95aec2510a0ead0c97f44e80b00696d9)
2003-09-21 02:58:08 +00:00
Jeremy Allison
0551426657 Ensure that dup_sec_desc copies the 'type' field correctly. This caused
me to expose a type arguement to make_sec_desc(). We weren't copying
the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on
auto inherited checks.
Jeremy.
(This used to be commit 28b315a7501f42928d73efaa75f74146ba95cf2d)
2003-09-19 21:57:43 +00:00
Jeremy Allison
2c21d31c92 Fix from gregory@networksentry.co.za, don't clobber the comment if it
exists.
Jeremy.
(This used to be commit c8bfde5be9f0a3603f7333ff4266ad19c20cb9f9)
2003-09-15 21:27:36 +00:00
Christopher R. Hertel
1e98a1b4cc Fixed test and wording for long share names.
The RAP NetShareEnum() call has a length limit of 12 characters (not 8, as
previously tested).  Took DaveCB's suggested and added a note listing some
of the client systems that might be affected.
(This used to be commit be06e52ce05e88f3872563a61ae29f62afd614fc)
2003-09-15 17:01:26 +00:00
Simo Sorce
1389acb537 fix online help
-w option need the password on the command line
(This used to be commit fa7dea1710bac38f5f68be2e56a24ef5cca09ff5)
2003-09-15 14:13:35 +00:00
Tim Potter
5cf58a1b98 Fix error message when calling namedtogid() fails adding a group map
entry.  Bug #431.
(This used to be commit bc8a181477866d0d97324bf45431bcdff895ad18)
2003-09-11 01:57:08 +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
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
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
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
Tim Potter
e414564eb6 Fix for bug #73. Name types can be specified using name#type notation.
Also added shortcut so that 'net lookup foo#1b' works.
(This used to be commit f38679201e301d66473e74506f07812590d19fa4)
2003-09-05 04:40:10 +00:00
Gerald Carter
bf0f3be29d Check in Andrew's fix for bug #305 (always use lp_realm() )
Also make sure thet ads_startup uses lp_realm instead of
just relying on the workgroup name.  Fixes bug in net ads join
when the workgroup defaults to "WORKGROUP" and we ignore the
realm name.
(This used to be commit b1763ace4e85f41574894e3807cabb5196fec661)
2003-09-04 19:45:04 +00:00
Tim Potter
0869073b7b Fix bug 342. Short version of --add now -a instead of -A.
(This used to be commit 233568dd6b08d3dfb48a712b763dfc31c03b229d)
2003-09-01 10:43:21 +00:00
Tim Potter
0548123153 We don't need to #include memory.h here. It's a BSD'ism and just includes
string.h anyways.
(This used to be commit 71034cede83b5605b25a4d3b640086294244c239)
2003-08-31 23:58:55 +00:00
Tim Potter
48cb8f8d5f Fix some compiler warnings.
(This used to be commit f566de0541373fab97caa6b0f574f79e68ae74dc)
2003-08-29 01:33:00 +00:00
Jeremy Allison
afe845235a Fixed warnings in secret code.
Jeremy.
(This used to be commit 86ebf990431903b12ec24a4d9af00d665e828145)
2003-08-28 23:38:13 +00:00
Gerald Carter
494bb81bb0 fixing typos pointed out by Vance in WHATSNEW
Include patch to manually set the machine trust account
password (on request from jht) to mimic 2.2. behavior.

last changes before RC2 (not counting syncing the docs).
(This used to be commit ce090371449097d4e5010e1219d449db8b0ccac5)
2003-08-28 20:24:25 +00:00
Jeremy Allison
e88593f1c0 Ensure nmblookup correctly converts from CH_DOS to CH_UNIX when displaying
a printable name on node status.
Jeremy.
(This used to be commit 6585446afd29768fde8c3f882bfb57554cf4e4da)
2003-08-22 00:13:42 +00:00
Gerald Carter
8bfe26b62d metze's autogenerate patch for version.h
(This used to be commit ae452e51b02672a56adf18aa7a7e365eeaba9272)
2003-08-20 17:13:38 +00:00
Andrew Bartlett
f1be3a5c5d - Make 'net' use a single funciton for setting the 'use machine account' code.
- Make winbindd try to use kerberos for connections to DCs, so that it can
   access RA=2 servers, particularly for netlogon.
 - Make rpcclient follow the new flags for the NETLOGON pipe
 - Make all the code that uses schannel use the centralised functions for doing so.

Andrew Bartlett
(This used to be commit 96b4187963cedcfe158ff02868929b8cf81c6ebf)
2003-08-19 22:47:10 +00:00
Rafal Szczesniak
b1993600e6 In case of 'net rpc trustdom add' without domain name we were silently
asking for password without a piece of error message or explanation.


rafal
(This used to be commit d46793b33577f7e77b7632b016918e3ce175c238)
2003-08-15 21:57:59 +00:00
Rafal Szczesniak
bb6fb2880b Give a temporary hint on how to delete trust account.
rafal
(This used to be commit 836746beabda583f7d86bb7e6faa855f172a888d)
2003-08-15 19:47:10 +00:00
Jelmer Vernooij
c574bf0ced Print more than 1 packet in hex mode
(This used to be commit 28f1d7b201932eb3864af3d71ec862670898822c)
2003-08-15 16:13:59 +00:00
Jelmer Vernooij
22535011e2 Add ability to output native pcap files without the requirement for text2pcap.
IP and TCP checksums are not calculated, but that should not matter.
(This used to be commit aa96f780015c031e0c5a0e8773f192502c10c919)
2003-08-15 05:31:46 +00:00
Herb Lewis
aa39cc37da get rid of more compiler warnings
(This used to be commit 398bd14fc6e2f8ab2f34211270e179b8928a6669)
2003-08-15 04:42:05 +00:00
Volker Lendecke
4ad85bf48e Add the gss-spnego kerberos server side to ntml_auth. This uses the
same ads_verify_ticket routine that smbd uses, so in the current state
we have to be have the host password in secrets.tdb instead of the
keytab. This means we have to be an ADS member, but it's a start.

Volker
(This used to be commit dc2d2ad467927affbd1461df75f77f07ddfbc3b1)
2003-08-15 02:57:59 +00:00
Jelmer Vernooij
7753ed9acf Fix some memory issues. It is now possible to convert extract packet data
from a samba log file and view it in ethereal, including the DCE/RPC, RAP, etc
calls that are contained in a packet, just like you would with a real
network sniff!
(This used to be commit 6a76750dc4d8b539b7571ac4939c003b6ffa86a9)
2003-08-15 02:18:20 +00:00
Herb Lewis
d294d4b98f get rid of warning on IRIX
(This used to be commit 6ec683e24e220a40b02b203b918a0008d90264f0)
2003-08-15 02:01:56 +00:00
Volker Lendecke
db5355cb3a Don't ask, it's too embarrassing :-)
Actually let the user explicitly specify a rid...

Volker
(This used to be commit 3aed9c8a4ac97ef55772ddae1e1cb0a5a1a15767)
2003-08-15 01:55:06 +00:00
Jelmer Vernooij
c8061de1ed Get packet contents correct as well.
(This used to be commit b4499c8aab44e25cb4406498018bde0bc4ed4ca9)
2003-08-15 01:30:10 +00:00
Jelmer Vernooij
6c396ea577 Add utility that takes a samba log file (at least level 5 for headers and
10 for data contents as well) and creates a packet trace readable by
ethereal.

What does not work yet:
 - SMB data contents (log level 5)
 - SMB data contents beyond the 512 byte range (log level 99 or something?)
(This used to be commit 95b1d4933b0de63613fe041c273d413d86909b4b)
2003-08-15 00:04:20 +00:00
Jelmer Vernooij
273c37d1c1 Makefile.in
(This used to be commit e8dc799ffbc4e622eb6adf374bbafc34724c24ce)
2003-08-15 00:00:22 +00:00
Volker Lendecke
fbf072599b Fix the build for non-kerberos environments.
Volker
(This used to be commit c8f4d7952ffbe0438e33c37ae1365e5dd4f1734a)
2003-08-14 17:21:22 +00:00
Rafal Szczesniak
1a43ca5ace Small typo fix found while testing domain trusts.
rafal
(This used to be commit 033ee6e68708f687ccd053eab4a7dac16937354b)
2003-08-13 20:53:48 +00:00
Volker Lendecke
5929cfd451 This adds *experimental* kerberos gss spnego client support to ntlm_auth.
(This used to be commit 5522c79045dd9ee6804bc2bf2114178cbed6df48)
2003-08-12 20:50:56 +00:00
Volker Lendecke
1d67e6b225 Some more shuffling around gss-spnego server
(This used to be commit f2c85595dae81e119d0f7f9ec769ff865916a052)
2003-08-12 19:00:08 +00:00
Jeremy Allison
4511b334a8 Test invalid map system, map hidden, create mask, force create mask
parameters. Fix return code for Samba 4 torture tester.
Jeremy.
(This used to be commit c043835c878ff062cb6eede02334f9e0ebb01050)
2003-08-12 04:28:22 +00:00
Volker Lendecke
61a1fa97af Clarify gss spnego ntlmssp server a bit
(This used to be commit 807b452a7fe7960acd0259a289f0c67011cb1aaf)
2003-08-12 01:54:26 +00:00
Tim Potter
dffd0f379f Fix for bug 269. Change wbinfo and ntlm_auth to convert domain, username
and workstation to utf8 before sending the winbindd request.  Also, don't
continue when the call to pull_utf8() fails but rather return a winbind
error.  (This is what was causing the crash)
(This used to be commit ca1c463360b75538a93b56a87cbb4a6ee7b6cec6)
2003-08-12 00:46:15 +00:00
Jeremy Allison
110abf10d2 Turns out I had my packet sequences wrong for oplock break code.
I was storing the mid of the oplock break - I should have been
storing the mid from the open. There are thus 2 types of deferred
packet sequence returns - ones that increment the sequence number
(returns from oplock causing opens) and ones that don't (change notify
returns etc). Running with signing forced on does lead to some
interesting tests :-).
Jeremy.
(This used to be commit 85907f02cec566502d9e4adabbd414020a26064d)
2003-08-07 02:59:52 +00:00
Jeremy Allison
4461109416 Cosmetic fix from waider@waider.ie.
Jeremy.
(This used to be commit cb326c2dbff1fad87d5c72df4a004d5a42d17472)
2003-08-07 01:04:57 +00:00