ira/wip.git
22 years agoRoll back proto.h changes -- to hard to do them portably. Leave
Martin Pool [Mon, 25 Mar 2002 01:29:55 +0000 (01:29 +0000)]
Roll back proto.h changes -- to hard to do them portably.  Leave
Herb's installdat change in.
(This used to be commit 39a6b12fdc6a45cd51d3c11785bffeedd9fc78cd)

22 years agoSpelling fixes.
Tim Potter [Sun, 24 Mar 2002 23:25:05 +0000 (23:25 +0000)]
Spelling fixes.
(This used to be commit a5ac2ac4ada48ee3be061a32ba40bd8c4b3b3865)

22 years agoSet default recycle directory permissions as 0770. Unlink on rename
Jeremy Allison [Sat, 23 Mar 2002 20:48:45 +0000 (20:48 +0000)]
Set default recycle directory permissions as 0770. Unlink on rename
fail.
Jeremy.
(This used to be commit 42981c819a07dd35296ecc1ee733ea587f69bcce)

22 years agoDocumentation updates.
Andrew Bartlett [Sat, 23 Mar 2002 09:30:05 +0000 (09:30 +0000)]
Documentation updates.
(This used to be commit 9a9e4e92ae079eb906dcc7123df092f4917b5dad)

22 years agoExtra parinoa and DEBUG()s for the make_user_info_map() code.
Andrew Bartlett [Sat, 23 Mar 2002 09:01:30 +0000 (09:01 +0000)]
Extra parinoa and DEBUG()s for the make_user_info_map() code.
(This used to be commit aa5f125bc0efeee99254e03f36426420db676527)

22 years agoCorrectly store the hostname of the remote machine if so configured. If the
Andrew Bartlett [Sat, 23 Mar 2002 09:00:27 +0000 (09:00 +0000)]
Correctly store the hostname of the remote machine if so configured.  If the
reverse DNS fails, then store the IP.
(This used to be commit d97771aa80b48fbdb9cae3e9712e35fcc895b148)

22 years agorerun autoconf
Andrew Bartlett [Sat, 23 Mar 2002 08:46:14 +0000 (08:46 +0000)]
rerun autoconf
(This used to be commit 32a8513619c29b1797a69849b73e62705a0f7c0b)

22 years agoMake a number of the lookup tables 'const'. I'm told this assists in sharing
Andrew Bartlett [Sat, 23 Mar 2002 08:45:03 +0000 (08:45 +0000)]
Make a number of the lookup tables 'const'.  I'm told this assists in sharing
memory between users of shared libs.

Andrew Bartlett
(This used to be commit 41dd5a4d292bb08fa313f6220014cd9b4490237b)

22 years agoUpdate some of the DEBUG()s in Get_Pwnam_internal()
Andrew Bartlett [Sat, 23 Mar 2002 08:40:15 +0000 (08:40 +0000)]
Update some of the DEBUG()s in Get_Pwnam_internal()

Andrew Bartlett
(This used to be commit 20f6f9e3a221da60aae0de166f17085053e27286)

22 years agoPatch from Hasch@t-online.de (Juergen Hasch) to add allocate and talloc
Andrew Bartlett [Sat, 23 Mar 2002 08:39:04 +0000 (08:39 +0000)]
Patch from Hasch@t-online.de (Juergen Hasch) to add allocate and talloc
push/pull utf8 functions.  To be used for international ADS support.

Andrew Bartlett
(This used to be commit 9ab144810efeb0b086257143b01ca47ee5718861)

22 years agoMinor fixes:
Andrew Bartlett [Sat, 23 Mar 2002 08:32:25 +0000 (08:32 +0000)]
Minor fixes:

- Fix warnings in loadparm.c
- Remove the unused 'passdb modules path' paramater

- Make pdb_ldap use $ termination rather than the workstation trust account
  flag becouse some 'machine' accounts appear as normal accounts at creation
  time.  Also covers domains etc.

Andrew Bartlett
(This used to be commit 8c82a3daf777bcd4cd4388d30222e370fe800819)

22 years agoVarious winbind updates:
Andrew Bartlett [Sat, 23 Mar 2002 08:28:19 +0000 (08:28 +0000)]
Various winbind updates:

- pam_winbind updates from vance, fixing a typo and making some the options
  work properly.

- Extra parinoia in the winbind connection loop

- Allow pam_winbind to compile on HP-UX (Don Mcall, more work to do).

- Fix up configure.in to use the same method for building the test .so
  as the Makefile uses.

Andrew Bartlett
(This used to be commit 8e705dd9215b1cb3f44d6348094679d7dc6a7fbd)

22 years agoJoin as a server trust account if the server role is either PDC or BDC.
Andrew Bartlett [Sat, 23 Mar 2002 08:03:55 +0000 (08:03 +0000)]
Join as a server trust account if the server role is either PDC or BDC.
(This used to be commit 0784ab67addb3422a2d17363b4c3328d2e4b1008)

22 years agoForgot torture hacks...
Jeremy Allison [Sat, 23 Mar 2002 02:59:20 +0000 (02:59 +0000)]
Forgot torture hacks...
Jeremy.
(This used to be commit ba6c3d65a53278b5a4c49d437373cfe613a2f80f)

22 years agoFix the mp3 rename bug - also tidy up our open code and remove the special
Jeremy Allison [Sat, 23 Mar 2002 02:57:44 +0000 (02:57 +0000)]
Fix the mp3 rename bug - also tidy up our open code and remove the special
cases for rename and unlink. Had to add desired_access into the share mode record.
Jeremy.
(This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)

22 years agoStomped on some header file version numbers that have crept back in.
Tim Potter [Fri, 22 Mar 2002 06:24:38 +0000 (06:24 +0000)]
Stomped on some header file version numbers that have crept back in.
(This used to be commit e66bdf1229ba84f64c19e817e2c4081dbbf0bee8)

22 years agoMake debug statment less confusing.
Tim Potter [Fri, 22 Mar 2002 05:43:08 +0000 (05:43 +0000)]
Make debug statment less confusing.
(This used to be commit 301a7f56dd3e7160147da656ff521671d04fe291)

22 years agocut and paste inserted spaces instead of tab. Some versions of make don't
Herb Lewis [Fri, 22 Mar 2002 02:39:35 +0000 (02:39 +0000)]
cut and paste inserted spaces instead of tab. Some versions of make don't
like this
(This used to be commit c86d266d6eb665a6182f10d8acf80aadb3b6e39e)

22 years agoAdded enumerate trusted domains and check secret.
Tim Potter [Fri, 22 Mar 2002 00:10:53 +0000 (00:10 +0000)]
Added enumerate trusted domains and check secret.

Added configuration dictionary to retrieve smb.conf parameters.
(This used to be commit 4d31151977f358c50986131dbd311c3ee69e9286)

22 years agoadd a -n maxloops option so this can be run in a script and end after a
Herb Lewis [Fri, 22 Mar 2002 00:09:09 +0000 (00:09 +0000)]
add a -n maxloops option so this can be run in a script and end after a
certain number of iterations.
(This used to be commit bdac7cb9c5bdd52db06b2507d8660bc1c9debea5)

22 years agomake install should also install the default dat files from codepages
Herb Lewis [Thu, 21 Mar 2002 23:42:54 +0000 (23:42 +0000)]
make install should also install the default dat files from codepages
directory so we don't keep getting these stupid error messages about
incorrect size for valid.dat upcase.dat and lowcase.dat
(This used to be commit 4af0c7a93f626dde33fd737618c2b786f83046c7)

22 years agoMissed a couple of fetch/store_ints.
Jeremy Allison [Thu, 21 Mar 2002 23:41:28 +0000 (23:41 +0000)]
Missed a couple of fetch/store_ints.
Jeremy.
(This used to be commit 51189e62a7f20db1835a54c7af1e39f4712c0b95)

22 years agoMake winbindd_idmap tdb endian independent. This is very important for
Jeremy Allison [Thu, 21 Mar 2002 23:39:17 +0000 (23:39 +0000)]
Make winbindd_idmap tdb endian independent. This is very important for
sharing between machines with rsync.
Finally removed tdb_store_int/tdb_fetch_int.
Now only tdb_store_int32/tdb_fetch_int32 which are endian independent
are allowed.
Jeremy.
(This used to be commit 1c4a00dcc13f4a7c5876a5cf63ca730190d1132e)

22 years agoWhen upgrading from an old idmap tdb, remember to overwrite the reverse
Jeremy Allison [Thu, 21 Mar 2002 23:19:17 +0000 (23:19 +0000)]
When upgrading from an old idmap tdb, remember to overwrite the reverse
mapping as well as the forward one. Found this in doing the backport to
2.2.x. This is *essential* to upgrade an old idmap file to a new one.
Jeremy.
(This used to be commit 980355de0c9d0d1116b29b0a5be98d0b277f24dc)

22 years agomerge fix for core dump when called with no args from 2.2
Herb Lewis [Thu, 21 Mar 2002 22:36:04 +0000 (22:36 +0000)]
merge fix for core dump when called with no args from 2.2
(This used to be commit 8b38cca631a7434fcce0686c8e41c986a0a36a21)

22 years agoFix stupid typo !
Jeremy Allison [Thu, 21 Mar 2002 21:23:22 +0000 (21:23 +0000)]
Fix stupid typo !
Jeremy.
(This used to be commit d0b58f66edeac516bde2dff79ab5cf529c37954b)

22 years agoadd .proto.check
Herb Lewis [Thu, 21 Mar 2002 14:09:02 +0000 (14:09 +0000)]
add .proto.check
(This used to be commit 3e602671e2b75b29e85b66cdf4f60fe70cc52701)

22 years agoupdate usage message with other options. Add a -d debuglevel option
Herb Lewis [Thu, 21 Mar 2002 14:03:41 +0000 (14:03 +0000)]
update usage message with other options. Add a -d debuglevel option
(This used to be commit 32d5dc824ab26c140feb8041314783caab622c65)

22 years agomust use native endian index when creating default valid.dat table so it
Herb Lewis [Thu, 21 Mar 2002 14:01:57 +0000 (14:01 +0000)]
must use native endian index when creating default valid.dat table so it
is the same on big and little endian systems.
(This used to be commit 6fa09ee88143882abcc51de05002261db767d775)

22 years agoreturn . and .. first in readdir - this fixes masktest on IRIX which
Herb Lewis [Thu, 21 Mar 2002 14:00:13 +0000 (14:00 +0000)]
return . and .. first in readdir - this fixes masktest on IRIX which
returns . then single letter files then .. then all other files.
(This used to be commit d4d9361eec11f50c780ed4c79bc9775ac24d8c0e)

22 years agoThere is no reason we can't join a domain with secuirty=user. In fact we
Andrew Bartlett [Thu, 21 Mar 2002 11:54:43 +0000 (11:54 +0000)]
There is no reason we can't join a domain with secuirty=user.  In fact we
need to when we are a BDC or a PDC doing a self-join.

Andrew Bartlett
(This used to be commit 996cd3a0979a92b087003982bc61796a8090a787)

22 years agomake net ads info work with -S
Andrew Tridgell [Thu, 21 Mar 2002 04:48:24 +0000 (04:48 +0000)]
make net ads info work with -S
(This used to be commit 57645fd85b7789d7807a5ffb5b2572c6d5f9e3de)

22 years agoCompile fix for --with-profiling-data
Tim Potter [Thu, 21 Mar 2002 04:25:31 +0000 (04:25 +0000)]
Compile fix for --with-profiling-data
(This used to be commit 1ae07c42a449f4d4049c15f349f0829b73c12b5e)

22 years agoDon't leak memory on failure.
Andrew Bartlett [Thu, 21 Mar 2002 04:00:25 +0000 (04:00 +0000)]
Don't leak memory on failure.
(This used to be commit 438f028fc45ee6c5b12fa960beabea4b5fdcff38)

22 years agoMake sure to initaliase SAM_ACCOUNT pointers to NULL, otherwise pdb_init_sam()
Andrew Bartlett [Thu, 21 Mar 2002 03:53:44 +0000 (03:53 +0000)]
Make sure to initaliase SAM_ACCOUNT pointers to NULL, otherwise pdb_init_sam()
fails.

Andrew Bartlett
(This used to be commit 56009ffbaa00259d15f286248a7ab73c55371819)

22 years agofixed the secondary group mappings for ADS users
Andrew Tridgell [Thu, 21 Mar 2002 02:28:23 +0000 (02:28 +0000)]
fixed the secondary group mappings for ADS users
(This used to be commit be399f5823bb8dfe6cc28d58aaeceb51f1b7382b)

22 years agomerge from APPLIANCE_HEAD
Gerald Carter [Wed, 20 Mar 2002 23:09:34 +0000 (23:09 +0000)]
merge from APPLIANCE_HEAD
(This used to be commit 9282aa02d44ae7a7688e8399b397aae35f73ddd1)

22 years agoEnsure we don't do lp_servicename()'s in tdb traverse as this
Jeremy Allison [Wed, 20 Mar 2002 22:39:30 +0000 (22:39 +0000)]
Ensure we don't do lp_servicename()'s in tdb traverse as this
allocates lots of memory.
Jeremy.
(This used to be commit fbc8c6a1096ec829f48b403239f105065bf155b1)

22 years agoPrint queue entries *must* have queue names, not numbers - numbers are
Jeremy Allison [Wed, 20 Mar 2002 21:55:57 +0000 (21:55 +0000)]
Print queue entries *must* have queue names, not numbers - numbers are
not identical between different smbds (mr potter, come here and take
your medicine.... :-).
Jeremy.
(This used to be commit 230941d2fbb746d39c00e482e7f600c68aa45efa)

22 years agoJohn's patch changed the size of a structure stored in the tdb - we
Jeremy Allison [Wed, 20 Mar 2002 21:08:19 +0000 (21:08 +0000)]
John's patch changed the size of a structure stored in the tdb - we
must thus update the versionid of the tdb.
Jeremy.
(This used to be commit c5230a5387d6ef57f89f4224b75de84b18c109ff)

22 years agoHEAD only fix for truncate from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
Jeremy Allison [Wed, 20 Mar 2002 19:29:06 +0000 (19:29 +0000)]
HEAD only fix for truncate from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
This code needs replacing with the trans2.c from 2.2.x.
Jeremy.
(This used to be commit bc8d4b98807ece734db3e1c3a2baabf4b28e7b4f)

22 years agoMake ldapsam compile again.
Andrew Bartlett [Wed, 20 Mar 2002 12:05:10 +0000 (12:05 +0000)]
Make ldapsam compile again.
(This used to be commit 520c8626dc238a1e338635981d1b41950f2219b6)

22 years agoBUFFER_SIZE Should be 128k if large read write tests are to work.
Jeremy Allison [Wed, 20 Mar 2002 07:20:38 +0000 (07:20 +0000)]
BUFFER_SIZE Should be 128k if large read write tests are to work.
Jeremy.
(This used to be commit 2be9b253ad40e125169725ea79e6723cb40c5e6a)

22 years agoAdd assertions that kill() is never accidentally passed a non-positive
Martin Pool [Wed, 20 Mar 2002 06:57:03 +0000 (06:57 +0000)]
Add assertions that kill() is never accidentally passed a non-positive
pid.  This follows a bug in rsync where it would accidentally
kill(-1), removing all the user's processes.  I can't see any way this
would directly happen in Samba, but having the assertions seems
beneficial.

http://cvs.samba.org/cgi-bin/cvsweb/rsync/util.c.diff?r1=1.108&r2=1.109&f=h
(This used to be commit 098905bea29c7d5b886809d431294ddf2fc1e152)

22 years agoActually use flags passed in PYTHON_CFLAGS variable.
Tim Potter [Wed, 20 Mar 2002 06:29:23 +0000 (06:29 +0000)]
Actually use flags passed in PYTHON_CFLAGS variable.

Use py_common.c in winbind extension module for correct initialisation.

Some reformatting.
(This used to be commit b1b7ae8bcfafc92c2d475908f4220f3f1ff941a1)

22 years agoAdded enum domain users and enum domain groups.
Tim Potter [Wed, 20 Mar 2002 06:27:41 +0000 (06:27 +0000)]
Added enum domain users and enum domain groups.
(This used to be commit ba0624d0c397d49b032f34727c910c0be7014813)

22 years agoPass $(CFLAGS) and $(CPPFLAGS) to python compile instead of $(FLAGS)
Tim Potter [Wed, 20 Mar 2002 04:58:38 +0000 (04:58 +0000)]
Pass $(CFLAGS) and $(CPPFLAGS) to python compile instead of $(FLAGS)
(This used to be commit 8e4bb2f8a05b37ba508eefe0d0d3f4db103a4418)

22 years agoAdded name_to_sid and sid_to_name functions.
Tim Potter [Wed, 20 Mar 2002 04:53:44 +0000 (04:53 +0000)]
Added name_to_sid and sid_to_name functions.
(This used to be commit 5e955b5fcc53b80238bbc178ca0bcd8b3e81c05f)

22 years agoRemove nsswitch from include directories.
Tim Potter [Wed, 20 Mar 2002 04:51:40 +0000 (04:51 +0000)]
Remove nsswitch from include directories.
(This used to be commit 19dd8ba8267320c0f219639abe3aa701b69e5c56)

22 years agoCache call to winbind separator.
Tim Potter [Wed, 20 Mar 2002 03:54:47 +0000 (03:54 +0000)]
Cache call to winbind separator.

Some random reformatting and cleanup.

Display output of wbinfo -s using actual winbind separator.
(This used to be commit 099f8c5dfdb150b025e29d5c8ca060f1ee1c0145)

22 years agoresetprinter merge from SAMBA_2_2
Gerald Carter [Wed, 20 Mar 2002 03:37:27 +0000 (03:37 +0000)]
resetprinter merge from SAMBA_2_2
(This used to be commit 88d8897e21749f177952b264031aa386bbbeaaeb)

22 years agoIgnore autogenerated setup.py
Tim Potter [Wed, 20 Mar 2002 03:32:44 +0000 (03:32 +0000)]
Ignore autogenerated setup.py
(This used to be commit b06fc0cc84a0ba7cfb19c601682351b11a27364c)

22 years agoInitial version.
Tim Potter [Wed, 20 Mar 2002 03:29:03 +0000 (03:29 +0000)]
Initial version.
(This used to be commit d35770d06f7bc396cf32337a4e1104b5fe8a3ca8)

22 years agoCorrectly increment offset in cli_smbwrite.
Jeremy Allison [Wed, 20 Mar 2002 01:47:31 +0000 (01:47 +0000)]
Correctly increment offset in cli_smbwrite.
Jeremy.
(This used to be commit 5b04b5f1df3ee509e7314064966be09e2202b0ef)

22 years agoAllow a zero rid in pdb_smbpasswd. When given a zero rid the pdb backend
Andrew Bartlett [Wed, 20 Mar 2002 01:46:40 +0000 (01:46 +0000)]
Allow a zero rid in pdb_smbpasswd.  When given a zero rid the pdb backend
should chose the next available RID.  For smbpasswd it just means using the algorithm, but other backends can do somthing more useful.

Andrew Bartlett
(This used to be commit 0f0f87e6c31b468368c5a4729db892622e616cac)

22 years agoTest against W2K that we're doing large read/writes correctly (we are).
Jeremy Allison [Wed, 20 Mar 2002 01:43:06 +0000 (01:43 +0000)]
Test against W2K that we're doing large read/writes correctly (we are).
At least with 14 word writes.
Jeremy.
(This used to be commit 24ef6258a16e6b4673f1088d64b79bddcd268df5)

22 years agoEnsure we get a real fd when opening for set file allocation.
Jeremy Allison [Wed, 20 Mar 2002 00:58:23 +0000 (00:58 +0000)]
Ensure we get a real fd when opening for set file allocation.
Jeremy.
(This used to be commit 00cabb2346fb11c5568b6c7a038c313ae293a0c2)

22 years agoMerge of Richard's lookupsid fix.
Tim Potter [Wed, 20 Mar 2002 00:56:36 +0000 (00:56 +0000)]
Merge of Richard's lookupsid fix.
(This used to be commit 3c587384cbe5e10f7fa46f6996581b088dead7f5)

22 years agoFix for debug typo.
Jeremy Allison [Wed, 20 Mar 2002 00:49:44 +0000 (00:49 +0000)]
Fix for debug typo.
(This used to be commit 5b43519219991fe14c8ce1993c16557bf5ceccb4)

22 years agoRemove the "stat open" code - make it inline. This should fix the
Jeremy Allison [Wed, 20 Mar 2002 00:46:53 +0000 (00:46 +0000)]
Remove the "stat open" code - make it inline. This should fix the
bugs with opening and renaming mp3 files, also the word rename
problems that people have had for a while.
Needs a make clean :-) make.
Also added JohnR's printing fix.
Jeremy.
(This used to be commit 504e5ef0494c54efbd0357e334cb2aa5a9eb9c14)

22 years agoMerge from app-head:
Tim Potter [Wed, 20 Mar 2002 00:24:35 +0000 (00:24 +0000)]
Merge from app-head:

> Don't put two copies of the server name in construct_printer_info_1()
(This used to be commit 47b1003bc5a069e84cb20df507022e5ff3e93832)

22 years agoPatch to configure.in and Makefile.in for Python extensions.
Tim Potter [Tue, 19 Mar 2002 23:36:06 +0000 (23:36 +0000)]
Patch to configure.in and Makefile.in for Python extensions.
(This used to be commit 4d172b712fc2be697db5d1dbccff29ad5708eeee)

22 years agoMerge JohnR's fix.
Jeremy Allison [Tue, 19 Mar 2002 23:33:32 +0000 (23:33 +0000)]
Merge JohnR's fix.
Jeremy.
(This used to be commit d5fd1fd859cec3076d2f01ed234314ea8d80a753)

22 years agothe beginning of a test to determine and display a servers properties
Andrew Tridgell [Tue, 19 Mar 2002 23:19:00 +0000 (23:19 +0000)]
the beginning of a test to determine and display a servers properties

just shows capabilities at the moment
(This used to be commit 76fe90343c4ca76ad58c7b31a1e3235926fd6c75)

22 years agosetup.py for samba python wrappers
Tim Potter [Tue, 19 Mar 2002 22:55:21 +0000 (22:55 +0000)]
setup.py for samba python wrappers
(This used to be commit 85650ee3bcb748fc481ff254168eef5b22b6eae8)

22 years agomake "net ads user" and "net ads group" also use the new paged interface
Andrew Tridgell [Tue, 19 Mar 2002 22:16:19 +0000 (22:16 +0000)]
make "net ads user" and "net ads group" also use the new paged interface
(This used to be commit 98769f08e723c616a98a2f0c427e9b0e22b28be9)

22 years agoupdated winbindd to used paged ldap searches for all ldap queries
Andrew Tridgell [Tue, 19 Mar 2002 22:15:32 +0000 (22:15 +0000)]
updated winbindd to used paged ldap searches for all ldap queries
(This used to be commit 41e1560798b7eb19575b0d97a5e489eb170bcfd5)

22 years agoadded a ads_do_search_all() call, which is a more convenient interface
Andrew Tridgell [Tue, 19 Mar 2002 22:14:53 +0000 (22:14 +0000)]
added a ads_do_search_all() call, which is a more convenient interface
to paged searches. This makes updating winbindd to used paged searches
trivial.
(This used to be commit 514c11b4e3fcc765a8087405333bd351c05c9e36)

22 years agosecond step to gain free uid<->rid mapping
Simo Sorce [Tue, 19 Mar 2002 13:57:53 +0000 (13:57 +0000)]
second step to gain free uid<->rid mapping
we still need to free gid<->rid mapping and few other stuff
(This used to be commit aa4b6f8181f34196a28951264dd8b631a5deef7f)

22 years agofixed paged controls on my box. The problem seems to be incorrect
Andrew Tridgell [Tue, 19 Mar 2002 12:58:38 +0000 (12:58 +0000)]
fixed paged controls on my box. The problem seems to be incorrect
referrals parsing in the openldap libs. By disabling referrals we get
valid controls back and the cookies work.
(This used to be commit 8bf487ddff240150d7a92aaa0f978dd30062c331)

22 years agoTake out autobuild dependency on proto.h; breaks some proprietary Makes.
Martin Pool [Tue, 19 Mar 2002 12:13:02 +0000 (12:13 +0000)]
Take out autobuild dependency on proto.h; breaks some proprietary Makes.
(This used to be commit aa279932456eff8c6fce00cf01e3f62536573f14)

22 years agoRefactor for systems like Solaris that cannot handle wildcards on the
Martin Pool [Tue, 19 Mar 2002 11:46:31 +0000 (11:46 +0000)]
Refactor for systems like Solaris that cannot handle wildcards on the
right side of a dependency line.
(This used to be commit 87f2e3c30d11bcf0cecb7c32dc5f01755d181ad6)

22 years agoChange the Makefile to rebuild proto.h as necessary -- note that this
Martin Pool [Tue, 19 Mar 2002 07:26:18 +0000 (07:26 +0000)]
Change the Makefile to rebuild proto.h as necessary -- note that this
does not imply that all source will be rebuilt when prototypes change,
merely that the prototypes will be updated.

make proto, clean, delheaders, headers, etc all behave equivalently to
before.

  Intended new behaviour for proto.h, whenever source is being
  compiled:

  If proto.h does not exist, it is built.

  If any source files have changed since proto.h was last checked
  (.proto.check), then proto.h is checked.  If there are no actual
  changes since last time, its mtime is not changed, but we do
  remember the time at which it was checked.

  Whenever we try to build a .o, we need to check the headers are up
  to date.  However, rebuilding the prototypes does not imply
  rebuilding all object files.

  Also to allow people to build on machines without Awk, we never try
  to use it unless a source file has changed.  I guess if we wanted,
  we could have lack of Awk only cause a warning, not failure.

The point of all of this is to be easier on people who don't
understand or forget to type "make proto", and to reduce the chance of
build breakage by having prototypes out of sync.

I also rolled back JF's changes to put proto.h into builddir rather
than srcdir.  There are good arguments in both directions, but since
we keep proto.h in CVS, it seems important that the up-to-date copy by
in srcdir where it can be checked back in.  If people are fussed about
having srcdir be readonly you could change this -- but since proto.h
is only rebuilt when there are changes, it's not a big deal.

I also fixed an apparent race condition in "make headers" that would
make it unsafe if you did 'make -j2', and made 'make clean' not kill
proto.h, since people may not be able to rebuild it.

I reckon there's nothing gnumake-specific here but we shall see.

I also have this great idea about rewriting libtool in C++...
(This used to be commit 8a61a810e5a29050b0cf242d317c7cc00329517b)

22 years agoFix a double-free bug in wbinfo -t's call in winbindd.
Andrew Bartlett [Tue, 19 Mar 2002 06:36:37 +0000 (06:36 +0000)]
Fix a double-free bug in wbinfo -t's call in winbindd.

I forgot to clean this up when netlogon move across to the connection cache
arrangement.

Also add some smb_panics to the connection_ok() code to try to catch this kind
of thing better in future.

Andrew Bartlett
(This used to be commit f4f23fad6099143ec26550afc67655390070ceb8)

22 years agoDon't try to sort a list of zero length in internal_resolve_name()
Tim Potter [Tue, 19 Mar 2002 05:35:06 +0000 (05:35 +0000)]
Don't try to sort a list of zero length in internal_resolve_name()
(This used to be commit 5387e4046f67a1c6ef9e98268268b06a729d5ca4)

22 years agoSync up the VFS changes from 2.2.x.
Jeremy Allison [Tue, 19 Mar 2002 02:51:48 +0000 (02:51 +0000)]
Sync up the VFS changes from 2.2.x.
Jeremy.
(This used to be commit e758bdc8a8f37e1d1e1fb0d1d27990dba2067920)

22 years agoMerge in JohnR's page count fixes.
Jeremy Allison [Tue, 19 Mar 2002 02:35:12 +0000 (02:35 +0000)]
Merge in JohnR's page count fixes.
Jeremy.
(This used to be commit 2e3133fbe5531b9bbc9bf46a04b27fa58e555f5a)

22 years agoSync up vfs changes from 2.2.x.
Jeremy Allison [Tue, 19 Mar 2002 02:32:39 +0000 (02:32 +0000)]
Sync up vfs changes from 2.2.x.
Jeremy.
(This used to be commit ad1e858d8e72adf924ff435eab8da3e60842e2e6)

22 years agoops forgot this :-)
Simo Sorce [Tue, 19 Mar 2002 00:06:24 +0000 (00:06 +0000)]
ops forgot this :-)
(This used to be commit fdb88eb06af09171af2027a90ef6f3ac872beaee)

22 years agomore verbose checking in talloc and util_pw
Simo Sorce [Mon, 18 Mar 2002 23:57:14 +0000 (23:57 +0000)]
more verbose checking in talloc and util_pw
fixed tdbsam memory corruption (and segfault)
reducing calls to pdb_uid_to_user_rid and countrary to 0 to move to a non alghoritmic rid allocation with some passdb modules.
(This used to be commit 9836af7cd623357feaec07bc49cfb78f0aa01fc3)

22 years agoStart to switch away from the alghorithmic uid->rid mapping model
Simo Sorce [Mon, 18 Mar 2002 11:35:53 +0000 (11:35 +0000)]
Start to switch away from the alghorithmic uid->rid mapping model
(This used to be commit 724390a8daabbecd236960562e0a50f62c6904f1)

22 years agoAllow us to see the difference between these two errors. (We need to chase
Andrew Bartlett [Mon, 18 Mar 2002 10:53:02 +0000 (10:53 +0000)]
Allow us to see the difference between these two errors.  (We need to chase
down some bugs with it...).

Andrew Bartlett
(This used to be commit ef68b28fa0e89345f817ca8fd8f04138a009c21e)

22 years agopreparing for release of 3.0-alpha17
Samba Release Account [Mon, 18 Mar 2002 03:33:19 +0000 (03:33 +0000)]
preparing for release of 3.0-alpha17
(This used to be commit a772386d34178ffb8926bfd071ad028de40cefaf)

22 years agoFix ability to compile with CUPS support.
John Terpstra [Sun, 17 Mar 2002 22:40:51 +0000 (22:40 +0000)]
Fix ability to compile with CUPS support.
(This used to be commit 208c62c5a7bca68f223b5832d7971c3d38cb6820)

22 years agoAdded dos_errstr() function. Not all errors in list yet.
Tim Potter [Sun, 17 Mar 2002 06:04:15 +0000 (06:04 +0000)]
Added dos_errstr() function.  Not all errors in list yet.
(This used to be commit ddb5753e36b8c5efb48ce5c82c16d970fb8e76b6)

22 years agoRenamed get_nt_error_msg() to nt_errstr().
Tim Potter [Sun, 17 Mar 2002 04:36:35 +0000 (04:36 +0000)]
Renamed get_nt_error_msg() to nt_errstr().
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)

22 years agoFix build for non-ads case
Jim McDonough [Sat, 16 Mar 2002 01:30:09 +0000 (01:30 +0000)]
Fix build for non-ads case
(This used to be commit 7ba235c0fb4755092605743d575357602fd1ce05)

22 years agoDon't use // even temporarily, lest ye forget it and check it in...
Jim McDonough [Sat, 16 Mar 2002 01:14:58 +0000 (01:14 +0000)]
Don't use // even temporarily, lest ye forget it and check it in...
(This used to be commit 936df31df5bad9d457d3775d11b4e96a58093282)

22 years agoChange new style join function name for clarity in net_rpc.c
Jim McDonough [Fri, 15 Mar 2002 22:10:19 +0000 (22:10 +0000)]
Change new style join function name for clarity in net_rpc.c
(This used to be commit 539d0cc03035c126e2de82523a07ed91997100b8)

22 years agoChange net rpc join several ways: \n\t1) expose \n\t2) eliminate oldstyle subcommand...
Jim McDonough [Fri, 15 Mar 2002 22:09:18 +0000 (22:09 +0000)]
Change net rpc join several ways: \n\t1) expose \n\t2) eliminate oldstyle subcommand \n\t3) try oldstyle first, then more secure method\n to allow for autodetect between ads and rpc on net join
(This used to be commit c8a4a09b5648af2f1669a5a30acdf0a088077af9)

22 years agoExpose net_ads_join to allow for auto-transport-detection for net join
Jim McDonough [Fri, 15 Mar 2002 22:05:39 +0000 (22:05 +0000)]
Expose net_ads_join to allow for auto-transport-detection for net join
(This used to be commit 87ee4832312c9c65377500efd617bac086164834)

22 years agoAdd autodetect for net join, as well as some more help updates
Jim McDonough [Fri, 15 Mar 2002 22:04:53 +0000 (22:04 +0000)]
Add autodetect for net join, as well as some more help updates
(This used to be commit 951006374e48d80a5128d870bdc255bf8c22cb6a)

22 years agoSome help cleanups. Formatting and consistency issues. Line up text nicely, and...
Jim McDonough [Fri, 15 Mar 2002 20:03:07 +0000 (20:03 +0000)]
Some help cleanups.  Formatting and consistency issues.  Line up text nicely, and make 'net help rap user' the same as 'net rap user help'...stuff like that
(This used to be commit 17775dae28c724b11cc73f2aeac5f07f9656046c)

22 years agoif our lock spin code fails then return the first error code, not the
Andrew Tridgell [Fri, 15 Mar 2002 09:51:37 +0000 (09:51 +0000)]
if our lock spin code fails then return the first error code, not the
last one. This is what caused the lock1 and lock2 tests to fail.
(This used to be commit e7ae8003cb4fdc93db5f842754884a6d2ec93dc0)

22 years agothe SEC_DOMAIN tests also apply to SEC_ADS
Andrew Tridgell [Fri, 15 Mar 2002 09:24:56 +0000 (09:24 +0000)]
the SEC_DOMAIN tests also apply to SEC_ADS
(This used to be commit 775404fe46f72925fb302e149b6f96fab0dbfcb8)

22 years agonicer output from "net rpc user add"
Andrew Tridgell [Fri, 15 Mar 2002 09:23:24 +0000 (09:23 +0000)]
nicer output from "net rpc user add"
(This used to be commit a21ba95897531e7964c9e80a81cd5faa7394db77)

22 years agoenable locking on the winbindd cache tdb so it can be backed up and
Andrew Tridgell [Fri, 15 Mar 2002 09:21:28 +0000 (09:21 +0000)]
enable locking on the winbindd cache tdb so it can be backed up and
manipulated externally
(This used to be commit 1ad1a025b3fe5aeff5adf685f47c9cc05ef80e40)

22 years agoadded a -h usage option to winbindd
Andrew Tridgell [Fri, 15 Mar 2002 09:20:36 +0000 (09:20 +0000)]
added a -h usage option to winbindd
(This used to be commit d6a4a10f58accd6ad158ba60eb1508f00c9a4dd3)

22 years agothis tdb was being opened without locking, which is unsafe for shared
Andrew Tridgell [Fri, 15 Mar 2002 09:19:51 +0000 (09:19 +0000)]
this tdb was being opened without locking, which is unsafe for shared
databases
(This used to be commit 1394e6ed318af5fc740aa5622919f9fd26d5a8d2)

22 years agolower the debug level of failing to map a file
Andrew Tridgell [Fri, 15 Mar 2002 09:19:07 +0000 (09:19 +0000)]
lower the debug level of failing to map a file
(This used to be commit ad9965414d4d1fd8a031e3169b8f19d66cdad8be)