ira/wip.git
15 years agoFix an uninitialized variable found by the IBM checker
Volker Lendecke [Sat, 14 Jun 2008 22:22:47 +0000 (00:22 +0200)]
Fix an uninitialized variable found by the IBM checker

BAIL_ON_PTR_ERROR jumps to done: which will access extra_data before it's
initialized.

Stefan, please check!

Volker
(cherry picked from commit b59636f78d351ed6d52c4a9fdccdb7850388526c)
(This used to be commit 5663587e5e4703f9e3ff6d78d1f3248053ccd4c0)

15 years agoFix group parsing in libwbclient's copy_group_entry()
Volker Lendecke [Sat, 14 Jun 2008 22:14:27 +0000 (00:14 +0200)]
Fix group parsing in libwbclient's copy_group_entry()

This (also) fixes a flaw pointed out by the IBM checker. When verifying that I
found out that the parsing was not working as I would have expected it to.

Jerry, please check!
(cherry picked from commit c2c7790155ab02e1e351caf2bed192ce72913663)
(This used to be commit 26c05a52b73763dad5ad0525dab6e20014c3f8d6)

15 years agoMove connection-specific vuid cache clear to uid.c
Volker Lendecke [Sat, 14 Jun 2008 14:59:07 +0000 (16:59 +0200)]
Move connection-specific vuid cache clear to uid.c
(This used to be commit 1025f687910ce40283c7344ed67ebd5bf31217b7)

15 years agoSlight refactoring for check_user_ok: It only needs vuid and server_info
Volker Lendecke [Sat, 14 Jun 2008 14:55:02 +0000 (16:55 +0200)]
Slight refactoring for check_user_ok: It only needs vuid and server_info
(This used to be commit 68944ea1ea7a0a63b08cbfc703f5ee29d2627696)

15 years agoGroup the access checks together in check_user_ok()
Volker Lendecke [Sat, 14 Jun 2008 14:46:25 +0000 (16:46 +0200)]
Group the access checks together in check_user_ok()
(This used to be commit 45662b5e8b3c7bc39cb33c5d7deb7e9a91f30a8b)

15 years agoConsistently use snum in check_user_ok
Volker Lendecke [Sat, 14 Jun 2008 14:43:03 +0000 (16:43 +0200)]
Consistently use snum in check_user_ok

Most already used it, these two still used SNUM(conn), where the only caller of
this routine (change_to_user) had set snum = SNUM(conn).
(This used to be commit b14e59bfdbfb62494002e22d0665c4d420484245)

15 years agoCompare the pointer "vuser" to NULL, not 0
Volker Lendecke [Sat, 14 Jun 2008 14:35:22 +0000 (16:35 +0200)]
Compare the pointer "vuser" to NULL, not 0
(This used to be commit 5c916549f002d5e4e06f24d396a2bdca73d384c7)

15 years agoUse the correct cups-devel test for HAVE_IPRINT also
Volker Lendecke [Sat, 14 Jun 2008 08:59:11 +0000 (10:59 +0200)]
Use the correct cups-devel test for HAVE_IPRINT also
(This used to be commit a42d7e1146e7469062ead2c8f22f549a48154e03)

15 years agoCorrectly check for presence of cups-devel
Volker Lendecke [Sat, 14 Jun 2008 08:31:11 +0000 (10:31 +0200)]
Correctly check for presence of cups-devel

On SuSE at least cups-config belongs to cups-libs which does not contain the
headers which are in cups-devel.
(This used to be commit 2408d2493f7c6e0beee58febd547516bbeb0929d)

15 years agonet_vampire: rename process_database to samsync_process_database.
Günther Deschner [Fri, 13 Jun 2008 20:33:46 +0000 (22:33 +0200)]
net_vampire: rename process_database to samsync_process_database.

Guenther
(This used to be commit cf382a87602a63368587ffa2c95b774f2f97c21b)

15 years agonet_vampire: fix ldif_init_context().
Günther Deschner [Fri, 13 Jun 2008 19:57:32 +0000 (21:57 +0200)]
net_vampire: fix ldif_init_context().

Guenther
(This used to be commit 94d45b1bb97ac2b6025d429389993ac43044f5b8)

15 years agonet_vampire: split out rpc_vampire_ldif().
Günther Deschner [Fri, 13 Jun 2008 19:46:59 +0000 (21:46 +0200)]
net_vampire: split out rpc_vampire_ldif().

Guenther
(This used to be commit bcc6d3a0ebdcb904b5a2a4de63d9ed7415e9bb33)

15 years agonet_vampire: add samsync_init_context().
Günther Deschner [Fri, 13 Jun 2008 19:25:53 +0000 (21:25 +0200)]
net_vampire: add samsync_init_context().

Guenther
(This used to be commit 63ca4414b62657983c27d2930483aa56f9c78ccf)

15 years agonet_vampire: add samsync_debug_str().
Günther Deschner [Fri, 13 Jun 2008 19:11:55 +0000 (21:11 +0200)]
net_vampire: add samsync_debug_str().

Guenther
(This used to be commit bbfe5bcaf5ec5d06ffd110ab362ea3f228867603)

15 years agonet_vampire: restructure internal code more.
Günther Deschner [Thu, 12 Jun 2008 10:35:46 +0000 (12:35 +0200)]
net_vampire: restructure internal code more.

Guenther
(This used to be commit 9557504d70fe57098914da131b39212faf4f0a7d)

15 years agonet_vampire: start using talloc for the ldif vampire code.
Günther Deschner [Wed, 11 Jun 2008 00:29:58 +0000 (02:29 +0200)]
net_vampire: start using talloc for the ldif vampire code.

Guenther
(This used to be commit ae179e4f3faccbf2c9f19b6f070f5daf87cdfc50)

15 years agonet_vampire: join dump and process function into one callback.
Günther Deschner [Tue, 10 Jun 2008 23:46:58 +0000 (01:46 +0200)]
net_vampire: join dump and process function into one callback.

Guenther
(This used to be commit e9b79f34d5afe10ee8d9b1e2dd19c8aafa533579)

15 years agonet_vampire: let fetch_database and fetch_database_to_ldif use sid pointers.
Günther Deschner [Tue, 10 Jun 2008 23:29:36 +0000 (01:29 +0200)]
net_vampire: let fetch_database and fetch_database_to_ldif use sid pointers.

Guenther
(This used to be commit 0707d32042b23d615b57b2f955775472b766770e)

15 years agonet_vampire: let dump_database() return NTSTATUS.
Günther Deschner [Tue, 10 Jun 2008 23:23:43 +0000 (01:23 +0200)]
net_vampire: let dump_database() return NTSTATUS.

Guenther
(This used to be commit b5a0e2d18f8d5c98326fefbda5972c02f898ed82)

15 years agoFix a handle leak for error returns in ldb_try_load_dso
Volker Lendecke [Fri, 13 Jun 2008 14:05:31 +0000 (16:05 +0200)]
Fix a handle leak for error returns in ldb_try_load_dso

Coverity ID 464
(cherry picked from commit 496d44d2f21661c85bf07e8eb7cae6298fefd900)
(This used to be commit f30bc6503de6c712101e04fe26c004eeffcd300e)

15 years agoFix a crash in _winreg_QueryValue
Volker Lendecke [Fri, 13 Jun 2008 13:30:08 +0000 (15:30 +0200)]
Fix a crash in _winreg_QueryValue

Coverity ID 474, value_length and type are both unique, not ref pointers and
can thus be NULL.

Karolin, please merge this to -stable.

Thanks,

Volker
(cherry picked from commit 999533c0ccced59141d8baff5bc248d63e2a966f)
(This used to be commit 7e07ec68f15908a998f83d615a1b4d1349935a54)

15 years agosamsync: add prototype for samsync_fix_delta_array().
Günther Deschner [Fri, 13 Jun 2008 10:30:36 +0000 (12:30 +0200)]
samsync: add prototype for samsync_fix_delta_array().

Guenther
(This used to be commit 6c1904f8be1b4e08b09b64052c1aba24e7a4fb3d)

15 years agonet: Fix bug #5542 (samsync contains empty passwords).
Günther Deschner [Fri, 13 Jun 2008 10:20:01 +0000 (12:20 +0200)]
net: Fix bug #5542 (samsync contains empty passwords).

Guenther
(cherry picked from commit 1a22e975dd1255f3557c1cd873d877aa35822afc)
(This used to be commit ad8392cf7c817ee29a03bc6f515bf1cc18a29eda)

15 years agosamsync: add samsync_fix_delta_array()
Günther Deschner [Fri, 13 Jun 2008 09:57:09 +0000 (11:57 +0200)]
samsync: add samsync_fix_delta_array()

This code is vastly based on samba4 code.

Guenther
(cherry picked from commit 5b68be96996a710988b1fd1c176cd5dff0f2c6af)
(This used to be commit 2c53d87de4ecc5ac9c43bc7488a03bceecf35140)

15 years agonet: Fix net_ads.c build for the HAVE_ADS == 0 case.
Kai Blin [Thu, 12 Jun 2008 09:50:09 +0000 (11:50 +0200)]
net: Fix net_ads.c build for the HAVE_ADS == 0 case.

Thanks to Karolin for catching this one.
(This used to be commit 7f52998f5461ed7d976faa2254464336dcf73c02)

15 years agoAIX build fixes from William Jojo -- thanks
Volker Lendecke [Thu, 12 Jun 2008 10:36:15 +0000 (12:36 +0200)]
AIX build fixes from William Jojo -- thanks
(cherry picked from commit cb91a47576e820390bc62195702aaae93a2feba6)
(This used to be commit 90d7bc6da3c92e104fadd5965a730fbe01be33d5)

15 years agoAdd -brtl to the AIX linker flags
Volker Lendecke [Thu, 12 Jun 2008 10:35:28 +0000 (12:35 +0200)]
Add -brtl to the AIX linker flags

Thanks to William Jojo
(cherry picked from commit 74b195b54416d9e3eb46079a71eed31a15c7293a)
(This used to be commit 5ffad12d68288eca4756519ec7ab90995a277517)

15 years agonet: Fix several typos in comments.
Karolin Seeger [Thu, 12 Jun 2008 08:55:55 +0000 (10:55 +0200)]
net: Fix several typos in comments.

-argc -> argv (where argv is meant)
-destoyed -> destroyed
-compleation -> completion
-aquired -> acquired
-Unify spelling of some words like rpc-server -> RPC server.
-Add missing punctuation marks.

Karolin
(This used to be commit f4850c37df166c3ab4ec3c532aefd87b5c7e2ad8)

15 years agoman pages: Fix indentation in smb.conf section about 'map readonly'.
Karolin Seeger [Thu, 12 Jun 2008 07:34:15 +0000 (09:34 +0200)]
man pages: Fix indentation in smb.conf section about 'map readonly'.
(This used to be commit 0f0d81a89ae2ebae7d031a3a8633c3a924ebcbae)

15 years agoman pages: Added improvements.
Christoph Zauner [Wed, 11 Jun 2008 13:15:22 +0000 (15:15 +0200)]
man pages: Added improvements.
(This used to be commit 7fecd548af0a21b9644bd70e22a38aaa28777aa0)

15 years agoman pages: Fix typo in smb.conf section about the 'deleteprinter command'.
Karolin Seeger [Thu, 12 Jun 2008 07:26:32 +0000 (09:26 +0200)]
man pages: Fix typo in smb.conf section about the 'deleteprinter command'.

Karolin
(This used to be commit 5fa77c216bc43c3558aff3373f74554efdb9210d)

15 years agoman pages: Fix typos.
Christoph Zauner [Wed, 11 Jun 2008 13:17:21 +0000 (15:17 +0200)]
man pages: Fix typos.
(This used to be commit 881eaa26e071a7fde9c6fc5eb42ae122d0ddd490)

15 years agoSamba3-HOWTO: Fix typos.
Christoph Zauner [Wed, 11 Jun 2008 12:49:30 +0000 (14:49 +0200)]
Samba3-HOWTO: Fix typos.
(This used to be commit 2391d999eb733bd8d12631478f4318608225cbb6)

15 years agoFix typos.
Christoph Zauner [Wed, 11 Jun 2008 12:05:47 +0000 (14:05 +0200)]
Fix typos.
(This used to be commit b2390aa738f6384016600dffb8065bd0bcda6ef1)

15 years agoFix max_fd calculation in event_loop_once
Volker Lendecke [Wed, 11 Jun 2008 16:56:20 +0000 (18:56 +0200)]
Fix max_fd calculation in event_loop_once

For some bugs I really wonder how they can go undetected for so long.

Fix a bug reported by Mathias Dietz. No samba bugzilla entry, but still 100%
needed for 3-2-stable.

Volker
(cherry picked from commit 82c994dabc47bb4755c883a1f3651bb5d65cf2c5)
(This used to be commit 91c73e093a03b10426b671cb3e1dffb8a2455d47)

15 years agorpc_client: fix some valgrind warnings.
Günther Deschner [Wed, 11 Jun 2008 08:44:47 +0000 (10:44 +0200)]
rpc_client: fix some valgrind warnings.

Guenther
(This used to be commit 0352682a355b42ced7628a720a6889d8453e7946)

15 years agore-run make idl.
Günther Deschner [Tue, 10 Jun 2008 18:50:53 +0000 (20:50 +0200)]
re-run make idl.

Guenther
(This used to be commit 3a73fe564f07ef057bfc3b61367acf940067269d)

15 years agoidl: fix drsuapi_DsGetNCChanges.
Günther Deschner [Tue, 10 Jun 2008 18:50:25 +0000 (20:50 +0200)]
idl: fix drsuapi_DsGetNCChanges.

Guenther
(This used to be commit 652af123b214e30d0edf1d5626849484c6bb5045)

15 years agonet: remove some dead code.
Günther Deschner [Tue, 10 Jun 2008 22:56:44 +0000 (00:56 +0200)]
net: remove some dead code.

Guenther
(This used to be commit cdd1ce797aefa07780a73d0793c450e2d96f17bb)

15 years agopam_winbind: Update cached creds during password change.
Günther Deschner [Wed, 11 Jun 2008 07:52:56 +0000 (09:52 +0200)]
pam_winbind: Update cached creds during password change.

Fix is from Bo Yang @ Novell.

Thanks!
(This used to be commit e4eb9d347d14de8c9ba73b07f26fe8fd4f17eab5)

15 years agorpcclient: add more useful comments what sign/seal commands are doing.
Günther Deschner [Tue, 10 Jun 2008 19:34:23 +0000 (21:34 +0200)]
rpcclient: add more useful comments what sign/seal commands are doing.

Guenther
(This used to be commit ec278d8bc82e86c98d24277eb50633f8cd4c7600)

15 years agoCorrectly find a [u]int32_t replacement
Volker Lendecke [Tue, 10 Jun 2008 14:14:30 +0000 (16:14 +0200)]
Correctly find a [u]int32_t replacement
(cherry picked from commit 346375cda557a675f8f882ca2ae8edffec725a72)
(This used to be commit 15a53945c9563b4517bd8b69a9bb0554eef5edff)

15 years agoFix some scary FC9 warnings
Volker Lendecke [Tue, 10 Jun 2008 12:15:01 +0000 (14:15 +0200)]
Fix some scary FC9 warnings
(cherry picked from commit 6b0fed09ea34409d1c61bae9121bdb38d4c68d62)
(This used to be commit f1e85ff2bc4eea2c50d7d71caca16b9051ca5e8c)

15 years agoman pages: Don't refer to numbered chapter of the HOWTO collection.
Karolin Seeger [Tue, 10 Jun 2008 13:30:19 +0000 (15:30 +0200)]
man pages: Don't refer to numbered chapter of the HOWTO collection.

This fixes bug #5527.
Thanks to the Debian package maintainers for reporting!

Karolin
(This used to be commit b6696f4fbfc6aaffceef71c6099b8eaea58c1172)

15 years agosocket_wrapper: truncate packets to a 1500 byte payload
Stefan Metzmacher [Tue, 10 Jun 2008 06:33:24 +0000 (08:33 +0200)]
socket_wrapper: truncate packets to a 1500 byte payload

Truncate sendto(), recvfrom(), send() and recv() to 1500 bytes
so that're getting a correctly formatted pcap file and the result
look more like real network traffic.

metze
(cherry picked from commit 5b01206f1bb2e62c08bda34b45904ec4f83ac5de)
(This used to be commit eb8c37a1ca97b41de00ec937a90bfdbe9cd21531)

15 years agosocket_wrapper: sync missing stuff from v4-0-test
Stefan Metzmacher [Tue, 10 Jun 2008 07:21:05 +0000 (09:21 +0200)]
socket_wrapper: sync missing stuff from v4-0-test

metze
(This used to be commit b03c2793548834a1dc0483b03081d872ab1e17f0)

15 years agoFactor out IP marshalling into separate function.
Jelmer Vernooij [Tue, 19 Feb 2008 22:53:04 +0000 (23:53 +0100)]
Factor out IP marshalling into separate function.
(cherry picked from commit 2548c2a1e7dab8abc00f8f49374a08cc0b427552)
(This used to be commit e4e015caac88f6e31ca6d8fcda5a97a11aee226d)

15 years agor25783: socket_wrapper: don't include "includes.h"
Stefan Metzmacher [Thu, 1 Nov 2007 12:10:59 +0000 (13:10 +0100)]
r25783: socket_wrapper: don't include "includes.h"

metze
(cherry picked from commit 47f865165e772540334dcbcf80cfc1999b0132fa)
(This used to be commit 4d5bfcc731b44267e2c30fccdca72b6058b16bfb)

15 years agor23420: try to make the IBM checker happy
Stefan Metzmacher [Mon, 11 Jun 2007 14:41:14 +0000 (14:41 +0000)]
r23420: try to make the IBM checker happy

metze
(cherry picked from commit 96f1a0dfaa18a432fca4b5432d929d8daed0abb1)
(This used to be commit 801ed0b79956133f2baa6b2db4a7dd5a68060edc)

15 years agor22236: Update to Heimdal's socket_wrapper, which supports IPv6.
Stefan Metzmacher [Tue, 10 Jun 2008 07:00:37 +0000 (09:00 +0200)]
r22236: Update to Heimdal's socket_wrapper, which supports IPv6.

To make this pass, I needed to add support for 6 and 17 as valid
protocol values to socket().

Andrew Bartlett
(partly cherry picked from commit 2254e61a1e5b29a64c5a24aac029ace193057e24)

metze
(This used to be commit 66b9f6f3722defd0863b055916b302478715704b)

15 years agor21729: Some more tests
Jelmer Vernooij [Tue, 6 Mar 2007 23:03:34 +0000 (23:03 +0000)]
r21729: Some more tests
(cherry picked from commit d2baa8218cf504d6631d610f9fd393ad8c61574c)
(This used to be commit cf6d815ba82a25c1e1f1dfdb8548cc588d44d1aa)

15 years agor21671: Add initial simple tests for socket wrapper
Stefan Metzmacher [Tue, 10 Jun 2008 06:53:34 +0000 (08:53 +0200)]
r21671: Add initial simple tests for socket wrapper
(partly cherry picked from commit 872e2ad541478597191ca9e31872d5c8e2bbb832)

metze
(This used to be commit 8003f00a28bb7237ec1b1f4eb9687c542a86c2b2)

15 years agor19409: Pull in <sys/time.h> for struct timeval for non samba build (don't
Love Hörnquist Åstrand [Thu, 19 Oct 2006 04:56:21 +0000 (04:56 +0000)]
r19409: Pull in <sys/time.h> for struct timeval for non samba build (don't
depend on namespace pollution)
(cherry picked from commit 5052d2d10693e67f1b7c6c71277c8d1bc9c8b612)
(This used to be commit d22701b196bded3294776b144a7a990de23741e9)

15 years agor19367: Solaris needs <sys/filio.h> for FIONREAD.
Love Hörnquist Åstrand [Tue, 17 Oct 2006 09:35:45 +0000 (09:35 +0000)]
r19367: Solaris needs <sys/filio.h> for FIONREAD.
(cherry picked from commit e2866ce78851a84c937408c0781fcc1e7107f663)
(This used to be commit 3db8b246c8abfc4efed08d7630e61a81b9d8bf48)

15 years agoman pages: Fix broken smb.conf section about the 'get quota command'.
Karolin Seeger [Tue, 10 Jun 2008 08:54:21 +0000 (10:54 +0200)]
man pages: Fix broken smb.conf section about the 'get quota command'.

This fixes bug #5422.
Thanks to the Debian package maintainers for reporting!

Karolin
(This used to be commit 04e2470e2eeef34362f2893ec062ae16f74c28ed)

15 years agonet: Rename functable3 to functable, get rid of old functables
Kai Blin [Sat, 7 Jun 2008 00:25:08 +0000 (02:25 +0200)]
net: Rename functable3 to functable, get rid of old functables
(This used to be commit bb7c5fc4ec77db4073d3beccf12af12910b6bd07)

15 years agonet: Make "net sam" use functable3
Kai Blin [Sat, 7 Jun 2008 00:13:52 +0000 (02:13 +0200)]
net: Make "net sam" use functable3
(This used to be commit b161fb7cfe3d0f5c2e853d5759420817c6ed7c0f)

15 years agonet: Make "net rpc registry" use functable3
Kai Blin [Fri, 6 Jun 2008 23:27:41 +0000 (01:27 +0200)]
net: Make "net rpc registry" use functable3
(This used to be commit 08dd5f5311d97544d5cb3067f019260a9161ef81)

15 years agonet: Make "net registry" use functable3
Kai Blin [Fri, 6 Jun 2008 23:10:59 +0000 (01:10 +0200)]
net: Make "net registry" use functable3
(This used to be commit 47f7308e4ee7422a6d9c578c1073b0207969fbb2)

15 years agonet: Make "net conf" use a functable similar to functable3
Kai Blin [Fri, 6 Jun 2008 23:02:13 +0000 (01:02 +0200)]
net: Make "net conf" use a functable similar to functable3
(This used to be commit b8382bc3af318226a1160c6c39627e7a32e050ab)

15 years agonet: Use d_printf() instead of printf() in net_ads_gpo.c
Kai Blin [Fri, 6 Jun 2008 09:07:04 +0000 (11:07 +0200)]
net: Use d_printf() instead of printf() in net_ads_gpo.c
(This used to be commit d0d1346f209ab66754fe2141d22115934ed6f728)

15 years agonet: Make "net rpc service" use functable3
Kai Blin [Wed, 21 May 2008 08:37:10 +0000 (10:37 +0200)]
net: Make "net rpc service" use functable3
(This used to be commit aa06cd5cb2c72cc6c883bbfafe43546accce00a1)

15 years agonet: Make "net rpc rights" use functable3
Kai Blin [Wed, 21 May 2008 08:34:34 +0000 (10:34 +0200)]
net: Make "net rpc rights" use functable3
(This used to be commit b0e373e595d66bd92b685dd98fc8967d45532e41)

15 years agonet: Make "net rpc audit" use functable3
Kai Blin [Wed, 21 May 2008 08:31:14 +0000 (10:31 +0200)]
net: Make "net rpc audit" use functable3
(This used to be commit c47ff2bff6d97a5e7654849965253928a825fe6a)

15 years agonet: Make "net rpc" use functable3
Kai Blin [Wed, 21 May 2008 08:27:59 +0000 (10:27 +0200)]
net: Make "net rpc" use functable3
(This used to be commit 428b56863c3963ecd041b8398d5683c92fa64307)

15 years agonet: Make "net rap" use functable3
Kai Blin [Wed, 21 May 2008 07:05:35 +0000 (09:05 +0200)]
net: Make "net rap" use functable3
(This used to be commit 7a2364518c4200befb419f2bcbf3afd425fd7a6f)

15 years agonet: Make "net ads gpo" use functable3
Kai Blin [Wed, 21 May 2008 06:28:15 +0000 (08:28 +0200)]
net: Make "net ads gpo" use functable3
(This used to be commit 4418b4da61646172981fd54e4bfb6a038feb640b)

15 years agonet: Make "net ads" use functable3
Kai Blin [Tue, 20 May 2008 11:35:04 +0000 (13:35 +0200)]
net: Make "net ads" use functable3
(This used to be commit 64e3dc63966ecf216b354263e4bd5dfd1491abcc)

15 years agonet: Make "net usershare" use functable3
Kai Blin [Mon, 19 May 2008 14:36:18 +0000 (16:36 +0200)]
net: Make "net usershare" use functable3
(This used to be commit b45ada159e1eec757eaf5210517139aae4159119)

15 years agonet: Fix comment for net_time_zone()
Kai Blin [Thu, 5 Jun 2008 20:14:38 +0000 (22:14 +0200)]
net: Fix comment for net_time_zone()
(This used to be commit aea3466d12e31f8f506c21b856235e2e2aa40090)

15 years agonet: Make "net time" use functable3
Kai Blin [Mon, 19 May 2008 14:19:37 +0000 (16:19 +0200)]
net: Make "net time" use functable3
(This used to be commit 28991ad74a387ebfe931860b380d25d5b0b67c7d)

15 years agonet: Make "net idmap" use functable3
Kai Blin [Mon, 19 May 2008 14:10:07 +0000 (16:10 +0200)]
net: Make "net idmap" use functable3
(This used to be commit 9c88b16bebd0917a6a4e8d0e5fcc64c3581ceff5)

15 years agonet: Make "net groupmap" use functable3
Kai Blin [Mon, 19 May 2008 13:55:34 +0000 (15:55 +0200)]
net: Make "net groupmap" use functable3
(This used to be commit c328b3e30b17866f4a0fd344d01efca826215cbc)

15 years agonet: Make "net dom" use functable3
Kai Blin [Mon, 19 May 2008 13:46:57 +0000 (15:46 +0200)]
net: Make "net dom" use functable3
(This used to be commit 11d692de7330b0d6b995fae62746df2ef7830e38)

15 years agonet: Make "net cache" use functable3
Kai Blin [Mon, 19 May 2008 13:40:50 +0000 (15:40 +0200)]
net: Make "net cache" use functable3
(This used to be commit 60ac59fb8a391989f2c2e25b288674e6cc63ae60)

15 years agonet: Make "net afs" use functable3
Kai Blin [Mon, 19 May 2008 13:35:36 +0000 (15:35 +0200)]
net: Make "net afs" use functable3
(This used to be commit aa60f3c0d59e2ebb870ae4e79c7c4c51c3e22d68)

15 years agonet: Make "net status" use functable3
Kai Blin [Mon, 19 May 2008 13:30:30 +0000 (15:30 +0200)]
net: Make "net status" use functable3
(This used to be commit e4b4fb4c39f251b0675b1c1dcec14f20135f876b)

15 years agonet: Don't try to look up a server if net time is called with a command.
Kai Blin [Sun, 18 May 2008 22:33:02 +0000 (00:33 +0200)]
net: Don't try to look up a server if net time is called with a command.
(This used to be commit 37ef7c28163a5c538f325729855ec47ef6fac6bd)

15 years agonet: Add net_display_usage_from_functable()
Kai Blin [Thu, 5 Jun 2008 21:22:19 +0000 (23:22 +0200)]
net: Add net_display_usage_from_functable()
(This used to be commit de0e15b35ea46cfcdd82f45eb3329c44d7aacb90)

15 years agonet: Autogenerate "net help" output from net's functable.
Kai Blin [Sun, 18 May 2008 22:19:18 +0000 (00:19 +0200)]
net: Autogenerate "net help" output from net's functable.
(This used to be commit 0feb40bc8408412336c667df4f8bf57c77446ca7)

15 years agonet: Use functable3
Kai Blin [Sun, 25 May 2008 20:41:58 +0000 (22:41 +0200)]
net: Use functable3
(This used to be commit 122dfe876d954ee3b3796951df16e1be9e9b0eb8)

15 years agonet: Use functable2 to give a short help text for top-level functions.
Kai Blin [Sun, 18 May 2008 17:12:24 +0000 (19:12 +0200)]
net: Use functable2 to give a short help text for top-level functions.
(This used to be commit e9be24a2cbbd9bc7075c0fe75d44d51184f84dba)

15 years agonet: Add net_run_function3
Kai Blin [Thu, 22 May 2008 07:41:21 +0000 (09:41 +0200)]
net: Add net_run_function3
(This used to be commit ba1108f06ae5860c8f418dc383b027068780abf9)

15 years agonet: Move net_run_function/net_run_function2 to net_util.c
Kai Blin [Sun, 18 May 2008 08:56:32 +0000 (10:56 +0200)]
net: Move net_run_function/net_run_function2 to net_util.c
(This used to be commit 73fb5f392dbc1966ec34217e39d565200e071aaf)

15 years agonet: Move includes to net.h
Kai Blin [Wed, 21 May 2008 08:47:59 +0000 (10:47 +0200)]
net: Move includes to net.h
(This used to be commit 1943e2752d4dcb5bbbd4e40cf854efba4aed8f45)

15 years agoDon't reset password last set time just because the expired flag
Jim McDonough [Mon, 9 Jun 2008 15:45:39 +0000 (11:45 -0400)]
Don't reset password last set time just because the expired flag
is set to 0.  If the account wasn't expired but autolocked,
using "net user /dom <username> /active:y" would clear this,
incorrectly setting the current time as the new "password last set"
time.
(This used to be commit 0f292d70f698b8ae885005b5704a96476e876571)

15 years agoshrink ldbtools
Volker Lendecke [Mon, 9 Jun 2008 14:07:57 +0000 (16:07 +0200)]
shrink ldbtools

Thanks to Björn Jacke for noticing :-)
(cherry picked from commit 8faee1cee829d749835a66d219170ccfd85151d0)
(This used to be commit 49f99fcf12523c4a8ef450b66eeb677dc0036939)

15 years agoman pages: Fix typo.
Karolin Seeger [Fri, 23 May 2008 12:12:05 +0000 (14:12 +0200)]
man pages: Fix typo.

Karolin
(cherry picked from commit 87bcff8dde4302f7b473933f8fddfb98b3c024db)
(This used to be commit f0b3df1ff0d423be20723968f15b3543969ff769)

15 years agoman pages: Fix synonyms.
Karolin Seeger [Mon, 9 Jun 2008 13:05:26 +0000 (15:05 +0200)]
man pages: Fix synonyms.

Karolin
(This used to be commit d1ae27ddbe9c30996d2c593a37e65581c3ff482c)

15 years agoman pages: Remove wrong synonym.
Karolin Seeger [Mon, 9 Jun 2008 13:03:12 +0000 (15:03 +0200)]
man pages: Remove wrong synonym.

Karolin
(This used to be commit 4951bc8ff1da9bfc79b9b403b420f07299266df6)

15 years agoFix the compile on NetBSD -- missing prototypes
Volker Lendecke [Mon, 9 Jun 2008 13:34:51 +0000 (15:34 +0200)]
Fix the compile on NetBSD -- missing prototypes
(cherry picked from commit 11236d266e3703eb3aca4b96e2ed9da76614ec12)
(This used to be commit d25408f83d03fae9d6b589b005db9a3af823e652)

15 years agoFix the compile on NetBSD -- readlink and read are macros there
Volker Lendecke [Mon, 9 Jun 2008 13:33:28 +0000 (15:33 +0200)]
Fix the compile on NetBSD -- readlink and read are macros there
(cherry picked from commit 435b80a9a2e9324cc20594d922b3d8d6418c27af)
(This used to be commit 055bb54fa646f6de7d7b748deaebd69ddeff33d1)

15 years agolibreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if required
Stefan Metzmacher [Mon, 9 Jun 2008 08:39:48 +0000 (10:39 +0200)]
libreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if required

This fixes ./autogen.sh with autoconf-2.62

metze
(cherry picked from commit 72bb01dda4d425528e28cd96e249595dc6c1952f)
(This used to be commit 85111dc2b60ca38027adf129a074641c752cb104)

15 years agolibreplace: fix warnings with autoconf-2.62 rename ac_ => libreplace_cv_
Stefan Metzmacher [Mon, 9 Jun 2008 08:38:09 +0000 (10:38 +0200)]
libreplace: fix warnings with autoconf-2.62 rename ac_ => libreplace_cv_

AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(cherry picked from commit 67e43860b4973a458676b36785570bb4a66e046a)
(This used to be commit d786bfc48e20ed7e695a988da6ed56a573afdadc)

15 years agoconfigure: we require autoconf 2.54
Stefan Metzmacher [Mon, 9 Jun 2008 08:43:48 +0000 (10:43 +0200)]
configure: we require autoconf 2.54

I've tested with autoconf from 2.53 to 2.62.

metze
(This used to be commit a268a6d251e58c27262e11fcd85b8281dfaddd8b)

15 years agoconfigure: fix warnings with autoconf-2.62 rename SMB_BUILD_ => samba_cv_
Stefan Metzmacher [Mon, 9 Jun 2008 08:27:12 +0000 (10:27 +0200)]
configure: fix warnings with autoconf-2.62 rename SMB_BUILD_ => samba_cv_

AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(This used to be commit 89663ab4d10586b96807c56de53fd60d2488093c)

15 years agoconfigure: fix warnings with autoconf-2.62 rename samba_stat_hires => samba_cv_stat_hires
Stefan Metzmacher [Mon, 9 Jun 2008 08:23:27 +0000 (10:23 +0200)]
configure: fix warnings with autoconf-2.62 rename samba_stat_hires => samba_cv_stat_hires

AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(This used to be commit 426b1e36e262ae47ea62e36e1df8a76c930394bc)

15 years agoconfigure: fix warnings with autoconf-2.62 rename smb_krb5_ => smb_krb5_cv_
Stefan Metzmacher [Mon, 9 Jun 2008 08:19:21 +0000 (10:19 +0200)]
configure: fix warnings with autoconf-2.62 rename smb_krb5_ => smb_krb5_cv_

AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(This used to be commit 38a03d61ecd35a70905b895b839a994e974cbaf1)

15 years agoBugfix noticed by Herb. On using the again: tag as a
Jeremy Allison [Sun, 8 Jun 2008 21:19:44 +0000 (14:19 -0700)]
Bugfix noticed by Herb. On using the again: tag as a
goto target we were not reinitializing the array counts.

From Herb:

This is in the file nsswitch/winbindd_cm.c (samba-3.0.30) line 1236

We have a label again: where we keep trying to find the name of the DC
from the list of IPs returned by get_dcs. If we fail to figure out the
name we do a goto again at the end of the function. The problem is we
don't reset the num_dcs, num_addrs, etc and free the memory in the
various arrays. This seems wrong to me. I have a winbindd core where
I have 9 IPs returned for the DCs but at the time of the crash num_dcs
is 87 and if I look through the array dcs it keeps repeating entries
from the same group of 9

Jerry, Volker and Guenther please check.

Jeremy.
(This used to be commit 15f464321a7c71a86b747918343746050d286655)

15 years agoAdd STREAMINFO op to vfs_full_audit
Volker Lendecke [Sat, 7 Jun 2008 07:04:03 +0000 (09:04 +0200)]
Add STREAMINFO op to vfs_full_audit

Fix Coverity ID 552 and 553
(This used to be commit c46e10d2605b22d31675976e62e5ae61d73c8a0a)