amitay/samba.git
22 years agoConnection record not existing is not a debug level 0.
Jeremy Allison [Tue, 17 Jul 2001 21:32:33 +0000 (21:32 +0000)]
Connection record not existing is not a debug level 0.
Jeremy.
(This used to be commit d7da59f54eed69d50490205d6233bf4801c16998)

22 years agoFixes from Jens-Uwe.Walther@force.de to make the -l option behave
Jeremy Allison [Tue, 17 Jul 2001 20:42:59 +0000 (20:42 +0000)]
Fixes from Jens-Uwe.Walther@force.de to make the -l option behave
consistently.
Jeremy.
(This used to be commit f591ca9f25c54d3cdd0b76df472411e44c95ea47)

22 years agomove the global_machine_password_needs_changing where we need it.
Simo Sorce [Tue, 17 Jul 2001 08:34:12 +0000 (08:34 +0000)]
move the global_machine_password_needs_changing where we need it.
(This used to be commit 8a2f6fbacd275acc7b356169f4022df4860a813e)

22 years agoFix usermanager for domains - we were returning no memory when we
Jeremy Allison [Tue, 17 Jul 2001 02:26:04 +0000 (02:26 +0000)]
Fix usermanager for domains - we were returning no memory when we
should have been returning empty space at end of enumeration.
Jeremy.
(This used to be commit 175c6406925cbd798c3aa049912ab63802f44de4)

22 years agoiFix from "Shahms E. King" <shahms@shahms.com> to get cups user name
Jeremy Allison [Tue, 17 Jul 2001 00:39:07 +0000 (00:39 +0000)]
iFix from "Shahms E. King" <shahms@shahms.com> to get cups user name
right.
Jeremy.
(This used to be commit 34244c2a8d02d09b60dfba30b239b9764b60d35a)

22 years agoFix for incorrect creation of print job names, based on a patch by
Jeremy Allison [Mon, 16 Jul 2001 23:39:26 +0000 (23:39 +0000)]
Fix for incorrect creation of print job names, based on a patch by
José M.Rodríguez <josemi@iies.es>
Jeremy.
(This used to be commit 7ebf284ef7597ee347deb5245d6ba222a102f55d)

22 years agoFix from bernd@arresum.inka.de for broken krb configure.
Jeremy Allison [Mon, 16 Jul 2001 22:58:47 +0000 (22:58 +0000)]
Fix from bernd@arresum.inka.de for broken krb configure.
Jeremy.
(This used to be commit 956e2a4e3783beec13b1baddb6384deac60389a9)

22 years agoFix from Jim Vopni - muliple definitions of "letter".
Jeremy Allison [Mon, 16 Jul 2001 19:36:44 +0000 (19:36 +0000)]
Fix from Jim Vopni - muliple definitions of "letter".
Jeremy.
(This used to be commit 5aa3b18f69646669c8548d1f49214a47dcb39a36)

22 years agoTest if machine password has expired.
Simo Sorce [Mon, 16 Jul 2001 12:16:48 +0000 (12:16 +0000)]
Test if machine password has expired.
This test was lost somehow...
(This used to be commit 065d8f69d5f4a8ffc062bc5592386ee1ac652969)

22 years agoA few tweaks around linking libsmbclient
Richard Sharpe [Sat, 14 Jul 2001 02:52:41 +0000 (02:52 +0000)]
A few tweaks around linking libsmbclient
(This used to be commit 83334fc474008d9f338204e73eacc5665e26bf0c)

22 years agoChanged instances of TRUE, FALSE to True, False as some compilers don't
Tim Potter [Thu, 12 Jul 2001 22:27:00 +0000 (22:27 +0000)]
Changed instances of TRUE, FALSE to True, False as some compilers don't
have the first set of symbols.
(This used to be commit ad0cbfbd790bc5d6003ffcff2835d82fb0140625)

22 years agoRemoved unused variable.
Tim Potter [Thu, 12 Jul 2001 22:19:39 +0000 (22:19 +0000)]
Removed unused variable.
(This used to be commit 914e78f05356c66665ede6948ec18814c2c2c503)

22 years agoFix a stupid error in passing options to CC under AIX
Richard Sharpe [Thu, 12 Jul 2001 07:23:14 +0000 (07:23 +0000)]
Fix a stupid error in passing options to CC under AIX
(This used to be commit b8b5603e0f789014a1237c358db478cf6211e215)

22 years agoToomas Soome's fix for joining a domain the old way.
Jeremy Allison [Wed, 11 Jul 2001 18:52:43 +0000 (18:52 +0000)]
Toomas Soome's fix for joining a domain the old way.
Jeremy.
(This used to be commit 8db233c8b5866df2b3f9f4ed64e7de95807cf371)

22 years agoSome minor doco on what the build_farm dir does
Andrew Bartlett [Wed, 11 Jul 2001 10:53:41 +0000 (10:53 +0000)]
Some minor doco on what the build_farm dir does
(This used to be commit 9bfc480bda8ee3478d17d657cf2fc1a846707130)

22 years agoI think this was just a typo... If there was some method to the madness then
Andrew Bartlett [Wed, 11 Jul 2001 10:03:34 +0000 (10:03 +0000)]
I think this was just a typo...  If there was some method to the madness then
please yell, but the build has been broken for long enough.

Andrew Bartlett
(This used to be commit 93ff9f6101b8569aa375ac805a5efd94bbaa19f2)

22 years agoThis backs out my last change, which broke some of the finer points of RPC
Andrew Bartlett [Wed, 11 Jul 2001 04:27:03 +0000 (04:27 +0000)]
This backs out my last change, which broke some of the finer points of RPC
coding :-).  I'll be more carfull in this area in future.

This does not back out the cli_login change, so domain logons still work, but
only for english.

Andrew Bartlett
(This used to be commit bd3c2a0cddc71daa4165e1a0916208d0c650d55a)

22 years agoA serious set of changes to build libsmbclienmt. Copied much ofthis from
Richard Sharpe [Wed, 11 Jul 2001 01:58:37 +0000 (01:58 +0000)]
A serious set of changes to build libsmbclienmt. Copied much ofthis from
CUPS.
(This used to be commit 7b392f9f6873c3a1ddd26f619f7827e0a9ce180a)

22 years agoAndrew B and I were commiting the same fix at the same time in different
Christopher R. Hertel [Tue, 10 Jul 2001 18:05:29 +0000 (18:05 +0000)]
Andrew B and I were commiting the same fix at the same time in different
trees.  This change simply brings HEAD and 2.2 in line with one another.
Otherwise the code would be differnt but the meaning would be the same,
which is awkward.
Chris 'fifty-seven commits per line changed' Hertel -)-----
(This used to be commit bbf14e2d4e054e2af4f9cbbb05b86f6ac41084c6)

22 years agoFix tree breakage, the last change was entirly non-portable, and we already
Andrew Bartlett [Tue, 10 Jul 2001 17:14:52 +0000 (17:14 +0000)]
Fix tree breakage, the last change was entirly non-portable, and we already
have this nice variable to do exactly this...
(This used to be commit cad6f53433a9345c06ae94c5ef63434e72a2daea)

22 years agoThis fixes security=domain, which has been broke since the big charset
Andrew Bartlett [Tue, 10 Jul 2001 17:02:02 +0000 (17:02 +0000)]
This fixes security=domain, which has been broke since the big charset
changeover.  For my own sainity I have created a new function to fill out both
the header and buffer for a string in an RPC struct.  This DOES NOT take a
length argument, only the actual string to be placed.

The RPC code is currently littered with code that does init_uni_hdr() followed
immidiatly by init_unistr2(), and often the length argument is wrong.  (It was
for the code I changed, even before the charset stuff).  Another bug where we
made strings AT LEAST MAX_UNICODE_LEN long hid this bug.

This works for loopback connections to Samba, and can't be any more broke than
it was before :-).  (We had double and revese conversions, fun...).

In particular this makes us multibyte complient.

In any case, if there are no objections I will slowly convert other bits of
code to the same system.
(This used to be commit cf1d1cd9d6362f6e32ed9c2f6d2f6f25c47705ad)

22 years agoFix from John Malmberg. When I added the additional information to the
Christopher R. Hertel [Tue, 10 Jul 2001 16:10:04 +0000 (16:10 +0000)]
Fix from John Malmberg.  When I added the additional information to the
debug block that reports multiple query responses I did not notice that
the local answer_ip variable was only selectively set.

Chris -)-----
(This used to be commit 22ea0770d87b2faece2e5dfc098ccf27f4da155f)

22 years agoTry to avoid clashes with OpenSSL when built --with-ssl, they also have md5.h,
Andrew Bartlett [Tue, 10 Jul 2001 10:27:52 +0000 (10:27 +0000)]
Try to avoid clashes with OpenSSL when built --with-ssl, they also have md5.h,
but with a more 'interesting' licence.
(This used to be commit 9c9fe2674de0f35da67ba2c3b59861f087932934)

22 years agoChange the order of the -fPIC and -KPIC tests to ensure that UnixWare
Richard Sharpe [Tue, 10 Jul 2001 07:14:24 +0000 (07:14 +0000)]
Change the order of the -fPIC  and  -KPIC tests to ensure that UnixWare
is handled.
(This used to be commit 7631bade9c52c7ebde0c7170a5d4d4ade6bb723c)

22 years agomuch better handling of broken DNS servers
Andrew Tridgell [Tue, 10 Jul 2001 02:53:48 +0000 (02:53 +0000)]
much better handling of broken DNS servers
we no longer lookup our own name when we create a socket in
open_socket_in(). That makes things work much better with the
broken DNS server at VA
(This used to be commit a83d506e5cd6cef23298211b2fe4e0e25c9e5f48)

22 years agoadded winbind_exclude_domain() so smbd can tell the winbind client
Andrew Tridgell [Tue, 10 Jul 2001 02:28:17 +0000 (02:28 +0000)]
added winbind_exclude_domain() so smbd can tell the winbind client
code not to do lookups for a particular domain. This allows winbind to
operate on a Samba PDC
(This used to be commit d472ee3a690fb6db03fd4536e4093a18fc37ddbb)

22 years agoRemoved unused local variables.
Tim Potter [Tue, 10 Jul 2001 00:02:40 +0000 (00:02 +0000)]
Removed unused local variables.
(This used to be commit fa1dfb681b2c7e2de59d6b439ceea738d6f11aff)

22 years agoimplement:
Jean-François Micouleau [Mon, 9 Jul 2001 18:32:54 +0000 (18:32 +0000)]
implement:
LSA_ENUM_PRIVS
LSA_PRIV_GET_DISPNAME
LSA_ENUM_ACCOUNTS
LSA_OPENACCOUNT
LSA_ENUMPRIVSACCOUNT
LSA_GETSYSTEMACCOUNT

It's a work in progress. nobody should expect it to work

J.F.
(This used to be commit 3056357cd8d4b2460f73ba8a8931a143f07fa2a6)

22 years agoadd query user info level 20 (for RAS)
Jean-François Micouleau [Mon, 9 Jul 2001 18:25:40 +0000 (18:25 +0000)]
add query user info level 20 (for RAS)
add query dominfo level 5
some cleanup, don't free talloced memory.
implement delete domain and local groups.

J.F.
(This used to be commit 3f14dda2a21850edfd540be2624867e5f70a382c)

22 years agowhen converting ascii to unicode, if the ascii string is NULL, don't
Jean-François Micouleau [Mon, 9 Jul 2001 18:21:03 +0000 (18:21 +0000)]
when converting ascii to unicode, if the ascii string is NULL, don't
convert it, rpcstr_push doesn't like it.
(This used to be commit a8006e6f3eb1e06f4d48727de31e1229d6eef58a)

22 years agosplit the nt_drivers.tdb in 3 separate tdb files. Should speed-up lookups
Jean-François Micouleau [Mon, 9 Jul 2001 18:19:04 +0000 (18:19 +0000)]
split the nt_drivers.tdb in 3 separate tdb files. Should speed-up lookups

J.F.
(This used to be commit c08e22713ea4ddbc4951dc8dcc40609eb0039ddb)

22 years agowhen retrieving by sid fill also the map.sid field
Jean-François Micouleau [Mon, 9 Jul 2001 18:17:00 +0000 (18:17 +0000)]
when retrieving by sid fill also the map.sid field
(This used to be commit f47797fa9595fb19d9e29ef43c5d0135268db455)

22 years agoallow to rename an NT group
Jean-François Micouleau [Mon, 9 Jul 2001 18:15:28 +0000 (18:15 +0000)]
allow to rename an NT group
(This used to be commit 42fc4f4154ccf2e93322da6b0b234f8f846991dc)

22 years agofixed anonymous login in rpcclient
Andrew Tridgell [Sun, 8 Jul 2001 20:28:17 +0000 (20:28 +0000)]
fixed anonymous login in rpcclient
(This used to be commit b2a4a62b5ed581bf89fe20cdf427c1740fd73266)

22 years agoremoved remnants of libtool
Andrew Tridgell [Sun, 8 Jul 2001 19:18:06 +0000 (19:18 +0000)]
removed remnants of libtool
(This used to be commit abe01facea99f4cda76330d1265edde32b3c0a86)

22 years agoimproved the command line parsing of rpcclient
Andrew Tridgell [Sun, 8 Jul 2001 18:25:56 +0000 (18:25 +0000)]
improved the command line parsing of rpcclient
(This used to be commit 29d8f9bcb3f55365740a5bbafc75dd2dffc107a9)

22 years agoallow winbindd to run as non-root so we can test it more easily
Andrew Tridgell [Sun, 8 Jul 2001 18:25:19 +0000 (18:25 +0000)]
allow winbindd to run as non-root so we can test it more easily
(This used to be commit 001129e2153633dbd079889b11331e9c27786e5b)

22 years agoformatting fix
Andrew Tridgell [Sun, 8 Jul 2001 18:23:53 +0000 (18:23 +0000)]
formatting fix
(This used to be commit 3dc9fd076a2c4c352d51f7b9dfa8b570a231c9e2)

22 years agoadded sec_initial_uid() function so we can ask if a file is owned by
Andrew Tridgell [Sun, 8 Jul 2001 18:22:46 +0000 (18:22 +0000)]
added sec_initial_uid() function so we can ask if a file is owned by
the initial uid
(This used to be commit 9449544428c9c3153f9e757c57bccda382fa2882)

22 years agofixed the auto-initialisation of the iconv descriptors
Andrew Tridgell [Sun, 8 Jul 2001 18:22:04 +0000 (18:22 +0000)]
fixed the auto-initialisation of the iconv descriptors
(This used to be commit 66632782c583356550446638a832cc46a99f9f62)

22 years agoUpdate tests, start testing password server code, now I have it working and
Andrew Bartlett [Sun, 8 Jul 2001 14:24:29 +0000 (14:24 +0000)]
Update tests, start testing password server code, now I have it working and
know what it does...

Andrew Bartlett
(This used to be commit 51903dbfee2fa2b5d94b1d16ebdbb3356e13884d)

22 years agoThis removes unused paramaters from various authtication functions, and should
Andrew Bartlett [Sun, 8 Jul 2001 14:10:30 +0000 (14:10 +0000)]
This removes unused paramaters from various authtication functions, and should
not change behaviour.

This should make my later diffs smaller, where I actualy start cleaning up this
mess...

Andrew Bartlett
(This used to be commit 04f090c224bb7ac3b53c430a591fce1fc939a81c)

22 years agoFix the loading of configuration files using the include syntax.
Andrew Bartlett [Sun, 8 Jul 2001 13:02:16 +0000 (13:02 +0000)]
Fix the loading of configuration files using the include syntax.

We had a problem where if a % macro in the smb.conf could be ignored if the
various files it pointed to had the same time-stamp.

This changes the code to insted check that the both the time-stamp and the
substituted filename are the same over each change.

This was picked up only becouse the build-farm automaticly generates its config
files, and hence gets identical timestamps.

(Why this doesn't happen all the time I'm not entirly sure, somthing to do with
the 'test' paramater to reload_services(), but this fixes this problem).

Andrew Bartlett
(This used to be commit ebd2f9b07c89cce505e821f1caaa6817bbb26db9)

22 years agofixed some unicode and LANMAN2 bugs in trans2 find first/next
Andrew Tridgell [Sat, 7 Jul 2001 21:24:00 +0000 (21:24 +0000)]
fixed some unicode and LANMAN2 bugs in trans2 find first/next
(This used to be commit d5097b2f20c55ddcf4ae8da4d1d0a2fe91938a6b)

22 years agofixed some unicode and LANMAN2 bugs in trans2 find first
Andrew Tridgell [Sat, 7 Jul 2001 21:23:32 +0000 (21:23 +0000)]
fixed some unicode and LANMAN2 bugs in trans2 find first
(This used to be commit dc99b9ddf847c210c72921ba1dedcdc34fd32aab)

22 years agoAdd a new paramater: add machine script
Andrew Bartlett [Sat, 7 Jul 2001 08:45:39 +0000 (08:45 +0000)]
Add a new paramater:  add machine script

This allows the administrator to define different scripts for adding unix users
and automaticly adding machines.  If it is not defined, it falls back to the
value of 'add user script'.

Andrew Bartlett
(This used to be commit 7a478e050f3ab33bd0141a58c698d748f0d2b204)

22 years agoAdd backend encryption support for NTLMv2.
Andrew Bartlett [Sat, 7 Jul 2001 07:00:15 +0000 (07:00 +0000)]
Add backend encryption support for NTLMv2.

The leg-work for this was done by the folks at samba-tng.org, I'm just bringing
it accross to HEAD.

The MD5 implementation is seperatly derived, and does not have the copyright
problems that the one in TNG has.

Also add const to a few places where it makes sence.

Andrew Bartlett
(This used to be commit 8df8e841445dfe09fc7a06bb55d12adc3fecb345)

22 years agoYou can't dump_data() a function pointer...
Andrew Bartlett [Sat, 7 Jul 2001 06:44:50 +0000 (06:44 +0000)]
You can't dump_data() a function pointer...

Andrew Bartlett
(This used to be commit 4f7b2f51b071ee02b9a2ac7decd9fa7d9e078c1a)

22 years agoUpdate smbtorture in line with SAMBA_2_2
Andrew Bartlett [Sat, 7 Jul 2001 06:21:32 +0000 (06:21 +0000)]
Update smbtorture in line with SAMBA_2_2

Andrew Bartlett
(This used to be commit dc588ee87ae16e207324d42f926d7889b70362de)

22 years agoPassword changing via PAM works now. DONT CHANGE THIS UNLESS YOU RE-TEST !!!!!!
Jeremy Allison [Fri, 6 Jul 2001 22:54:49 +0000 (22:54 +0000)]
Password changing via PAM works now. DONT CHANGE THIS UNLESS YOU RE-TEST !!!!!!
Jeremy.
(This used to be commit 79574c07ed5de7194a17c9ee8d189370d8e42bcc)

22 years agofixed strrchr_m
Andrew Tridgell [Fri, 6 Jul 2001 22:32:57 +0000 (22:32 +0000)]
fixed strrchr_m
(This used to be commit f4359b5f7ff891d7fcb5772b589756376ae5d412)

22 years agoDon't try and open tdb secrets file in non-root/local mode.
Jeremy Allison [Fri, 6 Jul 2001 21:53:32 +0000 (21:53 +0000)]
Don't try and open tdb secrets file in non-root/local mode.
Jeremy.
(This used to be commit e78a114425129d980f79db812dbea368123913ed)

22 years agoWrapped dlerror() in the same way as the other dlxxx() calls.
Jeremy Allison [Fri, 6 Jul 2001 18:45:59 +0000 (18:45 +0000)]
Wrapped dlerror() in the same way as the other dlxxx() calls.
Jeremy.
(This used to be commit ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d)

22 years agoAdded JF's fix for max_entries being 0.
Jeremy Allison [Fri, 6 Jul 2001 17:40:16 +0000 (17:40 +0000)]
Added JF's fix for max_entries being 0.
Jeremy.
(This used to be commit 5059fbbb76ffa24658a878080a36e355df4894f5)

22 years agoformatting fixes
Andrew Tridgell [Fri, 6 Jul 2001 11:50:45 +0000 (11:50 +0000)]
formatting fixes
(This used to be commit 67ca6cd8eb20621d3f5926e19822b479ac80cb9c)

22 years agocheck for initialisation in convert_string()
Andrew Tridgell [Fri, 6 Jul 2001 11:50:07 +0000 (11:50 +0000)]
check for initialisation in convert_string()
otherwise initial load in smb.conf can fail
(This used to be commit e9c53606de237f91712bb9d2a9fdf84b80bce38d)

22 years agoA program to display a tree of domains, servers and shares similar to the
Tim Potter [Fri, 6 Jul 2001 10:49:34 +0000 (10:49 +0000)]
A program to display a tree of domains, servers and shares similar to the
network neighbourhood graph.  Still needs a bit of work.
(This used to be commit 6b4559506d1434e6114d9707dd11fdc8ee8d54be)

22 years agofixed a silly bug in the internal UTF8 implementation
Andrew Tridgell [Fri, 6 Jul 2001 08:59:50 +0000 (08:59 +0000)]
fixed a silly bug in the internal UTF8 implementation
(This used to be commit 95a9a1814f1a1ac07c316cc920c7493a86d5a09b)

22 years agofixed bug where we looked at the first byte of a password to determine
Andrew Tridgell [Fri, 6 Jul 2001 04:08:24 +0000 (04:08 +0000)]
fixed bug where we looked at the first byte of a password to determine
if the password is blank. That ain't valid with encrypted passwords!

Jeremy, this changes the semantics of session setup. We no longer
automatically set guest=True when the client happens to choose their
username == the guest username. Instead we rely on the map_to_guest
code. I'm pretty sure this is now the right thing, but please look at
it carefully before putting it in 2.2

This is the bug that was causing the build farm to sometimes
fail. Basically we failed every 256 attempts - ie. when the first byte
of the encrypted password happened to be 0
(This used to be commit 4b35a3494c53fe38532fc12cf1c57e1a3715ad0f)

22 years agogot rid of insanely verbose debug messages on startup
Andrew Tridgell [Fri, 6 Jul 2001 03:18:54 +0000 (03:18 +0000)]
got rid of insanely verbose debug messages on startup
(This used to be commit c3a21fc0f21b3f493031cb0c9a6a990528b276d9)

22 years agofixed inetd operation as non-root
Andrew Tridgell [Fri, 6 Jul 2001 02:25:03 +0000 (02:25 +0000)]
fixed inetd operation as non-root
(This used to be commit 9a9da44455fc35cb9b1625ffefd12a9c5fe48d6b)

22 years agoadded some comments and removed an unnecessary check
Andrew Tridgell [Fri, 6 Jul 2001 00:14:56 +0000 (00:14 +0000)]
added some comments and removed an unnecessary check
(This used to be commit 25c4b3f19315bdef57041da79c12271b72015701)

22 years agoFix race where wrong action (created or opened) could be returned.
Jeremy Allison [Thu, 5 Jul 2001 23:37:09 +0000 (23:37 +0000)]
Fix race where wrong action (created or opened) could be returned.
Jeremy.
(This used to be commit af5b649b017f703a14a69f77a9067efb9c6a8269)

22 years agoFix for enumerating large numbers of users.
Jeremy Allison [Thu, 5 Jul 2001 22:36:25 +0000 (22:36 +0000)]
Fix for enumerating large numbers of users.
Jeremy.
(This used to be commit c8c138c1fbb49799a2dd4c6e781bd89f51c0c0c5)

22 years agoFix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB
Jeremy Allison [Thu, 5 Jul 2001 18:07:46 +0000 (18:07 +0000)]
Fix for rabbit-pellet mode. Chris please test this. Thanks for Dave CB
for help on this.
Jeremy.
(This used to be commit 7efaefdf60e1880cf4ab97e1901248abd00acd79)

22 years agoAllow user to specify CFLAGS even when using configure.developer
Andrew Bartlett [Thu, 5 Jul 2001 12:28:01 +0000 (12:28 +0000)]
Allow user to specify CFLAGS even when using configure.developer

Andrew Bartlett
(This used to be commit 8452300c769b2b046fc4b2fd078e7da0b93cd316)

22 years agoremoved an unreachable statement
Andrew Tridgell [Thu, 5 Jul 2001 11:46:36 +0000 (11:46 +0000)]
removed an unreachable statement
(This used to be commit 6503f53abe2642b002d8c9c64a2e0534c2b39b8c)

22 years agoAllow us to vary the log-level, so we can run at level 1 normally,
Andrew Bartlett [Thu, 5 Jul 2001 11:34:50 +0000 (11:34 +0000)]
Allow us to vary the log-level, so we can run at level 1 normally,
and push it to 10 when we fail (we redo the test).

Also disable the server-level security testing till it know what it does

Andrew Bartlett
(This used to be commit 805c20452e98c5e3d3fb24537ce722d4318ffa90)

22 years agothis fixes the failure of MS office on VFAT partitions on Linux
Andrew Tridgell [Thu, 5 Jul 2001 10:33:10 +0000 (10:33 +0000)]
this fixes the failure of MS office on VFAT partitions on Linux

The problem is that ftruncate can't expand on VFAT, but it can on
ext2. That means our autoconf test is useless. I have recoded it to
use the alternative to ftruncate when then sys_ftruncate fails.

Jeremy, do you want this for 2.2.1?
(This used to be commit 970236ee9926b64c0b39bd8a36b2a9317206873c)

22 years agoRenamed formal parameter fd to fnum because we're talking about SMB file
Tim Potter [Thu, 5 Jul 2001 08:24:03 +0000 (08:24 +0000)]
Renamed formal parameter fd to fnum because we're talking about SMB file
handles, not unix ones.
(This used to be commit 974790e45e6774a0e8ca3f8bb73ea941457e0866)

22 years agoadded line-feed at end of templates
Andrew Tridgell [Thu, 5 Jul 2001 06:51:47 +0000 (06:51 +0000)]
added line-feed at end of templates
(This used to be commit fe5d38780fe2998576ed0ddbec6996d32cbda4a1)

22 years agofixed a bug in the parameters SMBctemp uses in open_file_shared()
Andrew Tridgell [Thu, 5 Jul 2001 06:39:15 +0000 (06:39 +0000)]
fixed a bug in the parameters SMBctemp uses in open_file_shared()
(This used to be commit a1dee993cbf52e7232b65323430c8574843eb168)

22 years agofixed compilation of masktest on AIX
Andrew Tridgell [Thu, 5 Jul 2001 05:53:08 +0000 (05:53 +0000)]
fixed compilation of masktest on AIX
(This used to be commit 832a91bbe643ba816407965863b8fa3bb5b8730c)

22 years agouse alpha_strcpy on DNS names
Andrew Tridgell [Thu, 5 Jul 2001 04:44:09 +0000 (04:44 +0000)]
use alpha_strcpy on DNS names
(This used to be commit f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6)

22 years agouse alpha_strcpy on the domain as it comes off the wire
Andrew Tridgell [Thu, 5 Jul 2001 04:34:50 +0000 (04:34 +0000)]
use alpha_strcpy on the domain as it comes off the wire
(This used to be commit 3b9eb528f56b325399e5a4588242bb6d9f9226e2)

22 years agooptimised the 7 bit case for utf8 conversion
Andrew Tridgell [Thu, 5 Jul 2001 00:57:42 +0000 (00:57 +0000)]
optimised the 7 bit case for utf8 conversion
(This used to be commit 0c61e54f152eca6b7607fcce9ea512bc60a19060)

22 years agomake sure we reset the shift state on error for charsets like SJIS
Andrew Tridgell [Thu, 5 Jul 2001 00:04:30 +0000 (00:04 +0000)]
make sure we reset the shift state on error for charsets like SJIS
(This used to be commit 42648a7aada48220fdfaf6acfe95b9614122f1da)

22 years agoallow to use usrmgr/svrmgr tools in win95
Jean-François Micouleau [Wed, 4 Jul 2001 21:57:03 +0000 (21:57 +0000)]
allow to use usrmgr/svrmgr tools in win95

pretty cool
(This used to be commit 04575ff17b9b5fe802e66bb8dd1948317ab35485)

22 years agounicode string length is twice longer ;-)
Jean-François Micouleau [Wed, 4 Jul 2001 18:57:16 +0000 (18:57 +0000)]
unicode string length is twice longer ;-)
(This used to be commit d39d8429d1cb8a976022ae92a1ce551f7d876aff)

22 years agoadded builtin support for UTF8
Andrew Tridgell [Wed, 4 Jul 2001 15:08:30 +0000 (15:08 +0000)]
added builtin support for UTF8
(This used to be commit 76d83e7f704cf016308dccaad9bc42d57db97686)

22 years agomore portability fixes
Andrew Tridgell [Wed, 4 Jul 2001 14:41:06 +0000 (14:41 +0000)]
more portability fixes
(This used to be commit bf818268516cfbebcdeacbb0528395e9bbb8e442)

22 years agoportability fixes
Andrew Tridgell [Wed, 4 Jul 2001 12:16:24 +0000 (12:16 +0000)]
portability fixes
(This used to be commit 7a5c24c219d8b19f2c3cd11fdde3ebcede0646a2)

22 years agogot rid of __FUNCTION__ debug
Andrew Tridgell [Wed, 4 Jul 2001 08:03:47 +0000 (08:03 +0000)]
got rid of __FUNCTION__ debug
(This used to be commit 815ca752744c2ae93390445f4bb6532d396bbc59)

22 years agofixed uninitialised variable
Andrew Tridgell [Wed, 4 Jul 2001 07:50:54 +0000 (07:50 +0000)]
fixed uninitialised variable
(This used to be commit a03992f19b268ca212ada5869c6fc93da5ac3c35)

22 years agowe don't need the codepage sources any more
Andrew Tridgell [Wed, 4 Jul 2001 07:42:57 +0000 (07:42 +0000)]
we don't need the codepage sources any more
(This used to be commit 8dbee134b99c8f87e6e591ffd52edd1f71c0aaec)

22 years agowe don't need the codepages any more
Andrew Tridgell [Wed, 4 Jul 2001 07:41:37 +0000 (07:41 +0000)]
we don't need the codepages any more
(This used to be commit fa18e842f8f8f7d7f7a0674cdf375b398f655745)

22 years agomissed a couple of strchr calls
Andrew Tridgell [Wed, 4 Jul 2001 07:39:01 +0000 (07:39 +0000)]
missed a couple of strchr calls
(This used to be commit 57e7df8ae58020ab653307c1fdfbadd44983e900)

22 years agostrchr and strrchr are macros when compiling with optimisation in gcc, so we can...
Andrew Tridgell [Wed, 4 Jul 2001 07:36:09 +0000 (07:36 +0000)]
strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)

22 years agoThe big character set handling changeover!
Andrew Tridgell [Wed, 4 Jul 2001 07:15:53 +0000 (07:15 +0000)]
The big character set handling changeover!

This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267960e56005a741817ebd227ecfc512a)

22 years agoThis brings HEAD into line with SAMBA_2_2, they now both use bindir.
Andrew Bartlett [Wed, 4 Jul 2001 06:31:15 +0000 (06:31 +0000)]
This brings HEAD into line with SAMBA_2_2, they now both use bindir.

Andrew Bartlett
(This used to be commit cfd81e62c81dcb114e2c9f917a01168273bf75b0)

22 years agoremoved some debug code
Andrew Tridgell [Wed, 4 Jul 2001 04:39:52 +0000 (04:39 +0000)]
removed some debug code
(This used to be commit 1f6240daae4c5503d6fbb846d89cae986e010fc8)

22 years agocheck for bad usernames early in session setup
Andrew Tridgell [Wed, 4 Jul 2001 04:17:58 +0000 (04:17 +0000)]
check for bad usernames early in session setup
(This used to be commit 657836599a847578096696af27cd7c9f0d52c931)

22 years agoRemoved bogus server_n local variable in connect_one() function.
Tim Potter [Wed, 4 Jul 2001 04:04:17 +0000 (04:04 +0000)]
Removed bogus server_n local variable in connect_one() function.
(This used to be commit 69d90a8af167d53ebdb6d7aeef41b28b672288d1)

22 years agoEnsure we correctly round down to 2 second boundary if dos filetime
Jeremy Allison [Wed, 4 Jul 2001 01:01:02 +0000 (01:01 +0000)]
Ensure we correctly round down to 2 second boundary if dos filetime
set for a share.
Jeremy.
(This used to be commit 8f57233c0f871763bc3657d754c894dbd29ae501)

22 years agoSmall warning removal tidyup.
Jeremy Allison [Tue, 3 Jul 2001 22:00:11 +0000 (22:00 +0000)]
Small warning removal tidyup.
Jeremy.
(This used to be commit 5cf7bc582bc2dc4fa7be43d87c81e94f6dd00573)

22 years agoRemove the exit_server() calls that stop nmbd linking.
Jeremy Allison [Tue, 3 Jul 2001 21:32:23 +0000 (21:32 +0000)]
Remove the exit_server() calls that stop nmbd linking.
Jeremy.
(This used to be commit 110061ff5a0de7a5d7c5ee003d85d4d600c2531c)

22 years agoFixed warnings and made const-safe so it has the correct prototype.
Jeremy Allison [Tue, 3 Jul 2001 21:07:26 +0000 (21:07 +0000)]
Fixed warnings and made const-safe so it has the correct prototype.
Jeremy.
(This used to be commit e0f6863a1155db5206c103c29dc597d7c297ec11)

22 years agoRemoved the default addition of /include to the directory given in
Jeremy Allison [Tue, 3 Jul 2001 19:34:18 +0000 (19:34 +0000)]
Removed the default addition of /include to the directory given in
--with-sslinc. Should allow building on RH7.1 when set correctly.
Jeremy.
(This used to be commit 016a97d71aa1ac9de782248c645aecbf22ed647b)

22 years agoUpdated to latest from gnu.org.
Jeremy Allison [Tue, 3 Jul 2001 18:34:41 +0000 (18:34 +0000)]
Updated to latest from gnu.org.
Jeremy.
(This used to be commit 03e1d4428e6efb3f231cdfc6820fe5039b3ef494)

22 years agoAdded #define of int32 to int for cray. This will almost certainly cause
Jeremy Allison [Tue, 3 Jul 2001 18:33:16 +0000 (18:33 +0000)]
Added #define of int32 to int for cray. This will almost certainly cause
the rpc code to fail on the cray....
Jeremy.
(This used to be commit 33a299a0c42bb7090e2030fb1e5cafdf07346bc6)