ira/wip.git
16 years agoOn Solaris, size_t seems to be only 32 bit.
Volker Lendecke [Fri, 21 Mar 2008 12:39:48 +0000 (13:39 +0100)]
On Solaris, size_t seems to be only 32 bit.

Fix bug 5341, thanks a lot to Karoly Vegh for testing it!

Volker
(This used to be commit 19eb8c9316b10b1277121e90d0d3ef50ee562118)

16 years agoFix Coverity ID 473
Volker Lendecke [Fri, 21 Mar 2008 10:52:34 +0000 (11:52 +0100)]
Fix Coverity ID 473

Simo, S4 also has this bug, you might want to merge the fix.
(This used to be commit b82cf75c825298444781697072d83a163c43df4b)

16 years agoFix Coverity ID 506
Volker Lendecke [Fri, 21 Mar 2008 10:48:09 +0000 (11:48 +0100)]
Fix Coverity ID 506
(This used to be commit c9add4d59a1615aabc565e323cb19cf7ef4b6b64)

16 years agoFix Coverity ID 507
Volker Lendecke [Fri, 21 Mar 2008 10:45:57 +0000 (11:45 +0100)]
Fix Coverity ID 507
(This used to be commit 4ea5798b97497359b09d97c27c2005750a6cbddd)

16 years agoFix Coverity ID 537
Volker Lendecke [Fri, 21 Mar 2008 10:42:42 +0000 (11:42 +0100)]
Fix Coverity ID 537
(This used to be commit b19ea3635ccc1f2c7cd6c7f2d179264fbdce13a7)

16 years agoFix Coverity ID 538
Volker Lendecke [Fri, 21 Mar 2008 10:41:15 +0000 (11:41 +0100)]
Fix Coverity ID 538
(This used to be commit d69b8b19aeac2266fb5e5ee280ffffe48a690099)

16 years agoFix Coverity ID 547
Volker Lendecke [Fri, 21 Mar 2008 09:40:40 +0000 (10:40 +0100)]
Fix Coverity ID 547

Günther, please check. If r->in.ads==NULL, we can't call ads_leave_realm at
all.

Thanks,

Volker
(This used to be commit 120d8c889fa9ad61c74f1f936e83537513454648)

16 years agoFix Coverity ID 548
Volker Lendecke [Fri, 21 Mar 2008 09:28:33 +0000 (10:28 +0100)]
Fix Coverity ID 548

Günther, please check -- in all infolevels we do a comment=talloc_strdup

Thanks,

Volker
(This used to be commit e2021c5b5710768968ae724220eb1e3f47c9e639)

16 years agoFix Coverity IDs 553, 552
Volker Lendecke [Fri, 21 Mar 2008 09:20:53 +0000 (10:20 +0100)]
Fix Coverity IDs 553, 552
(This used to be commit 1a0aed566b7e4fc75bf894aac6828bfa4152c3dc)

16 years agoAdd my copyright.
Günther Deschner [Fri, 21 Mar 2008 03:13:49 +0000 (04:13 +0100)]
Add my copyright.

Guenther
(This used to be commit 4689057f63599ebaf9ce658ca3b3168b2bbe531f)

16 years agoRemove remaining old srvsvc client and server rpc code entirely.
Günther Deschner [Fri, 21 Mar 2008 03:12:52 +0000 (04:12 +0100)]
Remove remaining old srvsvc client and server rpc code entirely.

Guenther
(This used to be commit a5f0186f70abe8dba650265219e69ce5ca2fb642)

16 years agoRemove double RPC_PARSE_OBJ2 from Makefile.
Günther Deschner [Fri, 21 Mar 2008 02:59:02 +0000 (03:59 +0100)]
Remove double RPC_PARSE_OBJ2 from Makefile.

Guenther
(This used to be commit 0244734cc5c682a73f84e2fe0a52a15090063d93)

16 years agoMove MAX.*ENTRY definitions out of old rpc srvsvc parsing code.
Günther Deschner [Fri, 21 Mar 2008 02:56:54 +0000 (03:56 +0100)]
Move MAX.*ENTRY definitions out of old rpc srvsvc parsing code.

Guenther
(This used to be commit 4e36657275caa77bc9712fe627aeb6fe4aefc151)

16 years agoRemove unused marshalling for SRV_NET_SESS_ENUM.
Günther Deschner [Fri, 21 Mar 2008 02:53:18 +0000 (03:53 +0100)]
Remove unused marshalling for SRV_NET_SESS_ENUM.

Guenther
(This used to be commit 54554683d63575cfdfa24f89952737ccf7ae5bc0)

16 years agoUse pidl for _srvsvc_NetSessEnum().
Günther Deschner [Fri, 21 Mar 2008 02:51:37 +0000 (03:51 +0100)]
Use pidl for _srvsvc_NetSessEnum().

Guenther
(This used to be commit 5d14938b14f8e59608771b1899fd473d63f3bde1)

16 years agoAdd support for setting resume handle in netsessenum rpcclient command.
Günther Deschner [Fri, 21 Mar 2008 02:50:49 +0000 (03:50 +0100)]
Add support for setting resume handle in netsessenum rpcclient command.

Guenther
(This used to be commit a01588d65f67ac23a5a2a741bb0419830e42868c)

16 years agoRemove unused marshalling for SRV_NET_CONN_ENUM.
Günther Deschner [Fri, 21 Mar 2008 01:01:58 +0000 (02:01 +0100)]
Remove unused marshalling for SRV_NET_CONN_ENUM.

Guenther
(This used to be commit 51467443f70a53c3290f26f94cdaf8a64f58c2af)

16 years agoUse pidl for _srvsvc_NetConnEnum().
Günther Deschner [Fri, 21 Mar 2008 00:58:43 +0000 (01:58 +0100)]
Use pidl for _srvsvc_NetConnEnum().

Guenther
(This used to be commit b8714e03e70070b5dfb1a0b15b191dfac0634c44)

16 years agoAllow to set or unset resume_handle in netconnenum in rpcclient.
Günther Deschner [Fri, 21 Mar 2008 00:14:23 +0000 (01:14 +0100)]
Allow to set or unset resume_handle in netconnenum in rpcclient.

Guenther
(This used to be commit f1b93c24fea0441deb5319f6fc4df0373d0dc939)

16 years agolibsmbconf: reformaat - fix some whispacing/tabs
Michael Adam [Fri, 21 Mar 2008 01:29:09 +0000 (02:29 +0100)]
libsmbconf: reformaat - fix some whispacing/tabs

Michael
(This used to be commit 1a5e5bf38f409b10c8b1da6227722c7d3976b175)

16 years agolibsmbconf: add backend specific init function.
Michael Adam [Fri, 21 Mar 2008 01:20:16 +0000 (02:20 +0100)]
libsmbconf: add backend specific init function.

Hide generic init function taking smbconf_ops argument
from public api.

Michael
(This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)

16 years agolibsmbconf: add shutdown handler to smbconf_ops.
Michael Adam [Fri, 21 Mar 2008 01:01:55 +0000 (02:01 +0100)]
libsmbconf: add shutdown handler to smbconf_ops.

Michael
(This used to be commit acbd1f40e0cb4cb5b2ba826c4825edda7ee4937b)

16 years agolibsmbconf: fix comments
Michael Adam [Fri, 21 Mar 2008 00:15:20 +0000 (01:15 +0100)]
libsmbconf: fix comments

Michael
(This used to be commit 24f32d9bd9aa837d777ea4187bebf3146a67ce59)

16 years agolibsmbconf: rename smbconf_close() to smbconf_shutdown().
Michael Adam [Fri, 21 Mar 2008 00:04:57 +0000 (01:04 +0100)]
libsmbconf: rename smbconf_close() to smbconf_shutdown().

Michael
(This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)

16 years agolibsmbconf: rename smbconf_open() to smbconf_init().
Michael Adam [Thu, 20 Mar 2008 22:41:39 +0000 (23:41 +0100)]
libsmbconf: rename smbconf_open() to smbconf_init().

That's more appropriate.

Michael
(This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)

16 years agolibsmbconf: add open and close operations to the smbconf_ops.
Michael Adam [Thu, 20 Mar 2008 17:40:09 +0000 (18:40 +0100)]
libsmbconf: add open and close operations to the smbconf_ops.

Note: currently, reg_init_smbconf opens the registry, but does
not close it. This has to be changed. so that it is closed.
And then libsmbconf will need these open/close functions

Michael
(This used to be commit 77dbdf82efa60c8a7c00e489c198775b2f66e56c)

16 years agolibsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.
Michael Adam [Thu, 20 Mar 2008 11:28:41 +0000 (12:28 +0100)]
libsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.

Michael
(This used to be commit a857f643d1558c0fdab4b647695d75223b730b96)

16 years agolibsmbconf: move smbconf_reg_initialize() down to the smbconf operations.
Michael Adam [Thu, 20 Mar 2008 11:25:44 +0000 (12:25 +0100)]
libsmbconf: move smbconf_reg_initialize() down to the smbconf operations.

Michael
(This used to be commit f2d605006cd1187f70a044c3356d436e91093d5f)

16 years agolibsmbconf: add existence check for service to smbconf_delete_share().
Michael Adam [Thu, 20 Mar 2008 10:54:30 +0000 (11:54 +0100)]
libsmbconf: add existence check for service to smbconf_delete_share().

Michael
(This used to be commit d44c2ef0b7d7bddb4115b596872748132ebd6ddc)

16 years agolibsmbconf: add existence check for service to smbconf_get_share().
Michael Adam [Thu, 20 Mar 2008 10:53:40 +0000 (11:53 +0100)]
libsmbconf: add existence check for service to smbconf_get_share().

Michael
(This used to be commit 26208d3e96a1e257628366709a1d71ac36f0788b)

16 years agolibsmbconf: add check for NULL servicename to smbconf_share_exists().
Michael Adam [Thu, 20 Mar 2008 10:52:13 +0000 (11:52 +0100)]
libsmbconf: add check for NULL servicename to smbconf_share_exists().

Michael
(This used to be commit 5dac66c82af8c87df723092a9309304846684418)

16 years agolibsmbconf: fix a comment
Michael Adam [Thu, 20 Mar 2008 10:50:06 +0000 (11:50 +0100)]
libsmbconf: fix a comment
(This used to be commit 103a37ac8e85e9a7b8c2f4eb33e6f1cdbe01d31c)

16 years agolibsmbconf: refactor out registry implementation of smbconf operations.
Michael Adam [Thu, 20 Mar 2008 10:49:26 +0000 (11:49 +0100)]
libsmbconf: refactor out registry implementation of smbconf operations.

This leaves most of the api functions mere wrappers except for some
common initial checks.

Michael
(This used to be commit 9448a7a298e9ed035aa6b86df18f2d41081731cc)

16 years agolibsmbconf: refactor autocreation of [global] into a helper function.
Michael Adam [Thu, 20 Mar 2008 09:43:17 +0000 (10:43 +0100)]
libsmbconf: refactor autocreation of [global] into a helper function.

Michael
(This used to be commit aeaf66c064de58c6f19d5a9d226843dedb552011)

16 years agolibsmbconf: put the smbconf context struct into a private header.
Michael Adam [Wed, 19 Mar 2008 11:37:17 +0000 (12:37 +0100)]
libsmbconf: put the smbconf context struct into a private header.

Michael
(This used to be commit a99ee5e536eee1563c90e5d7f251bfe9f5d1ffbb)

16 years agolibsmbconf: change the API to always take the smbconf_ctx parameter first.
Michael Adam [Wed, 19 Mar 2008 09:47:23 +0000 (10:47 +0100)]
libsmbconf: change the API to always take the smbconf_ctx parameter first.

..for consistency. Exception: the open/init function, where the smbconf_ctx
is created from the given talloc context.

Michael
(This used to be commit 304dba6cb2184437f3edad065a530d03fb704036)

16 years agolibsmbconf: fix indentation.
Michael Adam [Wed, 19 Mar 2008 09:15:16 +0000 (10:15 +0100)]
libsmbconf: fix indentation.

Michael
(This used to be commit 7460697ea42764f5f658a4f7f70872a56aeb160d)

16 years agolibsmbconf: change smbconf_get_seqnum() to smbconf_changed().
Michael Adam [Tue, 18 Mar 2008 22:29:11 +0000 (23:29 +0100)]
libsmbconf: change smbconf_get_seqnum() to smbconf_changed().

The former seqnum is hidden inside a struct smbconf_csn.
And the get_seqnum is united with a changed function that
stores the seqnum inside the given csn.

Michael
(This used to be commit 5b6b90900a1a3eab24cb5612d78f9678a363cf73)

16 years agolibsmbconf: fix a comment
Michael Adam [Mon, 17 Mar 2008 23:51:15 +0000 (00:51 +0100)]
libsmbconf: fix a comment

Michael
(This used to be commit e6b60f6cad32ce8bb78abb070889dde3eca2d268)

16 years agoA level 25 setuserinfo does change the pwdlastset
Volker Lendecke [Thu, 20 Mar 2008 20:58:39 +0000 (21:58 +0100)]
A level 25 setuserinfo does change the pwdlastset
(This used to be commit f65cb5d4b51e2e7b9b16b73e47cd2a8d55d5d4b0)

16 years agosmbd: fix session setup with security = share.
Michael Adam [Thu, 20 Mar 2008 15:50:52 +0000 (16:50 +0100)]
smbd: fix session setup with security = share.

Broken by pstring removal in 9ed12bfc48fe7f9b1863a9dd88e881974083053c.
Jeremy, please check.

Thanks to Yannick Bergeron <yaberger@ca.ibm.com> for noting this.

Michael
(This used to be commit 008c4bdbe5de064b4469fc1f7c7173290f35b3ef)

16 years agoFix an uninitialized variable warning
Volker Lendecke [Thu, 20 Mar 2008 15:15:38 +0000 (16:15 +0100)]
Fix an uninitialized variable warning
(This used to be commit 4cc09ec40609484c973361a0cc0f05bfaef1738e)

16 years agoPort 3c1f1f0797e from 3-0-ctdb
root [Thu, 20 Mar 2008 14:59:37 +0000 (15:59 +0100)]
Port 3c1f1f0797e from 3-0-ctdb

We need to inform ctdb about the client's TCP connection so that after a fail
over ctdbd can trigger the client to reconnect very quickly
(This used to be commit ddc989886deff173b8a2a2a753a896770efe7545)

16 years agoFix some warnings in the tsmsm module
Volker Lendecke [Thu, 20 Mar 2008 11:49:13 +0000 (12:49 +0100)]
Fix some warnings in the tsmsm module

Alexander, please check!
(This used to be commit df574fd2ee58f008b93b06f4d78c85cb909cc92c)

16 years agoloadparm: reenable checking files for updates while in registry configuration.
Michael Adam [Wed, 19 Mar 2008 14:18:06 +0000 (15:18 +0100)]
loadparm: reenable checking files for updates while in registry configuration.

This is necessary now that includes (to files) are enabled from registry.

Michael
(This used to be commit 7dc64d1021e0b8f3339f811c8c144f7013a649a8)

16 years agoloadparm: remove unneeded include.
Michael Adam [Wed, 19 Mar 2008 10:00:29 +0000 (11:00 +0100)]
loadparm: remove unneeded include.

libnet.h unneeded after separation of libsmbconf from libnet.

Michael
(This used to be commit 5c3f14e02fa7baf11d9a6531f2de3e6b16d843b0)

16 years agoregistry: use available string constant in debug statement.
Michael Adam [Thu, 20 Mar 2008 13:35:41 +0000 (14:35 +0100)]
registry: use available string constant in debug statement.

Michael
(This used to be commit 6bac03a2ec6351ab9db457d904b8925c828086e8)

16 years agoregistry: in regdb_init, not only complain about INFO/version, store it...
Michael Adam [Thu, 20 Mar 2008 13:33:43 +0000 (14:33 +0100)]
registry: in regdb_init, not only complain about INFO/version, store it...

Michael
(This used to be commit 27d67365ad03f0a0cd86011758a122a97513b82e)

16 years agoregistry: reformat regdb_init() slightly, breaking long lines.
Michael Adam [Thu, 20 Mar 2008 13:26:42 +0000 (14:26 +0100)]
registry: reformat regdb_init() slightly, breaking long lines.

Michael
(This used to be commit 11da885f1e82e7a08fac2bc0ec1515694caa6340)

16 years agoregistry: untangle assignment and if-statement in regdb_init().
Michael Adam [Thu, 20 Mar 2008 13:24:12 +0000 (14:24 +0100)]
registry: untangle assignment and if-statement in regdb_init().

Michael
(This used to be commit 504058df9706ee4e4c2e7fb1b1e41710bce2f87d)

16 years agoregistry: separate initialization of registry data from regdb_init().
Michael Adam [Thu, 20 Mar 2008 13:08:29 +0000 (14:08 +0100)]
registry: separate initialization of registry data from regdb_init().

Leave this to the users (currently registry_init_smbconf() and
init_registry()) to initialize as much of preliminary registry data
as needed.

Michael
(This used to be commit 59fdd30c789ccfd5cff356e459f1653b065b985c)

16 years agoregistry: add a transaction wrapper to init_registry_key_internal().
Michael Adam [Thu, 20 Mar 2008 13:01:13 +0000 (14:01 +0100)]
registry: add a transaction wrapper to init_registry_key_internal().

Michael
(This used to be commit 8b9cff84d5c39e6d7c315d87ac2fdf7fc0d4e4c4)

16 years agoregistry: refactor creation of subkeys out of init_registry_data().
Michael Adam [Thu, 20 Mar 2008 12:59:09 +0000 (13:59 +0100)]
registry: refactor creation of subkeys out of init_registry_data().

Michael
(This used to be commit 55233f875ebe1d515c65d9322cda69eb52d4c7d5)

16 years agoStart to prepare WHATSNEW for 3.2.0pre3.
Karolin Seeger [Thu, 20 Mar 2008 13:15:29 +0000 (14:15 +0100)]
Start to prepare WHATSNEW for 3.2.0pre3.

Karolin
(This used to be commit 0b54dd097fbd44b53a311f1e8f4716056a96c2d2)

16 years agoRemove unused marshalling for SVCCTL_ENUM_DEPENDENT_SERVICES.
Günther Deschner [Thu, 20 Mar 2008 00:40:04 +0000 (01:40 +0100)]
Remove unused marshalling for SVCCTL_ENUM_DEPENDENT_SERVICES.

Guenther
(This used to be commit 5838d81346a51ef1e996bab938533ae2097f7e47)

16 years agoUse pidl for _svcctl_EnumDependentServicesW().
Günther Deschner [Thu, 20 Mar 2008 00:38:23 +0000 (01:38 +0100)]
Use pidl for _svcctl_EnumDependentServicesW().

Guenther
(This used to be commit 988291a9c07c055213f8979ebe75bb392811008d)

16 years agoRe-run make idl.
Günther Deschner [Thu, 20 Mar 2008 00:35:58 +0000 (01:35 +0100)]
Re-run make idl.

Guenther
(This used to be commit fe7203090c0c51e4561a3b5ce0d5d131d280ba8e)

16 years agoFix IDL for svcctl_EnumDependentServicesW().
Günther Deschner [Thu, 20 Mar 2008 00:32:20 +0000 (01:32 +0100)]
Fix IDL for svcctl_EnumDependentServicesW().

Guenther
(This used to be commit 46bfded43dcabdd2302d82920fb2a37c41e58126)

16 years agoMove svc_status_string() out of rpc_client/cli_svcctl.c
Günther Deschner [Thu, 20 Mar 2008 00:26:37 +0000 (01:26 +0100)]
Move svc_status_string() out of rpc_client/cli_svcctl.c

Guenther
(This used to be commit 2860ae2eb2cb99b4febb352f516b3fa9fbd2abbb)

16 years agoNo need to compose CLI_SERVER_NAME_SLASH in "net rpc service" anymore.
Günther Deschner [Thu, 20 Mar 2008 00:24:55 +0000 (01:24 +0100)]
No need to compose CLI_SERVER_NAME_SLASH in "net rpc service" anymore.

Guenther
(This used to be commit b5291d477381521cd4b71674616f8c9899007002)

16 years agoAdd error mapping for WERR_SERVICE_NEVER_STARTED.
Günther Deschner [Wed, 19 Mar 2008 23:31:26 +0000 (00:31 +0100)]
Add error mapping for WERR_SERVICE_NEVER_STARTED.

Guenther
(This used to be commit 818044d877597ba5c11dc7f30bab929c4b41db89)

16 years agoFix crash bug in check_sam_security() when make_server_info_sam() did a
Günther Deschner [Wed, 19 Mar 2008 23:30:01 +0000 (00:30 +0100)]
Fix crash bug in check_sam_security() when make_server_info_sam() did a
talloc_steal and talloc_free on the sam account already.

Guenther
(This used to be commit dbc7237a8a566f3e86bd6e4b48593b93c5bfb94e)

16 years agontlm_auth: Improve compliance to the Squid helper protocol
Kai Blin [Wed, 19 Mar 2008 22:32:38 +0000 (23:32 +0100)]
ntlm_auth: Improve compliance to the Squid helper protocol

This fixes bug #4235.

Patch from Pawel Worach <pawel.worach@gmail.com> with some linebreaks
added by me.

Also fix one BH message that the original patch didn't fix.
(This used to be commit 098380760d20bad2a45c3b12ab2a5e4d2b856175)

16 years agolibreplace: replace.c does not need system/network.h anymore.
Michael Adam [Tue, 18 Mar 2008 16:50:23 +0000 (17:50 +0100)]
libreplace: replace.c does not need system/network.h anymore.

Michael
(cherry picked from commit 2d3c2f34f33338ff422047dae9cc262522689328)
(This used to be commit 03a980d8f67ee1516c357807c23a405f07a006b3)

16 years agolibreplace: move rep_socketpair() to its own module.
Michael Adam [Tue, 18 Mar 2008 16:20:47 +0000 (17:20 +0100)]
libreplace: move rep_socketpair() to its own module.

Prototype is now in system/network.h,
implementation in socketpair.c, and
check in socketpair.m4.

Now the last networking function has vanished from replace.c.

Michael
(cherry picked from commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)
(This used to be commit 6c53753246b8108fe1277b34958e122bd800c4e7)

16 years ago!NT_STATUS_IS_OK != NT_STATUS_IS_ERR
Volker Lendecke [Wed, 19 Mar 2008 21:37:24 +0000 (22:37 +0100)]
!NT_STATUS_IS_OK != NT_STATUS_IS_ERR

When reading from a pipe, Windows return STATUS_BUFFER_OVERFLOW which is *not*
an error.
(This used to be commit 24018d882d1b1cfece47c533fe5bbca91de124cc)

16 years agoFix a warning
Volker Lendecke [Wed, 19 Mar 2008 16:04:50 +0000 (17:04 +0100)]
Fix a warning
(This used to be commit c40648ea4d7897c401a5a94703e586acfdaec13b)

16 years agoMerge dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible
Volker Lendecke [Wed, 19 Mar 2008 15:09:37 +0000 (16:09 +0100)]
Merge dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible

NetSamLogonEx has the advantage that it does not use the credential chain
(This used to be commit cfceb063f559f8549b8f24ce347be213c89303b0)

16 years agoFix some "nexted extern" warnins
Volker Lendecke [Wed, 19 Mar 2008 15:08:24 +0000 (16:08 +0100)]
Fix some "nexted extern" warnins
(This used to be commit 32fc759d942abb36d7dd351eff82925b6788dd28)

16 years agoFix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>
Volker Lendecke [Wed, 19 Mar 2008 14:01:30 +0000 (15:01 +0100)]
Fix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>
(This used to be commit 5ec2dbd144a3bbfdb14deafd158bad48b2d41ca4)

16 years agoFix the build (by calling NDR_SRVSVC_NETFILEENUM).
Günther Deschner [Wed, 19 Mar 2008 01:47:22 +0000 (02:47 +0100)]
Fix the build (by calling NDR_SRVSVC_NETFILEENUM).

Guenther
(This used to be commit 3b1f3d8a6ce9b8860aca07d9960bc8488296aecd)

16 years agoRemove unused marshalling for SRV_NET_FILE_ENUM.
Günther Deschner [Wed, 19 Mar 2008 00:31:09 +0000 (01:31 +0100)]
Remove unused marshalling for SRV_NET_FILE_ENUM.

Guenther
(This used to be commit fcdc09674571b8e81233acc9e8dc8651b66cd21d)

16 years agoUse pidl for _srvsvc_NetFileEnum.
Günther Deschner [Wed, 19 Mar 2008 00:25:59 +0000 (01:25 +0100)]
Use pidl for _srvsvc_NetFileEnum.

Guenther
(This used to be commit 6c6700ed7148b73b2ce52fc00020c7e253a577d3)

16 years agoBind Group Policy processing closer to the samba registry.
Günther Deschner [Tue, 18 Mar 2008 20:30:34 +0000 (21:30 +0100)]
Bind Group Policy processing closer to the samba registry.

Guenther
(This used to be commit e9c56250eb7a2dc4e69962c5b48875834941ccfc)

16 years ago[samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]
Andrew Tridgell [Sat, 2 Jun 2007 05:38:09 +0000 (15:38 +1000)]
[samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]
suppress that darn message
(cherry picked from commit 542e46a21898f6fcc8a0aeb63925607a60e0b99f)
(This used to be commit 5e8c624c9c9775f255632717e6898d5f190ba51b)

16 years agolibreplace: remove duplicate entry of inet_ntoa from README.
Michael Adam [Tue, 18 Mar 2008 15:31:15 +0000 (16:31 +0100)]
libreplace: remove duplicate entry of inet_ntoa from README.

Michael
(cherry picked from commit 98ee8c84300757d778733a458c6ca3e6022b40ea)
(This used to be commit a4f22d6e2b3fc198327deabf4a724cd476e4144c)

16 years agolibreplace: remove trailing white spaces.
Michael Adam [Tue, 18 Mar 2008 12:10:22 +0000 (13:10 +0100)]
libreplace: remove trailing white spaces.

Michael
(cherry picked from commit 1f9ca7eed965904f67cf78fbac007432b8a057fd)
(This used to be commit a1d24f110b3edff636174e017eb56ba5b10df590)

16 years agolibreplace: replace inet_ntoa() when it is missing
Michael Adam [Tue, 18 Mar 2008 11:16:47 +0000 (12:16 +0100)]
libreplace: replace inet_ntoa() when it is missing

...not only replace it when it is broken.

This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.

NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.

So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.

Michael
(cherry picked from commit 974c0c45ad42644348e0b55454715b12158f1028)
(This used to be commit edcf2712bcdedabbfdd9ee8b9a18f46126930636)

16 years agolibreplace: put inet_aton.c under LGPL instead of GPL.
Michael Adam [Fri, 14 Mar 2008 14:53:38 +0000 (15:53 +0100)]
libreplace: put inet_aton.c under LGPL instead of GPL.

Michael
(cherry picked from commit cca5d6626fe395f08fd4c8b2344e4e43646cb987)
(This used to be commit f69e51f56f111d9bd5db69e191f45567aacf8c3d)

16 years agolibreplace: remove unused SOCKET_LIBS and NSL_LIBS
Stefan Metzmacher [Tue, 18 Mar 2008 14:01:34 +0000 (15:01 +0100)]
libreplace: remove unused SOCKET_LIBS and NSL_LIBS

metze
(cherry picked from commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739)
(This used to be commit f27d5e0cf80c49d81091a385cbfd0801b5483825)

16 years agolibreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
Stefan Metzmacher [Tue, 18 Mar 2008 13:55:05 +0000 (14:55 +0100)]
libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB

metze
(cherry picked from commit 79037c31334e271a718fcac234148038814b591e)
(This used to be commit b141fce01dd40b25cce52852cd93f0f907c3b008)

16 years agolibreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
Stefan Metzmacher [Tue, 18 Mar 2008 13:53:59 +0000 (14:53 +0100)]
libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks

...instead of using SOCKET_LIBS and NSL_LIBS.

metze
(cherry picked from commit cef2e8d748756f61c248ad6660e85dd1ac36308a)
(This used to be commit 7854ed24a57162fa7569d8f36633f3c156067b0b)

16 years agolibreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
Stefan Metzmacher [Tue, 18 Mar 2008 13:52:36 +0000 (14:52 +0100)]
libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS

But keep the old ones untill the callers are fixed.

metze
(cherry picked from commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9)
(This used to be commit 2dee62ed12910a4d22381677bcf884dca0d999ea)

16 years agotestparm: only check for %u und passwd program when passwd program is given.
Michael Adam [Tue, 18 Mar 2008 14:50:27 +0000 (15:50 +0100)]
testparm: only check for %u und passwd program when passwd program is given.

Michael
(This used to be commit af12b24c4f5e3b77d482a011b62a5a3e13be7d67)

16 years agotestparm: correctly check for empty lp_passwd_prog().
Michael Adam [Tue, 18 Mar 2008 14:49:31 +0000 (15:49 +0100)]
testparm: correctly check for empty lp_passwd_prog().

Michael
(This used to be commit 0567f506986746173d67172cb610c10bacf0ceb9)

16 years agotestparm: fix irritating indentation.
Michael Adam [Tue, 18 Mar 2008 14:33:25 +0000 (15:33 +0100)]
testparm: fix irritating indentation.

Michael
(This used to be commit a74f07243d80294167766dfc6bcad02a96afc079)

16 years agotestparm: fix a segfault triggered by setting "unix password sync = yes".
Michael Adam [Tue, 18 Mar 2008 14:30:17 +0000 (15:30 +0100)]
testparm: fix a segfault triggered by setting "unix password sync = yes".

(introduced by pstring removal 041163551194102ca67fef52c57d87020a1d09bc)

Michael
(This used to be commit 46a021f27c60dc579c9193606997142f5cbeba9e)

16 years agoFix bug 5334
Volker Lendecke [Tue, 18 Mar 2008 12:20:10 +0000 (13:20 +0100)]
Fix bug 5334

I did not test with a zero length file :-)
(This used to be commit 7d7a73944c2dcf078f7bc8de65d575f32f9aa851)

16 years agoSome simplifications
Volker Lendecke [Mon, 17 Mar 2008 20:00:16 +0000 (21:00 +0100)]
Some simplifications
(This used to be commit b59b436997fba47afd02ffb6f1194dfaef229d44)

16 years agoCoverity fixes
Marc VanHeyningen [Fri, 14 Mar 2008 22:26:28 +0000 (14:26 -0800)]
Coverity fixes
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)

16 years agolibsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
Michael Adam [Mon, 17 Mar 2008 17:01:33 +0000 (18:01 +0100)]
libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .

Michael
(This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)

16 years agoMove libnet_conf to a library lib/smbconf/ of its own, fixing the api.
Michael Adam [Mon, 17 Mar 2008 16:29:44 +0000 (17:29 +0100)]
Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.

The libnet_conf code to access the registry based configuration has
become more of a library used in several places in samba (e.g. loadparm)
than an abstraction of "net conf". So I move it to a location lib/smbconf/.

In the same breath, the api is fixed (not generated by make proto anymore).

Michael
(This used to be commit 5315ef41f403b96715dd68b512e9e74662e2910a)

16 years agosocket_wrapper: make pcap code more portable
Stefan Metzmacher [Mon, 17 Mar 2008 13:08:57 +0000 (14:08 +0100)]
socket_wrapper: make pcap code more portable

Now the pcap support works on x86_64.

metze
(cherry picked from commit 61a87bed61ef661d98131239976be95c6a8b4d96)
(This used to be commit c22204aa85d4bb33534b6974dcfed9aad0c28cc4)

16 years agoFix use of AuthDataWithContext capability
Derrell Lipman [Mon, 17 Mar 2008 15:34:25 +0000 (11:34 -0400)]
Fix use of AuthDataWithContext capability

During my initial plans for, and the subsequent discussion of a more
significant change to the API for libsmbclient, I had removed the
AuthDataWithContext usage, in favor of a more generalized planned interface.
When the API returned to its original state, I neglected to reinsert this
code.

Use of an authentication function with the context can be tested using

  examples/libsmbclient/testbrowse -C

Derrell
(This used to be commit 38eab68dfb2d8abe8ad00f5a86fc54c778d0d303)

16 years agoIn smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST
Volker Lendecke [Mon, 17 Mar 2008 13:45:59 +0000 (14:45 +0100)]
In smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST

This is needed to inform ctdb that it's not a persistent database, with the
O_RDONLY the tdb backend ignores this.

Merge from 491f902098d33f in 3-0-ctdb
(This used to be commit 065938ccb7bb0052746267c433637f0e05b95d85)

16 years agoMerge leftovers of 0e1a86bc845 in 3-0-ctdb
Volker Lendecke [Mon, 17 Mar 2008 13:40:07 +0000 (14:40 +0100)]
Merge leftovers of 0e1a86bc845 in 3-0-ctdb
(This used to be commit 64b1625f8e3bca43504871747bef6631e1b18f44)

16 years agoUse right control to attach to persistent databases
Volker Lendecke [Mon, 17 Mar 2008 13:12:10 +0000 (14:12 +0100)]
Use right control to attach to persistent databases

This is a merge of 2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and
4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb
(This used to be commit 46e50da0d550e43de3aaf0141c64f25e1c9997c2)

16 years agoAdd "net idmap aclmapset"
Volker Lendecke [Mon, 17 Mar 2008 12:51:50 +0000 (13:51 +0100)]
Add "net idmap aclmapset"

This is a merge from 3-0-ctdb that goes along with 1daad835, the option
nfs4:sidmap option
(This used to be commit f5e26d28be6581149bed0b599c38b82d1a44444e)

16 years agoregistry: untangle assignment and if-clause in init_registry_data().
Michael Adam [Mon, 17 Mar 2008 11:21:32 +0000 (12:21 +0100)]
registry: untangle assignment and if-clause in init_registry_data().

Michael
(This used to be commit 64664d25cf84e5e0f4a4876b2c38c127b310dbc5)

16 years agoConvert pdb_tdb to use dbwrap
Volker Lendecke [Fri, 14 Mar 2008 19:35:38 +0000 (20:35 +0100)]
Convert pdb_tdb to use dbwrap
(This used to be commit 948ab77863b12b1b0bd1c970004b84b9bb1bb2fa)