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

13780 Commits

Author SHA1 Message Date
Jelmer Vernooij
b9bf3252bf Fix building idmap_winbind as shared module
(This used to be commit 255603779621be4025d4892f589f39f3bfa08976)
2003-06-17 10:41:08 +00:00
Jelmer Vernooij
cafb5c512d The return value of init_module functions is NTSTATUS, not int
(This used to be commit f09df852ac0b25470fb9435c79a4a417e06e9b75)
2003-06-17 10:38:22 +00:00
Volker Lendecke
7dae7d3fb4 Fix memory leak in idmap. Valgrind is soooo cool.
Volker
(This used to be commit dcdb6683a7c9d675c23cc2c0295cefec81f469a7)
2003-06-17 10:16:20 +00:00
Volker Lendecke
ea1cec68bb Const fixes by metze
Volker
(This used to be commit c0e35f3be8a33f19823826c5a84c885764c62508)
2003-06-17 09:40:35 +00:00
Jelmer Vernooij
ac44100674 Update link to DTD
(This used to be commit 2737518b2571fecf60fcbcd99575dd6cf5bd0bdb)
2003-06-16 21:34:59 +00:00
Jelmer Vernooij
540e3f889c Add DTD used by XML passdb backend
(This used to be commit f3fd321b61dbf53b1dc33a42afe8a943c94c1135)
2003-06-16 21:33:46 +00:00
Jelmer Vernooij
498576b40d Fix for non-bourne shells
(This used to be commit 4ffe0b9f5452ce60511a030febe4e92dfa853073)
2003-06-16 20:21:14 +00:00
Jelmer Vernooij
aa2e1198ea Fix case
(This used to be commit def4f2e81c8d6a73e372827a94bdf027b68c60b6)
2003-06-16 20:08:04 +00:00
Richard Sharpe
5dd2d09a37 Squelch one small compiler warning
(This used to be commit d9ac2540dd0d56d97625fa02e55a57a1f5ac4abf)
2003-06-16 18:37:54 +00:00
Jelmer Vernooij
563a6c0a1a Patch from metze to update VFS docs to include notes on multiple instances
of the same VFS module
(This used to be commit 32ef93d31c9e5bad290c9ac35ca59d8e5215811d)
2003-06-16 18:31:20 +00:00
Jelmer Vernooij
ab95c86813 - Only put PNG files in CVS, not EPS.
- Remove tag that breaks tex build
(This used to be commit 569675412675b864273a23794d423ac061fe20d5)
2003-06-16 17:49:17 +00:00
Richard Sharpe
2740d35a7b Replace all use of bzero with memset ...
(This used to be commit e21aab516b33b01536dd9ea067a16b94a38ff4b1)
2003-06-16 17:49:01 +00:00
Jelmer Vernooij
c207399d16 Fix some information, based on comments by Andrew Bartlett.
(This used to be commit 443b00c949b37b2fe593adb9d46ad248e69f9deb)
2003-06-16 16:06:25 +00:00
Volker Lendecke
979c447060 This glosses over John's problem at SambaXP 2003. When we want to join
a NT4 domain as a BDC with an existing workstation account (existing
bdc is fine), we fail. Print a friendly error message in this case.

The correct solution would probably be to delete the account and try
again. But even this makes us better than NT: NT4 fails in this
situation with an empty warning message box and an unusable BDC. It
has unsuccessfully tried to suck down the domain database, and thus
has no administrator account to log in after reboot....

Volker
(This used to be commit 1ddeea2179b11cedccf205c7ffea523ee6750b24)
2003-06-16 15:59:05 +00:00
Volker Lendecke
e2cda4a24e Fix misleading debug message.
Volker
(This used to be commit a4f76f2520515d820eb4a320036b998c88c596a8)
2003-06-16 10:10:37 +00:00
Tim Potter
6a2b43db9c Make net rpc vampire return an error if the sam sync RPC returns an error.
E.g if we are pointing at a win2k native mode domain we are returned
an NT_STATUS_NOT_SUPPORTED error.
(This used to be commit 6053c30f26cdf60f2bbfa6fb58ced6f7bcbd2e83)
2003-06-16 05:39:26 +00:00
Tim Potter
3d65c033da Quieten another debug message.
(This used to be commit 2c47893c7542889d9e2ee097897a1df248b1a5e2)
2003-06-16 05:22:53 +00:00
Tim Potter
94d1dd96d6 Quieten debug message.
(This used to be commit 02d12cc4b9b9c5cfb7a05a6c2cf71cc59144bec9)
2003-06-16 05:20:37 +00:00
Tim Potter
7c16f64e38 Update nsstest to cope with wins NSS module as well as winbind NSS
module.  Use "wins" as the nss name to invoke this behaviour.

Also, fixed nsstest so it doesn't segfault when a nss function can't
be dlopened().  Log an error and abort the test gracefully instead.
(This used to be commit 66bafbe371359bbdec402ae47bc15024bec33f4e)
2003-06-16 03:30:53 +00:00
Tim Potter
35d0f987db Build libnss_wins.so as part of nsswitch target. Fix for bug #160
found by andreas@conectiva.com.br
(This used to be commit fa24fd6f5b9f3648ca0db393905b577f205c8ee0)
2003-06-16 03:28:27 +00:00
Andrew Tridgell
ec0303820f we need to call ads_first_entry() before using a ldap result,
otherwise we can segv or return garbage
(This used to be commit d1316656b03e2bc85263b65d24977923ee6f39b7)
2003-06-16 02:42:00 +00:00
Andrew Tridgell
8cd67d7668 reverted locale patch put in by jht (originally from vorlon).
There are lots of things wrong with this patch, including:

1) it overrides a user chosen configuration option

2) it adds lots of complexity inside a loop when a tiny piece of code
   outside the loop would do the same thing

3) it does no error checking, and is sure to crash on some systems

If you want this functionality then try something like this at the end
of charset_name():

#ifdef HAVE_NL_LANGINFO
	if (strcasecmp(ret, "LOCALE") == 0) {
		const char *ln = nl_langinfo(CODESET);
		if (ln) {
			DEBUG(5,("Substituting charset '%s' for LOCALE\n", ln));
			return ln;
		}
	}
#endif

then users can set 'display charset = LOCALE' to get the locale based
charset. You could even make that the default for systems that have
nl_langinfo().
(This used to be commit 382b9b806b1ecd227b1ea247e3825d6848090462)
2003-06-16 02:22:52 +00:00
Tim Potter
145b01a496 Fix some compiler warnings.
(This used to be commit eec1758e048f38e2ac48a7dda96b90a74ec95449)
2003-06-16 02:16:58 +00:00
Andrew Tridgell
1209615504 another improved debug statement
(This used to be commit ac69b9c83cde306f89143fe43038adff876dd0b0)
2003-06-16 01:13:17 +00:00
Andrew Tridgell
a2039bc4c6 made a debug statement more useful
(This used to be commit 3f7a24d183095a7e391fe35100a30fc572a8d769)
2003-06-16 01:12:42 +00:00
John Terpstra
489956c823 Patch from vorlon@debian.org, see bugzilal #122
Samba should preferentially use the locale information from the native system,
and only fall back on 'display charset' if this is unavailable or unsupported.
(This used to be commit 1e445fb4220cdf4700dd9d1850a42746a1065c5a)
2003-06-15 06:07:53 +00:00
John Terpstra
5d4937c2b6 This patch is Vorlon's fault!
(This used to be commit 56d2049561e5d5c22ac9d76cb013643083d9644e)
2003-06-15 05:14:28 +00:00
John Terpstra
8f7e94e7e6 Adding last two files.
(This used to be commit 91c6570c47e06c042bb2ad198af0dd48efbac4c4)
2003-06-14 22:30:06 +00:00
John Terpstra
603a3b9242 Adding missing docs to tree.
These docs are needed for SWAT Support. Also, not everyone can build the docs
so we do need to include them.
(This used to be commit a1b6e7007b6257bc001e661c20fd20d4643b1eca)
2003-06-14 22:25:31 +00:00
John Terpstra
88c664030a Adding missing documents and man page stothe tree.
(This used to be commit 7c65b3fc629e8ada61fb5ac16fcdcb6ef05d8b61)
2003-06-14 22:21:17 +00:00
John Terpstra
8e30c6b0d1 Updating html stuff.
(This used to be commit ab1f2fe4a840c9603bf5da5c133c137542fe0319)
2003-06-14 22:18:16 +00:00
John Terpstra
8c205f1a6c Added missing man pages.
(This used to be commit f65370b5c4fd4f5d4c4fdffd87a7cbe0bc2a7021)
2003-06-14 22:17:33 +00:00
John Terpstra
5d44ac2a66 Updating smb.conf.5
(This used to be commit af10f7860a3d85d9e1c9ece11fb2aa7b7df80745)
2003-06-14 22:16:42 +00:00
John Terpstra
7915a33ad3 Fix typo
(This used to be commit 4d86c66b8356899b7316b63a2005b7a4dbc16e45)
2003-06-14 18:48:50 +00:00
Volker Lendecke
bd1333ea74 Add 'net idmap restore'. This restores a broken idmap file
from the output of 'net idmap dump'.

'net idmap dump' now also prints the USER/GROUP HWM.

Volker
(This used to be commit c0575be936572bb091a77c58361bd3a4fe9549ff)
2003-06-14 17:51:09 +00:00
Andrew Bartlett
b85664047c This patch modifies 'net rpc vampire' to add new and existing users to both
the idmap and the SAM.

The basic idea is this:  Lookup the user with GetPwnam(), and if they
exist then use that uid.  This is what people expect.  If the user does
not exist, try and run the right script.

This is also what people expect from previous Samba 3.0 behaviour, where
the Get_Pwnam() was at runtime.

If the idmap entry for this SID isn't valid, or isn't the right value,
modify the idmap to account for this mapping.

Also, the same logic is applied to the primary gid - if it has changed,
update the user's primary unix group.

This patch allows users to be added without a mapping - this is fine for
machine accounts, for example.  I've given it a quick test against my
Win2k DC, and I *think* it's sane.

Andrew Bartlett
(This used to be commit d2a70bfff182352da50cd6c23ddfa80fe1b353c7)
2003-06-14 00:49:02 +00:00
Jeremy Allison
292a51eda1 Forward port the app-head changes for dc name cache into 3.0.
Jeremy.
(This used to be commit 8bcc3116a22ce11b55a35f3363230f54bc5735fc)
2003-06-13 21:03:15 +00:00
Richard Sharpe
3d0d8f609d Fix an spelling mistake.
(This used to be commit 8e37c1d579ed801fd602d698174f981deff435d9)
2003-06-13 17:49:03 +00:00
Volker Lendecke
8ad364dd2e Trivial extension to 'net' to dump current local idmap.
(This used to be commit 18f3a5efea7c60d764d5ed82f3a83e1608f8c34e)
2003-06-13 16:19:02 +00:00
Tim Potter
0a9396dcca Rename some uuid functions so as not to conflict with system
versions.  Fixes bug #154.
(This used to be commit 986eae40f7669d15dc75aed340e628aa7efafddc)
2003-06-13 04:35:53 +00:00
Tim Potter
61742d1117 Fix shadow variable warning.
(This used to be commit c22a4074bd2b998339826ba629fe48153639ec18)
2003-06-13 04:29:20 +00:00
Gerald Carter
af0ddc81d8 fix typo in description
(This used to be commit be82b3d9dfef938030731e1021076df4dcfdb443)
2003-06-13 02:53:03 +00:00
Tim Potter
88a5cb83a5 Delete outdated file.
(This used to be commit 406956645f8c713441040598c0c2849101d3fed7)
2003-06-13 00:07:59 +00:00
Volker Lendecke
e1f4d66b73 Fix for bug#3. Show comments when doing 'net group -l'.
Volker
(This used to be commit e5664adc07307a066c5312d9224cef2c69a40f77)
2003-06-12 16:21:22 +00:00
Volker Lendecke
c8667b03f8 Working on bug#3. We want all of the aliases, so start with 0.
Volker
(This used to be commit ec1a58d09e08583288b18747a0c82e5cf8139b63)
2003-06-12 15:37:06 +00:00
Volker Lendecke
511789b855 Andrew's change to make 'security = domain' work again. Leave the user and group
that has been authenticated unmapped.

We need to make sure that every caller of idmap handles failure gracefully.

Volker
(This used to be commit 902d607b668b2e997778a0ca676ea689943c2817)
2003-06-12 14:24:15 +00:00
Gerald Carter
b93851af13 check that an attribute is defined and not just non-zero
(This used to be commit 8c18174a899e9578e0e82d17c7602e84b342644c)
2003-06-12 13:41:13 +00:00
Gerald Carter
098fea0fa8 fix broken link
(This used to be commit ab79fac6b0ca1e2c3a8a63408869865c6d7f4304)
2003-06-12 13:10:47 +00:00
Volker Lendecke
2cd38cd8e8 Fix some misleading debug messages.
(This used to be commit 9c003ae4ff21040b55264f8b4c34bd5956c97dc6)
2003-06-12 08:22:55 +00:00
Volker Lendecke
c899e4c874 Get rid of a const warning.
Volker
(This used to be commit 6684f5b11f8498defa737e3ba85eb4e1f5b36202)
2003-06-12 07:54:13 +00:00