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

8237 Commits

Author SHA1 Message Date
Tim Potter
cc29c33fbe Added constants for form types and WERROR values.
(This used to be commit 5ef5e805d5f51f6fc4cfcfea7f17adc8d1f6f6eb)
2002-04-09 04:22:27 +00:00
Tim Potter
b408c4c5c0 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)
2002-04-09 03:36:12 +00:00
John Terpstra
3963ecb02f Fix location of binaries and make sure they get there. Still experimental.
(This used to be commit 24bc4e8e2c8f37167edb0e95a518bab6224e330d)
2002-04-08 20:10:08 +00:00
Simo Sorce
9c1665b299 a fix yet committed to 2.2 sometimes ago and reintroduced here!
(This used to be commit aff7073dabb6253fea4729f52240a25f90206699)
2002-04-08 09:29:28 +00:00
Andrew Bartlett
c21ff8f762 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)
2002-04-08 01:58:44 +00:00
Andrew Bartlett
0e6eb43e6b 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'
support.
(This used to be commit 26842f1ac051b030c1295b68244a1f9007d4eefb)
2002-04-08 01:52:44 +00:00
Tim Potter
b10b3be01c Spelling.
(This used to be commit 423985ed569ac9692f3cb5872a15c74f983121b6)
2002-04-07 23:41:55 +00:00
John Terpstra
2b96b4d7c0 Fix pathes.
(This used to be commit 729fa66f0e17ece372b64928a8adb42bffa171ec)
2002-04-07 22:21:30 +00:00
Simo Sorce
68518222a7 uint32 store and fectch functions, a signed int is not enough sometimes
(This used to be commit f07b2b3d5295202e0c8e530c43fae6d458b2cf2a)
2002-04-07 22:04:39 +00:00
Simo Sorce
4f80466480 better check of called function's return
tdbtorture say it's ok
(This used to be commit af0fa4cf7c229fb908063bfcc3cbb214dae5ed0e)
2002-04-07 22:02:09 +00:00
John Terpstra
ec193df790 Oops .. last update was committed before saving! Argh!
(This used to be commit 90f7d4ac84d0466fc3acce31d8ab360f2ae9002f)
2002-04-07 21:20:32 +00:00
John Terpstra
ee9b3932e2 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)
2002-04-07 21:19:05 +00:00
Jeremy Allison
a9d328bb94 Always pass NT password as well as Lanman.
Jeremy.
(This used to be commit 146fb9d12bd3621087193f439e99c13d609ff658)
2002-04-06 01:25:57 +00:00
Jeremy Allison
ca43b0da79 Fix Gerry bug - MajorVersion should be 2 not 3.
Jeremy.
(This used to be commit b8b88e863e3964231a85b4643a197d6d4d6b8f99)
2002-04-05 22:41:39 +00:00
Jeremy Allison
2a3a68bf45 Fixed up admin user / guest user lookup.
Jeremy.
(This used to be commit 28ef07424f19652fdfa4ee79f1c69e0004fa39fe)
2002-04-05 22:37:55 +00:00
Jim McDonough
3fcb31db92 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)
2002-04-05 19:28:02 +00:00
Jim McDonough
40260fdaf9 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)
2002-04-05 19:26:52 +00:00
Volker Lendecke
97e7a130e5 Merge from 2.2
(This used to be commit 4b69834eb722c647426d1d1495eb53f8b9b5ba7e)
2002-04-05 17:02:34 +00:00
Tim Potter
af7d3db053 New version of patch.
(This used to be commit 50f331ff33413842590f960d2ab1b11cdbece358)
2002-04-05 05:56:44 +00:00
Tim Potter
bf64a572ef make proto
(This used to be commit 0448c12a56fe508b72be4ce43d2c4d1eb16c5943)
2002-04-05 05:55:44 +00:00
Tim Potter
133f5216b3 Added new files for drivers, forms and ports conversion routines.
(This used to be commit f9f1d80f6e8c34a24602a83eb7d1fb2c892b662f)
2002-04-05 05:55:23 +00:00
Tim Potter
2aa9e1c22e Fixed dodgy looking prototypes for py_to_* functions.
(This used to be commit 847e310921802f5793f6cd170e6baf939151be89)
2002-04-05 05:52:20 +00:00
Tim Potter
af96550f17 Removed unused label.
(This used to be commit e0a209bf291553ec85dbd56cffab2a97440cea28)
2002-04-05 05:49:33 +00:00
Tim Potter
f9b571811d Converted drivers, forms and ports functions to use new conversion routines
and exception throwing.
(This used to be commit ed0a6480f75b3eefc52bc3311d8c3816abefcff2)
2002-04-05 05:48:01 +00:00
Tim Potter
77ab3b8850 Added py_spoolss_printers_conv.c to spoolss extension.
(This used to be commit d1e2356f13de8598237926d093069832f1393c36)
2002-04-05 04:57:06 +00:00
Tim Potter
80e8fee64d make proto
(This used to be commit c8278b0a929c779dd234a1e617bb0f3d2a039cfe)
2002-04-05 04:55:26 +00:00
Tim Potter
14c9883541 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)
2002-04-05 04:54:48 +00:00
Tim Potter
8735af51e2 Throw a spoolss.werror exception when the rpc client routines return
errors.

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)
2002-04-05 04:53:20 +00:00
Tim Potter
a05b7f721e Don't include py_spoolss_conv.h by default. We want to hide these
functions from method functions.
(This used to be commit bbf905e29e787ac350c0b4153c0b7050d8bf5734)
2002-04-05 04:49:39 +00:00
Tim Potter
f243d4e7c8 Added functions to return Python tuples (error code, error string)
corresponding to NT and DOS errors.
(This used to be commit cb243e2766260f03de6b748d20734b8183cf192b)
2002-04-05 04:47:43 +00:00
Jim McDonough
562706b32b add utils/net_help.c to bin/net build
(This used to be commit f2a0e56b3c7b4bee21fc05efec0c0c738db44287)
2002-04-05 01:36:50 +00:00
Jim McDonough
1458b7c795 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)
2002-04-05 01:36:28 +00:00
Tim Potter
05f973df82 Make bin/nsstest as part of torture target.
(This used to be commit dbb4dfcef74f21ef5badaa7a6f4cad52cf317ffb)
2002-04-04 22:58:56 +00:00
Tim Potter
f18b466bf6 Fixed some compile warnings.
(This used to be commit fd8b3009eb3f3debc7a1dcf6a46437d87a341519)
2002-04-04 22:56:39 +00:00
Tim Potter
b3d31d3897 More spelling.
(This used to be commit 21c3dff4109a6a4dc6a1b618a489e49e88743d42)
2002-04-04 20:38:10 +00:00
Jim McDonough
f21cfd9413 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)
2002-04-04 16:53:07 +00:00
Jim McDonough
773040a50f Cleanups to make auto-detection of method on net user smoother.
(This used to be commit 84ab1042a65e3c41a76f4726914140d505ef4625)
2002-04-04 16:48:23 +00:00
Jim McDonough
e2745e88e5 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)
2002-04-04 16:47:24 +00:00
Jean-François Micouleau
8ad60283be 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.

	J.F.
(This used to be commit 638c692525c050ecdf414d461ef6b4aed3ce51db)
2002-04-04 15:50:28 +00:00
Tim Potter
31f1c2172c 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)
2002-04-04 06:55:32 +00:00
Tim Potter
f98b2faf99 Spelling.
(This used to be commit b43256df5367fd16a0f6dcdf94fdbe8932cb77c9)
2002-04-04 06:47:20 +00:00
Tim Potter
4b925288ef Call poptFreeContext() as appropriate.
Clean up exit path code.
(This used to be commit 41157400e3f55879fd2f20d22beeed07f1c817f5)
2002-04-04 06:40:17 +00:00
Tim Potter
abc62df25f oops
(This used to be commit 6b20a809020821276b0330810317a4d10c9fdb5a)
2002-04-04 06:11:22 +00:00
Tim Potter
3d3ec9f4fd Fixed memory leak in cli_lsa_enum_trust_dom(). Use talloc_strdup() instead
of strdup().
(This used to be commit fb32f7199b8a487757b509555e5a69ec5cae8fbd)
2002-04-04 06:10:22 +00:00
Tim Potter
adbe65f21a Rerun autoconf.
(This used to be commit a627d698124ade6014b10827493dc3b3963f5534)
2002-04-04 05:48:27 +00:00
Tim Potter
fbbc63f93c Use m4-mode when editinging configure.in 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
nicely.
(This used to be commit 4caf71d5b28e003133bacca153278478d8245989)
2002-04-04 05:47:41 +00:00
Tim Potter
0227568209 Also look for libinsure.so where the full version installs it.
(This used to be commit 2bf6595a2a5527ff64f9083f2434aa344c9637d9)
2002-04-04 04:54:44 +00:00
Tim Potter
29e67cad05 Free popt context after argument parsing.
(This used to be commit f287f62962feca6dac8747d16676dc64723eb5b1)
2002-04-04 04:29:09 +00:00
Tim Potter
18d011d736 Fixed memory leak in make_pdb_context_name()
Some reformatting and spelling fixes.
(This used to be commit a0f7bbad11a0c0f1ecd930626289c5ff493b0f1d)
2002-04-04 03:53:43 +00:00
Jim McDonough
7bfa5ead49 Add non-ads version of net_ads_help for build on non-ads machines.
(This used to be commit dd7c20e5331116fd8cf9656a0f2406957b812bbb)
2002-04-04 03:14:25 +00:00