20 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
cvs2svn Import User [Fri, 12 Apr 2002 03:54:14 +0000 (03:54 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 1c221b3e72b24b6b8bd0d14b6ce32cf701684a81)

20 years agonicer measurement of failures and collisions
Andrew Tridgell [Fri, 12 Apr 2002 03:54:13 +0000 (03:54 +0000)]
nicer measurement of failures and collisions
(This used to be commit 61c61f6b4f22c1ef6f837145f5e05730706cc8d4)

20 years agobetter mangling test. We now test that we can create by long name and
Andrew Tridgell [Fri, 12 Apr 2002 03:42:44 +0000 (03:42 +0000)]
better mangling test. We now test that we can create by long name and
delete by short name, and that we can create by short name and delete
by long name

our old mangling code fails this test.

also tweaked the random filename generation to produce more likely
(This used to be commit 65609c52960c2b5938150a2fdb5290541f4e0225)

20 years ago- added a mangling test suite that measures the collision rate on
Andrew Tridgell [Fri, 12 Apr 2002 03:26:19 +0000 (03:26 +0000)]
- added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
(This used to be commit 858fa7efc34f6e7cdf8500900aed3f7943c91348)

20 years agoMuch better support for both non-algorithic RIDs (where the RID is stored in
Andrew Bartlett [Thu, 11 Apr 2002 23:43:40 +0000 (23:43 +0000)]
Much better support for both non-algorithic RIDs (where the RID is stored in
the passdb) and RIDs not in the passdb, due to being NIS users etc.

The main fix here is to add become_root()/unbecome_root() at critical places.

This (finally) fixes the bug where you could not see local users's names
in a file's security properties as non-root.  Tested.

The similar bug in uid_to_sid is also fixed, but is not (yet) Tested.

Andrew Bartlett
(This used to be commit 79327a305e20d78ab5ca21d01c39b5f49dc0d632)

20 years agoHP2500C driver writes devmode with private data that ends
Jeremy Allison [Thu, 11 Apr 2002 18:52:09 +0000 (18:52 +0000)]
HP2500C driver writes devmode with private data that ends
on a 2 byte boundary. We then miss-parse the desired_access. Also added
other fixes to ensure we align after private data (discussed with Gerry).
(This used to be commit 4369a58765f382e118e5393c805336484671cbf9)

20 years agoadded strndup() for systems that don't have it
Andrew Tridgell [Thu, 11 Apr 2002 15:27:22 +0000 (15:27 +0000)]
added strndup() for systems that don't have it
(This used to be commit 7e92fb7453e4dbf1fe0c32c3dcc1e994cb95b5ea)

20 years agodon't try to return a void
Andrew Tridgell [Thu, 11 Apr 2002 14:59:27 +0000 (14:59 +0000)]
don't try to return a void
(This used to be commit 51b4de0ae3b05c4f34a645ae9c6e395bc37226e6)

20 years agopossibly fix the 15000 user problem
Andrew Tridgell [Thu, 11 Apr 2002 14:30:31 +0000 (14:30 +0000)]
possibly fix the 15000 user problem

I think its caused by a rpc operation failing and us giving invalid
data back to the cache layer. Using talloc_zero() should solve this.
(This used to be commit dfa990170bb9a665ba48443258e2a87f50baa75c)

20 years ago- the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
Andrew Tridgell [Thu, 11 Apr 2002 14:20:18 +0000 (14:20 +0000)]
- the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
  hash to suit
- the prefix ends at the last dot, not the first
(This used to be commit 91a3ccd3e790f980421c1ee93388e19e87026b29)

20 years agoa few debug statements (disabled)
Andrew Tridgell [Thu, 11 Apr 2002 14:03:30 +0000 (14:03 +0000)]
a few debug statements (disabled)
(This used to be commit 582f753eac7a111a93a8d6c049398a0998af848f)

20 years agodon't treat '.' as FLAG_ASCII, instead handle it separately
Andrew Tridgell [Thu, 11 Apr 2002 13:35:28 +0000 (13:35 +0000)]
don't treat '.' as FLAG_ASCII, instead handle it separately
(This used to be commit ecdddd674f2ffad16eaa01a68c9c91ff3b355b3f)

20 years ago- tidier flag checking code
Andrew Tridgell [Thu, 11 Apr 2002 12:14:55 +0000 (12:14 +0000)]
- tidier flag checking code
- finished the is_mangled() function
(This used to be commit 128bec2071d640c775b58322256ac6bb03363741)

20 years agoadded some more comments
Andrew Tridgell [Thu, 11 Apr 2002 11:46:42 +0000 (11:46 +0000)]
added some more comments
(This used to be commit 8d6f2e239940cbac44f6f0e9d584a47553acbc56)

20 years agosome optimisations to the new mangling system
Andrew Tridgell [Thu, 11 Apr 2002 10:52:59 +0000 (10:52 +0000)]
some optimisations to the new mangling system
(This used to be commit 30b35d0c1f41f72ebe230905f76db8807802a6cc)

20 years agothis adds a completely new hash based mangling scheme
Andrew Tridgell [Thu, 11 Apr 2002 09:56:38 +0000 (09:56 +0000)]
this adds a completely new hash based mangling scheme

the hash for this scheme is *much* larger (approximately 31 bits) and
the code is written to be very fast, correctly handling multibyte
while not doing any actual multi-byte conversions in the vast majority
of cases

you can select this scheme using "mangling method = hash2", although I
may make it the default if it works out well.
(This used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)

20 years agoImplemented a setup_logging() function that takes two keywords:
Tim Potter [Thu, 11 Apr 2002 05:05:08 +0000 (05:05 +0000)]
Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much

Also added get_debuglevel() and set_debuglevel() functions.

Make open_pipe_creds() accept None as a anonymous credential.
(This used to be commit 094a51edb9369f5c493bddfdc98347431bea3c2d)

20 years agoImplemented a setup_logging() function that takes two keywords:
Tim Potter [Thu, 11 Apr 2002 05:04:05 +0000 (05:04 +0000)]
Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much

Also added get_debuglevel() and set_debuglevel() functions.
(This used to be commit 6c7b5e15c22119623ee959267d2755e21193bc4b)

20 years agoIgnore bin directory.
Tim Potter [Thu, 11 Apr 2002 04:03:01 +0000 (04:03 +0000)]
Ignore bin directory.
(This used to be commit 8bb798ab3d7245e61530913d771d58f08e77a200)

20 years agoremoved unnecessary memset
Gerald Carter [Thu, 11 Apr 2002 03:15:02 +0000 (03:15 +0000)]
removed unnecessary memset
(This used to be commit 233a24792ea305e92c15b43f57839391ca91d1b6)

20 years agoCorrectly emulate NT in printer handle opening access rights.
Jeremy Allison [Thu, 11 Apr 2002 02:59:31 +0000 (02:59 +0000)]
Correctly emulate NT in printer handle opening access rights.
(This used to be commit 42ae2334f21402c347aee560f08fd8e730481169)

20 years agoThis split the mangling code up to allow for the possibility of multiple
Andrew Tridgell [Thu, 11 Apr 2002 02:20:56 +0000 (02:20 +0000)]
This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
(This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)

20 years agos/werror_str/dos_errstr/g to fix compile
Gerald Carter [Thu, 11 Apr 2002 02:13:56 +0000 (02:13 +0000)]
s/werror_str/dos_errstr/g to fix compile
(This used to be commit d7c9b00253499da047f30f71660dede3676d40ad)

20 years agomerge from 2.2
Gerald Carter [Thu, 11 Apr 2002 02:08:36 +0000 (02:08 +0000)]
merge from 2.2
(This used to be commit 7db47c6647d764739e395948699cf115c4da4c8d)

20 years agoWERROR merge from SAMBA_2_2
Gerald Carter [Thu, 11 Apr 2002 01:50:18 +0000 (01:50 +0000)]
WERROR merge from SAMBA_2_2
(This used to be commit 32dc5dbbfb16cb9fd6f953dbb8148f5228b453a4)

20 years agospecversion merge from SAMBA_2_2
Gerald Carter [Thu, 11 Apr 2002 01:48:38 +0000 (01:48 +0000)]
specversion merge from SAMBA_2_2
(This used to be commit d87aa35d482824df7b5a2e87240ae43c113cc730)

20 years agoAdded a whole bunch more permission constants.
Tim Potter [Thu, 11 Apr 2002 01:35:53 +0000 (01:35 +0000)]
Added a whole bunch more permission constants.
(This used to be commit f8673bd499c7c3993a5860d2ebe9ae2403105316)

20 years agoRemoved duplicate _LARGEFILE64_SOURCE added in error.
Jeremy Allison [Thu, 11 Apr 2002 00:42:38 +0000 (00:42 +0000)]
Removed duplicate _LARGEFILE64_SOURCE added in error.
(This used to be commit 678f4f455e7ed0a6fafa3ad30ddadd1917e741ef)

20 years agoEnsure VFS modules will build correctly by adding defines for CPPFLAGS
Jeremy Allison [Thu, 11 Apr 2002 00:37:31 +0000 (00:37 +0000)]
Ensure VFS modules will build correctly by adding defines for CPPFLAGS
defines into acconfig.h - only defined if seen.
(This used to be commit 9f2753a1496c51fd56c97984b8def46a651dbfc8)

20 years agoRename of ads_do_search_all2() to ads_do_search_all() and removal of
Jim McDonough [Wed, 10 Apr 2002 13:29:23 +0000 (13:29 +0000)]
Rename of ads_do_search_all2() to ads_do_search_all() and removal of
server sort controls.  Also put option externs in the net.h include.
(This used to be commit b69f11170c2b27016c44a98bc603d1c94ad7d4c2)

20 years agoAdd a few option externs for net_ads.c
Jim McDonough [Wed, 10 Apr 2002 13:28:28 +0000 (13:28 +0000)]
Add a few option externs for net_ads.c
(This used to be commit 4e3265c3c94583ac7ee48017d195ad98ecdfbc47)

20 years agoA few more updates:
Jim McDonough [Wed, 10 Apr 2002 13:28:03 +0000 (13:28 +0000)]
A few more updates:
- Add doxygen comments
- remove server sort control (ms implementation was not reliable)
- rename ads_do_search_all2() to ads_do_search_all_fn()
(This used to be commit 7aa5fa617221019de0f4565d07842df72673e154)

20 years agoAdd ads ldap server controls
Jim McDonough [Wed, 10 Apr 2002 13:25:40 +0000 (13:25 +0000)]
Add ads ldap server controls
(This used to be commit 9126f008ef542b80f0040f621aa28478be5c80a0)

20 years agoFixed missing alignment in spoolss_io_q_enumjobs() function.
Tim Potter [Wed, 10 Apr 2002 07:21:03 +0000 (07:21 +0000)]
Fixed missing alignment in spoolss_io_q_enumjobs() function.
(This used to be commit e878cdc9f59084f39c022f2faa140369f76e94ec)

20 years agoAdded cli_spoolss_enumjobs() function.
Tim Potter [Wed, 10 Apr 2002 07:19:37 +0000 (07:19 +0000)]
Added cli_spoolss_enumjobs() function.
(This used to be commit 952eb866f44ac0d8ba2032cf251d3a4298a750d3)

20 years agoAdded Shirish's client side caching policy change.
Jeremy Allison [Wed, 10 Apr 2002 01:04:13 +0000 (01:04 +0000)]
Added Shirish's client side caching policy change.
(This used to be commit 16015c07eab2e57fa3771051e3e08fde21757cfa)

20 years agofixed a return value for a help function
Andrew Tridgell [Wed, 10 Apr 2002 00:36:06 +0000 (00:36 +0000)]
fixed a return value for a help function
(This used to be commit da794d3bbd919e4a909f219d98b1411c1c2d60fd)

20 years agoMoved definition of winbind username/password secrets into secrets.h
Tim Potter [Wed, 10 Apr 2002 00:35:00 +0000 (00:35 +0000)]
Moved definition of winbind username/password secrets into secrets.h
(This used to be commit b618b5943d53f33e6f03d8d47cf87efc5e1ad3e5)

20 years agoWhen printing a tdb log message display "unnamed" instead of "unknown" if
Tim Potter [Tue, 9 Apr 2002 23:03:17 +0000 (23:03 +0000)]
When printing a tdb log message display "unnamed" instead of "unknown" if
the tdb has not been named.
(This used to be commit 3e7985c60ee9888285769f1eb0ec81f764c26d91)

20 years agoShirish pointed out more areas we should be doing roundups for allocation size.
Jeremy Allison [Tue, 9 Apr 2002 18:10:09 +0000 (18:10 +0000)]
Shirish pointed out more areas we should be doing roundups for allocation size.
(This used to be commit cda9fccd629d084039af642d9177865d88553be6)

20 years agoFixed typo in debug statement.
Tim Potter [Tue, 9 Apr 2002 06:19:42 +0000 (06:19 +0000)]
Fixed typo in debug statement.
(This used to be commit 49e429a97ff2b6b1889937c998f67d73d35829e1)

20 years agoFixed some compiler warnings.
Tim Potter [Tue, 9 Apr 2002 05:59:46 +0000 (05:59 +0000)]
Fixed some compiler warnings.
(This used to be commit be6f955107429f1431c49c8b45fd623406a9d641)

20 years agoAdded WERR_INVALID_FORM_NAME constant.
Tim Potter [Tue, 9 Apr 2002 05:11:34 +0000 (05:11 +0000)]
(This used to be commit 908b70f3e23846d0b438a68e45e076e65016e95e)

20 years agoAdd a become_root()/unbecome_root() pair to allow acces to the passdb for
Andrew Bartlett [Tue, 9 Apr 2002 04:59:34 +0000 (04:59 +0000)]
Add a become_root()/unbecome_root() pair to allow acces to the passdb for
SID lookup.  This fixes a bug where SIDs (rather than names) are displayed in windows ACL lists
(This used to be commit e60c509813a9113cd76135b6ded3018ff04d49f2)

20 years agoFixed setform and addform functions.
Tim Potter [Tue, 9 Apr 2002 04:23:52 +0000 (04:23 +0000)]
Fixed setform and addform functions.
(This used to be commit ecba275cf75be3152c917329ba16d77bf4490259)

20 years agoAdded constants for form types and WERROR values.
Tim Potter [Tue, 9 Apr 2002 04:22:27 +0000 (04:22 +0000)]
Added constants for form types and WERROR values.
(This used to be commit 5ef5e805d5f51f6fc4cfcfea7f17adc8d1f6f6eb)

20 years agoThe useless_ptr must be non-zero for addform and setform client functions
Tim Potter [Tue, 9 Apr 2002 03:36:12 +0000 (03:36 +0000)]
The useless_ptr must be non-zero for addform and setform client functions
to work.

Note about setprinter level 1 not existing.
(This used to be commit 6367bfc4781a678923f1fba4681c9b7fc6bb9710)

20 years agoFix location of binaries and make sure they get there. Still experimental.
John Terpstra [Mon, 8 Apr 2002 20:10:08 +0000 (20:10 +0000)]
Fix location of binaries and make sure they get there. Still experimental.
(This used to be commit 24bc4e8e2c8f37167edb0e95a518bab6224e330d)

20 years agoa fix yet committed to 2.2 sometimes ago and reintroduced here!
Simo Sorce [Mon, 8 Apr 2002 09:29:28 +0000 (09:29 +0000)]
a fix yet committed to 2.2 sometimes ago and reintroduced here!
(This used to be commit aff7073dabb6253fea4729f52240a25f90206699)

20 years agoReintroduce the 2.2 name mangling code, until we get are more flexible solution.
Andrew Bartlett [Mon, 8 Apr 2002 01:58:44 +0000 (01:58 +0000)]
Reintroduce the 2.2 name mangling code, until we get are more flexible solution.

Even for a hash/cache setup, this code needs some more work, in particular
it needs to use mangle_get_prefix() etc and to move to unicode internals.

Andrew Bartlett
(This used to be commit ad8aa470575c39fcbc7f1440bf1081d7ea31c0aa)

20 years agoFix up major logic reversal flaws in pdb_ldap.
Andrew Bartlett [Mon, 8 Apr 2002 01:52:44 +0000 (01:52 +0000)]
Fix up major logic reversal flaws in pdb_ldap.

WARNING: if you relied on these logic flaws, you will need to manually
edit your ldap backend (for things like account expries etc).

Now correctly retunes the information needed for 'must change at next login'
(This used to be commit 26842f1ac051b030c1295b68244a1f9007d4eefb)

20 years agoSpelling.
Tim Potter [Sun, 7 Apr 2002 23:41:55 +0000 (23:41 +0000)]
(This used to be commit 423985ed569ac9692f3cb5872a15c74f983121b6)

20 years agoFix pathes.
John Terpstra [Sun, 7 Apr 2002 22:21:30 +0000 (22:21 +0000)]
Fix pathes.
(This used to be commit 729fa66f0e17ece372b64928a8adb42bffa171ec)

20 years agouint32 store and fectch functions, a signed int is not enough sometimes
Simo Sorce [Sun, 7 Apr 2002 22:04:39 +0000 (22:04 +0000)]
uint32 store and fectch functions, a signed int is not enough sometimes
(This used to be commit f07b2b3d5295202e0c8e530c43fae6d458b2cf2a)

20 years agobetter check of called function's return
Simo Sorce [Sun, 7 Apr 2002 22:02:09 +0000 (22:02 +0000)]
better check of called function's return
tdbtorture say it's ok
(This used to be commit af0fa4cf7c229fb908063bfcc3cbb214dae5ed0e)

20 years agoOops .. last update was committed before saving! Argh!
John Terpstra [Sun, 7 Apr 2002 21:20:32 +0000 (21:20 +0000)]
Oops .. last update was committed before saving! Argh!
(This used to be commit 90f7d4ac84d0466fc3acce31d8ab360f2ae9002f)

20 years agoUpdated because I want this for now - NOTE: This will change before release
John Terpstra [Sun, 7 Apr 2002 21:19:05 +0000 (21:19 +0000)]
Updated because I want this for now - NOTE: This will change before release
as this is NOT what we need to ship. This is experimental only at this time.
(This used to be commit 5c8ceaa4973bb7d82da886e03f24a972d978dcb7)

20 years agoAlways pass NT password as well as Lanman.
Jeremy Allison [Sat, 6 Apr 2002 01:25:57 +0000 (01:25 +0000)]
Always pass NT password as well as Lanman.
(This used to be commit 146fb9d12bd3621087193f439e99c13d609ff658)

20 years agoFix Gerry bug - MajorVersion should be 2 not 3.
Jeremy Allison [Fri, 5 Apr 2002 22:41:39 +0000 (22:41 +0000)]
Fix Gerry bug - MajorVersion should be 2 not 3.
(This used to be commit b8b88e863e3964231a85b4643a197d6d4d6b8f99)

20 years agoFixed up admin user / guest user lookup.
Jeremy Allison [Fri, 5 Apr 2002 22:37:55 +0000 (22:37 +0000)]
Fixed up admin user / guest user lookup.
(This used to be commit 28ef07424f19652fdfa4ee79f1c69e0004fa39fe)

20 years agoUse the new ads_do_search_all2 function. It provides sorted results. We now
Jim McDonough [Fri, 5 Apr 2002 19:28:02 +0000 (19:28 +0000)]
Use the new ads_do_search_all2 function.  It provides sorted results.  We now
also filter out users that end in '$', which gives us the same results as
the net rpc user and net rap user.
(This used to be commit e3a813831276ec2aafa0caa4f4fed0785dcdb749)

20 years agoSeveral updates to get server side sorting going:
Jim McDonough [Fri, 5 Apr 2002 19:26:52 +0000 (19:26 +0000)]
Several updates to get server side sorting going:
- Added sort control to ads_do_paged_search.  It allows a char * to be passed
  as the sort key.  If NULL, no sort is done.
- fixed a bug in the processing of controls (loop wasn't incremented properly)
- Added ads_do_search_all2, which funs a function that is passed in against
  each entry.  No ldapmessage structures are returned.  Allows results to
  be processed as the come in on each page.

I'd like ads_do_search_all2 to replace ads_do_search_all, but there's some
work to be done in winbindd_ads.c first.

Also, perhaps now we can do async ldap searches?  Allow us to process a
page while the server retrieves the next one?
(This used to be commit 95bec4c8bae0e29f816ec0751bf66404e1f2098e)

20 years agoMerge from 2.2
Volker Lendecke [Fri, 5 Apr 2002 17:02:34 +0000 (17:02 +0000)]
Merge from 2.2
(This used to be commit 4b69834eb722c647426d1d1495eb53f8b9b5ba7e)

20 years agoNew version of patch.
Tim Potter [Fri, 5 Apr 2002 05:56:44 +0000 (05:56 +0000)]
New version of patch.
(This used to be commit 50f331ff33413842590f960d2ab1b11cdbece358)

20 years agomake proto
Tim Potter [Fri, 5 Apr 2002 05:55:44 +0000 (05:55 +0000)]
make proto
(This used to be commit 0448c12a56fe508b72be4ce43d2c4d1eb16c5943)

20 years agoAdded new files for drivers, forms and ports conversion routines.
Tim Potter [Fri, 5 Apr 2002 05:55:23 +0000 (05:55 +0000)]
Added new files for drivers, forms and ports conversion routines.
(This used to be commit f9f1d80f6e8c34a24602a83eb7d1fb2c892b662f)

20 years agoFixed dodgy looking prototypes for py_to_* functions.
Tim Potter [Fri, 5 Apr 2002 05:52:20 +0000 (05:52 +0000)]
Fixed dodgy looking prototypes for py_to_* functions.
(This used to be commit 847e310921802f5793f6cd170e6baf939151be89)

20 years agoRemoved unused label.
Tim Potter [Fri, 5 Apr 2002 05:49:33 +0000 (05:49 +0000)]
Removed unused label.
(This used to be commit e0a209bf291553ec85dbd56cffab2a97440cea28)

20 years agoConverted drivers, forms and ports functions to use new conversion routines
Tim Potter [Fri, 5 Apr 2002 05:48:01 +0000 (05:48 +0000)]
Converted drivers, forms and ports functions to use new conversion routines
and exception throwing.
(This used to be commit ed0a6480f75b3eefc52bc3311d8c3816abefcff2)

20 years agoAdded py_spoolss_printers_conv.c to spoolss extension.
Tim Potter [Fri, 5 Apr 2002 04:57:06 +0000 (04:57 +0000)]
Added py_spoolss_printers_conv.c to spoolss extension.
(This used to be commit d1e2356f13de8598237926d093069832f1393c36)

20 years agomake proto
Tim Potter [Fri, 5 Apr 2002 04:55:26 +0000 (04:55 +0000)]
make proto
(This used to be commit c8278b0a929c779dd234a1e617bb0f3d2a039cfe)

20 years agoNew routines to convert between structures and python dictionaries. We now
Tim Potter [Fri, 5 Apr 2002 04:54:48 +0000 (04:54 +0000)]
New routines to convert between structures and python dictionaries.  We now
hide to_struct() and from_struct() from the caller so we can add custom
fields nicely.
(This used to be commit 07d79f4aa8de8e7a08555a62faafd79573a95e74)

20 years agoThrow a spoolss.werror exception when the rpc client routines return
Tim Potter [Fri, 5 Apr 2002 04:53:20 +0000 (04:53 +0000)]
Throw a spoolss.werror exception when the rpc client routines return

Move to new system of converting between structures and python
dictionaries.  Lots of stuff moved to py_spoolss_printers_conv.c

Setprinter level 2 kind of works now.
(This used to be commit abe39ebcc125362125f0f900102b0f8d6011324b)

20 years agoDon't include py_spoolss_conv.h by default. We want to hide these
Tim Potter [Fri, 5 Apr 2002 04:49:39 +0000 (04:49 +0000)]
Don't include py_spoolss_conv.h by default.  We want to hide these
functions from method functions.
(This used to be commit bbf905e29e787ac350c0b4153c0b7050d8bf5734)

20 years agoAdded functions to return Python tuples (error code, error string)
Tim Potter [Fri, 5 Apr 2002 04:47:43 +0000 (04:47 +0000)]
Added functions to return Python tuples (error code, error string)
corresponding to NT and DOS errors.
(This used to be commit cb243e2766260f03de6b748d20734b8183cf192b)

20 years agoadd utils/net_help.c to bin/net build
Jim McDonough [Fri, 5 Apr 2002 01:36:50 +0000 (01:36 +0000)]
add utils/net_help.c to bin/net build
(This used to be commit f2a0e56b3c7b4bee21fc05efec0c0c738db44287)

20 years agoLots more net consistency work:
Jim McDonough [Fri, 5 Apr 2002 01:36:28 +0000 (01:36 +0000)]
Lots more net consistency work:
- Added net_help.c for unified help when possible
- Added net rpc user listing, delete, info commands
- Unified net user command to autodetect ads/rpc/rap (try in that order)
- Added generic routine for detecting rpc (protocol > PROTOCOL_NT1)
- I'm sure I forgot something.
(This used to be commit 9daa5788c822cf1ad20dc703e7f03b9ee82987bf)

20 years agoMake bin/nsstest as part of torture target.
Tim Potter [Thu, 4 Apr 2002 22:58:56 +0000 (22:58 +0000)]
Make bin/nsstest as part of torture target.
(This used to be commit dbb4dfcef74f21ef5badaa7a6f4cad52cf317ffb)

20 years agoFixed some compile warnings.
Tim Potter [Thu, 4 Apr 2002 22:56:39 +0000 (22:56 +0000)]
Fixed some compile warnings.
(This used to be commit fd8b3009eb3f3debc7a1dcf6a46437d87a341519)

20 years agoMore spelling.
Tim Potter [Thu, 4 Apr 2002 20:38:10 +0000 (20:38 +0000)]
More spelling.
(This used to be commit 21c3dff4109a6a4dc6a1b618a489e49e88743d42)

20 years agoMultiple changes:
Jim McDonough [Thu, 4 Apr 2002 16:53:07 +0000 (16:53 +0000)]
Multiple changes:
- Get rid of improper "Invalid option: d (100)" message when setting
  debug from commandline.
- Eliminate got_pass global and only use opt_password.  This enables
  re-use of password that may have been enetered in failed ads connect.
- Auto-detect method for net user command
- use new net_ads_check rather than lp_security==ADS test on net join
- Get rid of annoying debug level 0's
(This used to be commit 1280968000595c28ed62d9e74acecfdc84e33710)

20 years agoCleanups to make auto-detection of method on net user smoother.
Jim McDonough [Thu, 4 Apr 2002 16:48:23 +0000 (16:48 +0000)]
Cleanups to make auto-detection of method on net user smoother.
(This used to be commit 84ab1042a65e3c41a76f4726914140d505ef4625)

20 years agoMore updates for auto-detecting server connection method. Added net_ads_check()
Jim McDonough [Thu, 4 Apr 2002 16:47:24 +0000 (16:47 +0000)]
More updates for auto-detecting server connection method.  Added net_ads_check()
to make a connection (which stores the password in a global so it can be
used by rpc or rap function if ads fails) and close it to verify if ads
method should be used.
(This used to be commit 093297a27db9834cf8aea34302246af8997d9c66)

20 years agosmall change in name_resolve_bcast()
Jean-Fran├žois Micouleau [Thu, 4 Apr 2002 15:50:28 +0000 (15:50 +0000)]
small change in name_resolve_bcast()
spotted by alexander bokovoy.

it shouldn't break anything. if it's wrong, feel free to revert but
explain why.

(This used to be commit 638c692525c050ecdf414d461ef6b4aed3ce51db)

20 years agoIf compiling with Insure, mallocate a byte of memory and attach it to the
Tim Potter [Thu, 4 Apr 2002 06:55:32 +0000 (06:55 +0000)]
If compiling with Insure, mallocate a byte of memory and attach it to the
POLICY_HND structure when passing new handles back from the appropriate
cli_* functions.  When closing the policy handle free the memory.

Insure (and indeed other memory checkers) should detect handles that have
not been closed properly as memory leaks.  Unfortunately this can only be
done when the program terminates (set insure++.summarize leaks in your
.psrc file) rather than when the policy handle falls out of scope.

Looks like Jeremy has squished all the policy handle leaks at the moment
but more are bound to crop up later.
(This used to be commit 6dc80d625752f0a3ce6fd7b2278095529c6ec29f)

20 years agoSpelling.
Tim Potter [Thu, 4 Apr 2002 06:47:20 +0000 (06:47 +0000)]
(This used to be commit b43256df5367fd16a0f6dcdf94fdbe8932cb77c9)

20 years agoCall poptFreeContext() as appropriate.
Tim Potter [Thu, 4 Apr 2002 06:40:17 +0000 (06:40 +0000)]
Call poptFreeContext() as appropriate.

Clean up exit path code.
(This used to be commit 41157400e3f55879fd2f20d22beeed07f1c817f5)

20 years agooops
Tim Potter [Thu, 4 Apr 2002 06:11:22 +0000 (06:11 +0000)]
(This used to be commit 6b20a809020821276b0330810317a4d10c9fdb5a)

20 years agoFixed memory leak in cli_lsa_enum_trust_dom(). Use talloc_strdup() instead
Tim Potter [Thu, 4 Apr 2002 06:10:22 +0000 (06:10 +0000)]
Fixed memory leak in cli_lsa_enum_trust_dom().  Use talloc_strdup() instead
of strdup().
(This used to be commit fb32f7199b8a487757b509555e5a69ec5cae8fbd)

20 years agoRerun autoconf.
Tim Potter [Thu, 4 Apr 2002 05:48:27 +0000 (05:48 +0000)]
Rerun autoconf.
(This used to be commit a627d698124ade6014b10827493dc3b3963f5534)

20 years agoUse m4-mode when editinging under emacs.
Tim Potter [Thu, 4 Apr 2002 05:47:41 +0000 (05:47 +0000)]
Use m4-mode when editinging under emacs.

Use $CC instead of $SHLD for the "test whether building a shared library
actually works".  At the moment this is failing as $SHLD (and $LDSHFLAGS -
look at the value this is set to for Solaris) are designed to be used from
a Makefile and not within configure so this test will always fail!

Tridge has suggested moving to libtool^H^H^H^H^H a shell script that
invokes the right linker with the right args and solves this problem
(This used to be commit 4caf71d5b28e003133bacca153278478d8245989)

20 years agoAlso look for where the full version installs it.
Tim Potter [Thu, 4 Apr 2002 04:54:44 +0000 (04:54 +0000)]
Also look for where the full version installs it.
(This used to be commit 2bf6595a2a5527ff64f9083f2434aa344c9637d9)

20 years agoFree popt context after argument parsing.
Tim Potter [Thu, 4 Apr 2002 04:29:09 +0000 (04:29 +0000)]
Free popt context after argument parsing.
(This used to be commit f287f62962feca6dac8747d16676dc64723eb5b1)

20 years agoFixed memory leak in make_pdb_context_name()
Tim Potter [Thu, 4 Apr 2002 03:53:43 +0000 (03:53 +0000)]
Fixed memory leak in make_pdb_context_name()

Some reformatting and spelling fixes.
(This used to be commit a0f7bbad11a0c0f1ecd930626289c5ff493b0f1d)

20 years agoAdd non-ads version of net_ads_help for build on non-ads machines.
Jim McDonough [Thu, 4 Apr 2002 03:14:25 +0000 (03:14 +0000)]
Add non-ads version of net_ads_help for build on non-ads machines.
(This used to be commit dd7c20e5331116fd8cf9656a0f2406957b812bbb)

20 years agoCorrect error string function call to ads_errstr()
Jim McDonough [Thu, 4 Apr 2002 03:06:22 +0000 (03:06 +0000)]
Correct error string function call to ads_errstr()
(This used to be commit d7317ca8da4b04804f4d01752cef56ec5a9c3418)

20 years agoFix up conversion code from old winbindd versions (some testing needed).
Jeremy Allison [Thu, 4 Apr 2002 03:03:39 +0000 (03:03 +0000)]
Fix up conversion code from old winbindd versions (some testing needed).
Added time based cache size check (#ifdef'ed out by default, just didn't
want to lose the code).
(This used to be commit b2350ed36c42827c417ea4a3dd0668a4a631a090)

20 years agoTry harder next time to not duplicate function...take ads_err2string back
Jim McDonough [Thu, 4 Apr 2002 03:03:00 +0000 (03:03 +0000)]
Try harder next time to not duplicate function...take ads_err2string back
out since it's already in ads_errstr() in ads_status.c
(This used to be commit 0475126ffb69f0485fd31511cb13d98df74a8d5b)

20 years agoAdd ability to get specific net ads subcommand help. Not all have been
Jim McDonough [Thu, 4 Apr 2002 02:54:47 +0000 (02:54 +0000)]
Add ability to get specific net ads subcommand help.  Not all have been
implemented yet...
(This used to be commit 24c6bf4e8b6d519340d5f9f3353ffc6b5f7520b3)

20 years agoAdd net ads user subcommands: add delete info. Also make user listing format
Jim McDonough [Thu, 4 Apr 2002 02:53:42 +0000 (02:53 +0000)]
Add net ads user subcommands: add delete info.  Also make user listing format
consistent with rap version.
(This used to be commit f6eb7c0c7ec83a3674d56f0e222b900887327319)