Richard Sharpe [Mon, 16 Jun 2003 17:49:01 +0000 (17:49 +0000)]
Replace all use of bzero with memset ...
Jelmer Vernooij [Mon, 16 Jun 2003 16:06:25 +0000 (16:06 +0000)]
Fix some information, based on comments by Andrew Bartlett.
Volker Lendecke [Mon, 16 Jun 2003 15:59:05 +0000 (15:59 +0000)]
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
Volker Lendecke [Mon, 16 Jun 2003 10:10:37 +0000 (10:10 +0000)]
Fix misleading debug message.
Volker
Tim Potter [Mon, 16 Jun 2003 05:39:26 +0000 (05:39 +0000)]
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.
Tim Potter [Mon, 16 Jun 2003 05:22:53 +0000 (05:22 +0000)]
Quieten another debug message.
Tim Potter [Mon, 16 Jun 2003 05:20:37 +0000 (05:20 +0000)]
Quieten debug message.
Tim Potter [Mon, 16 Jun 2003 03:30:53 +0000 (03:30 +0000)]
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.
Tim Potter [Mon, 16 Jun 2003 03:28:27 +0000 (03:28 +0000)]
Build libnss_wins.so as part of nsswitch target. Fix for bug #160
found by andreas@conectiva.com.br
Andrew Tridgell [Mon, 16 Jun 2003 02:42:00 +0000 (02:42 +0000)]
we need to call ads_first_entry() before using a ldap result,
otherwise we can segv or return garbage
Andrew Tridgell [Mon, 16 Jun 2003 02:22:52 +0000 (02:22 +0000)]
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().
Tim Potter [Mon, 16 Jun 2003 02:16:58 +0000 (02:16 +0000)]
Fix some compiler warnings.
Andrew Tridgell [Mon, 16 Jun 2003 01:13:17 +0000 (01:13 +0000)]
another improved debug statement
Andrew Tridgell [Mon, 16 Jun 2003 01:12:42 +0000 (01:12 +0000)]
made a debug statement more useful
John Terpstra [Sun, 15 Jun 2003 06:07:53 +0000 (06:07 +0000)]
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.
John Terpstra [Sun, 15 Jun 2003 05:14:28 +0000 (05:14 +0000)]
This patch is Vorlon's fault!
John Terpstra [Sat, 14 Jun 2003 22:30:06 +0000 (22:30 +0000)]
Adding last two files.
John Terpstra [Sat, 14 Jun 2003 22:25:31 +0000 (22:25 +0000)]
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.
John Terpstra [Sat, 14 Jun 2003 22:21:17 +0000 (22:21 +0000)]
Adding missing documents and man page stothe tree.
John Terpstra [Sat, 14 Jun 2003 22:18:16 +0000 (22:18 +0000)]
Updating html stuff.
John Terpstra [Sat, 14 Jun 2003 22:17:33 +0000 (22:17 +0000)]
Added missing man pages.
John Terpstra [Sat, 14 Jun 2003 22:16:42 +0000 (22:16 +0000)]
Updating smb.conf.5
John Terpstra [Sat, 14 Jun 2003 18:48:50 +0000 (18:48 +0000)]
Fix typo
Volker Lendecke [Sat, 14 Jun 2003 17:51:09 +0000 (17:51 +0000)]
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
Andrew Bartlett [Sat, 14 Jun 2003 00:49:02 +0000 (00:49 +0000)]
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
Jeremy Allison [Fri, 13 Jun 2003 21:03:15 +0000 (21:03 +0000)]
Forward port the app-head changes for dc name cache into 3.0.
Jeremy.
Richard Sharpe [Fri, 13 Jun 2003 17:49:03 +0000 (17:49 +0000)]
Fix an spelling mistake.
Volker Lendecke [Fri, 13 Jun 2003 16:19:02 +0000 (16:19 +0000)]
Trivial extension to 'net' to dump current local idmap.
Tim Potter [Fri, 13 Jun 2003 04:35:53 +0000 (04:35 +0000)]
Rename some uuid functions so as not to conflict with system
versions. Fixes bug #154.
Tim Potter [Fri, 13 Jun 2003 04:29:20 +0000 (04:29 +0000)]
Fix shadow variable warning.
Gerald Carter [Fri, 13 Jun 2003 02:53:03 +0000 (02:53 +0000)]
fix typo in description
Tim Potter [Fri, 13 Jun 2003 00:07:59 +0000 (00:07 +0000)]
Delete outdated file.
Volker Lendecke [Thu, 12 Jun 2003 16:21:22 +0000 (16:21 +0000)]
Fix for bug#3. Show comments when doing 'net group -l'.
Volker
Volker Lendecke [Thu, 12 Jun 2003 15:37:06 +0000 (15:37 +0000)]
Working on bug#3. We want all of the aliases, so start with 0.
Volker
Volker Lendecke [Thu, 12 Jun 2003 14:24:15 +0000 (14:24 +0000)]
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
Gerald Carter [Thu, 12 Jun 2003 13:41:13 +0000 (13:41 +0000)]
check that an attribute is defined and not just non-zero
Gerald Carter [Thu, 12 Jun 2003 13:10:47 +0000 (13:10 +0000)]
fix broken link
Volker Lendecke [Thu, 12 Jun 2003 08:22:55 +0000 (08:22 +0000)]
Fix some misleading debug messages.
Volker Lendecke [Thu, 12 Jun 2003 07:54:13 +0000 (07:54 +0000)]
Get rid of a const warning.
Volker
Volker Lendecke [Thu, 12 Jun 2003 07:32:44 +0000 (07:32 +0000)]
Fix typo found by Vance
Volker Lendecke [Thu, 12 Jun 2003 07:21:26 +0000 (07:21 +0000)]
Andrew is right, this is probably the wrong approach.
Take away the automatic mapping of users and groups again.
Volker
Jelmer Vernooij [Wed, 11 Jun 2003 22:21:43 +0000 (22:21 +0000)]
Ignore generated files
Volker Lendecke [Wed, 11 Jun 2003 20:42:10 +0000 (20:42 +0000)]
Set the user's primary unix group from usrmgr.exe.
This part of a fix to bug#45.
Volker
Volker Lendecke [Wed, 11 Jun 2003 20:06:11 +0000 (20:06 +0000)]
Sorry idra for messing around with your stuff, but this was obviously not
tested.
Incrementing HWW_USER while allocating a GROUPID looked somewhat wrong.
Volker
Simo Sorce [Wed, 11 Jun 2003 18:14:34 +0000 (18:14 +0000)]
avoid races in getting high watermark
Volker Lendecke [Wed, 11 Jun 2003 16:36:04 +0000 (16:36 +0000)]
Fix 'security = domain' without winbind. This stores the sid we got
from the PDC as a mapping to the uid we got from getpwnam in the
local idmap.
This should not be worse than the current state, so I decided to
commit it. It is different from abartlet's preliminary patch, but I
believe this is the better solution. Feel free to comment and/or
revert it.
Volker
Jelmer Vernooij [Wed, 11 Jun 2003 16:25:40 +0000 (16:25 +0000)]
Remove obvious question that's answered better in the HOWTO
Jelmer Vernooij [Wed, 11 Jun 2003 15:59:55 +0000 (15:59 +0000)]
Update from Stefan Metzmacher
Jelmer Vernooij [Wed, 11 Jun 2003 12:21:42 +0000 (12:21 +0000)]
Update VFS documentation (patch from Stefan Metzmacher)
Jelmer Vernooij [Wed, 11 Jun 2003 12:20:34 +0000 (12:20 +0000)]
Update from Stefan Metzmacher
Andrew Tridgell [Wed, 11 Jun 2003 06:23:53 +0000 (06:23 +0000)]
several places in client.c rely in commands[i].name == NULL being a
termination condition for checking for commands. Make sure the last
element is indeed NULL.
Andrew Tridgell [Wed, 11 Jun 2003 06:10:10 +0000 (06:10 +0000)]
i'm getting rather sick of this
**********************************************************
**** PLEASE TEST YOUR CHANGES BEFORE CHECKING THEM IN ****
**********************************************************
Jelmer, your change did not fix the -b option, it just make it not
segfault on debian. It did however add a warning and make it not
compile on some systems. It also gave the io_bufsize the value of a
pointer, not the value the user specified.
(this doesn't apply just to Jelmer, I'm just seeing rather too many
checkins from everyone lately where the code could never have possibly
worked, so was obviously checked in without testing)
Andrew Tridgell [Wed, 11 Jun 2003 05:34:14 +0000 (05:34 +0000)]
on AIX FD_ZERO() is defined in terms of bzero(), so we can't have
the "don't use bzero" macros.
In general I think it would be better to have a separate script that
checks for deprecated functions like these using grep rather than
using these cpp tricks. They just get us into trouble.
John Terpstra [Wed, 11 Jun 2003 01:46:00 +0000 (01:46 +0000)]
An update long overdue. Please edit this further guys.
Jeremy Allison [Tue, 10 Jun 2003 22:11:30 +0000 (22:11 +0000)]
Add in rety loop for query_user_list (from APP_HEAD). Deals with a bug
using MSRPC backend and should be safe with ldap backend.
Jeremy.
Jelmer Vernooij [Tue, 10 Jun 2003 19:42:23 +0000 (19:42 +0000)]
Handle <contrib> when generating attributions page
Jelmer Vernooij [Tue, 10 Jun 2003 19:39:16 +0000 (19:39 +0000)]
Add authors
Jelmer Vernooij [Tue, 10 Jun 2003 19:36:28 +0000 (19:36 +0000)]
Fix 2 typos (reported by Marc Groot Koerkamp <marc@its-projects.nl>)
Jelmer Vernooij [Tue, 10 Jun 2003 19:27:32 +0000 (19:27 +0000)]
Don't segfault when -b is specified (fixes debian bug #196833)
Jeremy Allison [Tue, 10 Jun 2003 17:30:28 +0000 (17:30 +0000)]
Ok, I've tried being Mr. Nice Guy and people (you know who you are) still
keep putting bzero BSD'ism's into our source code. Make this an error like
bcopy and others to prevent it in future.
Jeremy.
Richard Sharpe [Tue, 10 Jun 2003 17:18:07 +0000 (17:18 +0000)]
More updates on editreg.c to bring it better in line with the Samba source.
Andrew Tridgell [Tue, 10 Jun 2003 14:09:20 +0000 (14:09 +0000)]
removed editreg from standard build until it is portable. Right now it
fails to build on a ton of platforms as it completely bypasses all of
our portability code.
if you want it then use 'make bin/editreg'. If some distros want to
add that to their spec files then thats up to them, but we really
can't have non-portable code unconditionally built in our main tree.
Andrew Tridgell [Tue, 10 Jun 2003 14:02:46 +0000 (14:02 +0000)]
fixed libsmb code to set correct timeout in cli_state when waiting for
a blocking lock
Andrew Tridgell [Tue, 10 Jun 2003 14:01:57 +0000 (14:01 +0000)]
fixed smbtorture LOCK1 test to know about the correct multiplier for
timed blocking locks
Andrew Tridgell [Tue, 10 Jun 2003 04:15:55 +0000 (04:15 +0000)]
use lp_realm() to find the default realm for 'net ads password'
Andrew Tridgell [Tue, 10 Jun 2003 03:50:38 +0000 (03:50 +0000)]
- fixed the bug that forced us not to use the winbindd cache when we
have a primary ADS domain and a secondary (trusted) NT4 domain. This
caused winbindd to be *really* slow for that setup.
- fixed winbindd_getgrgid(), which was calling uid_to_sid instead of
gid_to_sid(). When you make changes to winbind *PLEASE* test using
nsstest.
Andrew Tridgell [Tue, 10 Jun 2003 03:48:09 +0000 (03:48 +0000)]
use ZERO_STRUCT() instead of memset
Andrew Tridgell [Tue, 10 Jun 2003 03:47:42 +0000 (03:47 +0000)]
added an auth flag that indicates if we should be allowed to fallback
to NTLMSSP for SASL if krb5 fails. This is important as otherwise the
admin may think that a join has succeeeded when kerberos is actually
broken.
Andrew Tridgell [Tue, 10 Jun 2003 03:46:11 +0000 (03:46 +0000)]
don't call a function error_message() as that conflicts with a
kerberos name
Andrew Tridgell [Tue, 10 Jun 2003 02:13:09 +0000 (02:13 +0000)]
when creating aliased parameters in loadparm.c you *must* place the
alias directly after the main entry, otherwise it isn't treated as an
alias.
Jeremy Allison [Tue, 10 Jun 2003 00:55:37 +0000 (00:55 +0000)]
More instrumentation for winbindd.
Jeremy.
Jeremy Allison [Tue, 10 Jun 2003 00:49:43 +0000 (00:49 +0000)]
Instrument cache with debug statements so I can have a clue as to what
is going on in remote large sites.
Jeremy.
Jeremy Allison [Mon, 9 Jun 2003 23:15:34 +0000 (23:15 +0000)]
Add some basic DEBUG statements at level 10 so we can see what is being
called. This is *essential* (and should be done on all the other cli_XX
rpc calls) to help debug winbindd problems remotely.
Jeremy.
Jeremy Allison [Mon, 9 Jun 2003 17:28:42 +0000 (17:28 +0000)]
Fix for crash bug noticed by Luke Howard | PADL Software Pty Ltd | padl.com.
Jeremy.
Alexander Bokovoy [Mon, 9 Jun 2003 13:49:20 +0000 (13:49 +0000)]
Update WHATSNEW.txt with information from release branch
Andrew Tridgell [Mon, 9 Jun 2003 02:54:07 +0000 (02:54 +0000)]
applied patch from bug#140
this fixes a timestamp problem with 64 bit machines
Eloy Paris [Sun, 8 Jun 2003 19:50:13 +0000 (19:50 +0000)]
Debian updates.
Andrew Bartlett [Sun, 8 Jun 2003 12:51:31 +0000 (12:51 +0000)]
Fix some memory leaks and extra cache startups/shutdowns from the trusted
domains lookup code.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Jun 2003 12:49:31 +0000 (12:49 +0000)]
Enforce 'client plaintext auth', 'client lanman auth' and 'client ntlmv2 auth'.
(this now causes things like the LANMAN protocol and contacting servers with 'encrypt passwords = no' set to fail, if configured)
'client ntlmv2 auth' (a BOOL) forces both plaintext and lanman off, and is the
most secure setting for compatible hosts.
Perhaps we should change this to 'client minimum auth'?
Andrew Bartlett
Andrew Bartlett [Sun, 8 Jun 2003 11:39:28 +0000 (11:39 +0000)]
Make sure that we use schannel (if configured) when checking for a valid
join to the DC.
Andrew Bartlett
Andrew Bartlett [Sun, 8 Jun 2003 03:49:35 +0000 (03:49 +0000)]
Rework our smb signing code again, this factors out some of the common
MAC calcuation code, and now supports multiple outstanding packets.
Fixes bug #40
Andrew Bartlett
Gerald Carter [Sat, 7 Jun 2003 18:07:30 +0000 (18:07 +0000)]
bumping cvs version number to distinguish between SAMBA_3_0 cvs tree
and 3.0.0beta1 release
Gerald Carter [Sat, 7 Jun 2003 13:51:13 +0000 (13:51 +0000)]
add back the winbind uid/gid parameter but mark them as deprecated
Andrew Bartlett [Sat, 7 Jun 2003 03:22:37 +0000 (03:22 +0000)]
Try to fix memory leaks found by valgrind in pdb_ldap code.
Andrew Bartlett
Andrew Bartlett [Sat, 7 Jun 2003 03:20:09 +0000 (03:20 +0000)]
Don't assume that the SAM knows the unix home directory - look it up by
getpwnam() if need be.
Fixes bug #130
Andrew Bartlett
Herb Lewis [Sat, 7 Jun 2003 00:46:04 +0000 (00:46 +0000)]
fix up a couple paths
Andrew Tridgell [Sat, 7 Jun 2003 00:27:15 +0000 (00:27 +0000)]
changed 'winbind uid' to 'idmap uid' in build farm tests
Herb Lewis [Fri, 6 Jun 2003 23:55:24 +0000 (23:55 +0000)]
get rid of IRIX o32 builds - some libraries (kerberos and ldap) are only
n32 so smbwrapper fails to link.
Herb Lewis [Fri, 6 Jun 2003 23:35:22 +0000 (23:35 +0000)]
remove o32 targets for IRIX. kerberos and ldap libraries are n32 only so
linking smbwrappers will fail.
Gerald Carter [Fri, 6 Jun 2003 23:09:39 +0000 (23:09 +0000)]
applying David Lee's climessage patch to make sending messages more extendable
Gerald Carter [Fri, 6 Jun 2003 22:56:03 +0000 (22:56 +0000)]
pMandrake/samba2.spec.tmplackaging updates (Buchan)
Herb Lewis [Fri, 6 Jun 2003 22:51:28 +0000 (22:51 +0000)]
make this work for older version of perl
Gerald Carter [Fri, 6 Jun 2003 22:50:54 +0000 (22:50 +0000)]
support LDAP_EXOP_MODIFY_PASSWORD (not experiemental in OpenLDAP 2.1)
Gerald Carter [Fri, 6 Jun 2003 22:33:43 +0000 (22:33 +0000)]
* add in David Lee's utmp patch (defaults to on if available)
* one more try at fixing builds when --with-ldap=no
Herb Lewis [Fri, 6 Jun 2003 22:24:36 +0000 (22:24 +0000)]
get rid of warning about malformed if in Makefile
Gerald Carter [Fri, 6 Jun 2003 21:14:37 +0000 (21:14 +0000)]
remove yet aother RCS tag
Gerald Carter [Fri, 6 Jun 2003 20:31:19 +0000 (20:31 +0000)]
fix build on systems w/o LDAP libs
Eloy Paris [Fri, 6 Jun 2003 20:31:18 +0000 (20:31 +0000)]
Fixing Debian-specific patches so they apply cleanly.
Herb Lewis [Fri, 6 Jun 2003 20:11:23 +0000 (20:11 +0000)]
delete extra PASSDBLIB at beginning
Gerald Carter [Fri, 6 Jun 2003 20:08:29 +0000 (20:08 +0000)]
updates for RedHat packaging