gd/samba/.git
15 years agoWHATSNEW: Add commit highlights. release-3-3-0pre1
Karolin Seeger [Tue, 26 Aug 2008 07:59:06 +0000 (09:59 +0200)]
WHATSNEW: Add commit highlights.

Karolin
(cherry picked from commit a5d5e7cb216b8ea6609bba0803d767a6cc68d662)

15 years agoFix bug 4516, no IPv6 on Solaris 2.6.
David Leonard [Mon, 25 Aug 2008 22:18:14 +0000 (15:18 -0700)]
Fix bug 4516, no IPv6 on Solaris 2.6.
(cherry picked from commit 6121414b842882358326122cafe1f04ea0efa53d)

15 years agoWHATSNEW: fix typo
Michael Adam [Mon, 25 Aug 2008 20:40:48 +0000 (22:40 +0200)]
WHATSNEW: fix typo

Michael
(cherry picked from commit 3880d3e4cd827d7bd148398f7c432cd28ff3a080)

15 years agowinbindd: use set_auth_errors() in winbindd_dual_check_machine_acct as well.
Günther Deschner [Mon, 25 Aug 2008 11:03:15 +0000 (13:03 +0200)]
winbindd: use set_auth_errors() in winbindd_dual_check_machine_acct as well.

Guenther
(cherry picked from commit bb9c59e892cc9d3047bde89a15cc341e2bd21bc5)
(cherry picked from commit fba93f94761203163b3e3811fc3fcbeec576d30b)

15 years agowinbindd: move set_auth_errors to util functions.
Günther Deschner [Mon, 25 Aug 2008 11:15:41 +0000 (13:15 +0200)]
winbindd: move set_auth_errors to util functions.

Guenther
(cherry picked from commit ae3fa60c4546c7420722d8f422c22bbfd623ff5b)
(cherry picked from commit 84215f1c0ebfc1e613f4255ce9bdf941ae688adb)

15 years agoauth: Fix build warning.
Günther Deschner [Mon, 25 Aug 2008 09:36:56 +0000 (11:36 +0200)]
auth: Fix build warning.

Guenther
(cherry picked from commit 4661ef625a6522d6f859b83e3e3702f01d0b952f)
(cherry picked from commit 60649a74cdf2594bc89c301025f86d23caba91c2)

15 years agorpc_server: make it a little more obvious what flags we send to a client.
Günther Deschner [Thu, 21 Aug 2008 22:20:46 +0000 (00:20 +0200)]
rpc_server: make it a little more obvious what flags we send to a client.

Guenther
(cherry picked from commit f3791e03ab09cadb1f54e32e67f4dfb3cf42e708)
(cherry picked from commit 14e022b95140441850f7ef4bded8ee82deae2d6f)

15 years agoWHATSNEW: Add some feature descriptions.
Karolin Seeger [Mon, 25 Aug 2008 08:34:01 +0000 (10:34 +0200)]
WHATSNEW: Add some feature descriptions.

Karolin
(cherry picked from commit 14caf928ebcc3e7beff507eb77961e6642e1713a)

15 years agocifs.upcall: bump SPNEGO msg version number and don't reject old versions
Jeff Layton [Fri, 22 Aug 2008 21:29:16 +0000 (17:29 -0400)]
cifs.upcall: bump SPNEGO msg version number and don't reject old versions

When we added the ability for the kernel to send sec=mskrb5 to the
upcall, we subtly broke old cifs.upcall versions that don't understand
it. Bump the spnego message version to 2 to make this clear. Also,
change cifs.upcall to not reject requests with a version that's lower
than the current one, and to send the reply with the same version that
the request sent. The idea is to try and keep cifs.upcall backward
compatible with old kernels.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 653c9a6abc88dffe786941c4e99fd125f53e3b86)

15 years agoWHATSNEW: Add winbind reconnect delay.
Karolin Seeger [Fri, 22 Aug 2008 21:05:43 +0000 (23:05 +0200)]
WHATSNEW: Add winbind reconnect delay.

Karolin
(cherry picked from commit 59f52b3d9885c33569eba4f3afed50367a10ba9f)

15 years agoidmap_gid_to_sid: Fix a cut-a-npaste error.
Gerald (Jerry) Carter [Fri, 22 Aug 2008 19:54:50 +0000 (14:54 -0500)]
idmap_gid_to_sid: Fix a cut-a-npaste error.

The call was looking up a uid and not gid in the cache.
(cherry picked from commit 0efe7e5e95497def1b75ceb8ba84b45d118e7746)

15 years agoDon't re-initialize a token when we already have one. This fixes the build farm failu...
Jeremy Allison [Fri, 22 Aug 2008 20:50:41 +0000 (13:50 -0700)]
Don't re-initialize a token when we already have one. This fixes the build farm failures when winbindd connects as guest.
This one took a *lot* of tracking down :-).
Jeremy.
(cherry picked from commit 0ca3ad6520778d78eeecfd78cd5036abd268e1b9)

15 years agowinbindd: Fix crash in cm_connect_sam()
Gerald (Jerry) Carter [Fri, 22 Aug 2008 15:17:04 +0000 (10:17 -0500)]
winbindd: Fix crash in cm_connect_sam()

Fix segv when talking to parent DC (joined to child domain).

The root cause was

(a) storing the parent domain in the cli_state struct caused
    the NTLMSSP pipe bind to fail which made us fallover to
    the schannel code path
(b) the dcinfo pointer in cm_get_schannel_dcinfo() was returning
    NULL even though the function indicated success.
(cherry picked from commit 5ce4a2ae6697970ea37d0078a506615b4b7a9a9c)
(cherry picked from commit 0aa7e1f54201577fa92ccda56b836eb8b8d49727)

15 years agomanpages: Add documentation for new 'net rpc vampire' subcommands.
Karolin Seeger [Fri, 22 Aug 2008 15:23:36 +0000 (17:23 +0200)]
manpages: Add documentation for new 'net rpc vampire' subcommands.

Karolin
(cherry picked from commit 8d0a16d8034cd07037b3c7711867280d5fa5b2c8)
(cherry picked from commit ad0296ad1c02ccc2b24cc33a3aad6317227a47b5)

15 years agonet: Add missing colon to unify usage messages.
Karolin Seeger [Fri, 22 Aug 2008 14:47:19 +0000 (16:47 +0200)]
net: Add missing colon to unify usage messages.

Karolin
(cherry picked from commit c7aef4b38bd2b152b316d8d76b45be4b73ca315f)
(cherry picked from commit aa9b04de827b210db83dcfec0f0b05d2fbf95f09)

15 years agoHere is a re-working of the winbindd
Jeremy Allison [Wed, 20 Aug 2008 23:23:13 +0000 (16:23 -0700)]
Here is a re-working of the winbindd
reconnect code to cope with rebooting a DC. This
replaces the code I asked Volker to revert.
The logic is pretty simple. It adds a new parameter,
"winbind reconnect delay", set to 30 seconds by
default, which determines how long to wait between
connection attempts.
To avoid overwhelming the box with DC-probe
forked children, the code now keeps track of
the DC probe child per winbindd_domain struct
and only starts a new one if the existing one
has died.
I also added a little logic to make sure the
dc probe child always sends a message whatever
the reason for exit so we will always reschedule
another connect attempt.
Also added documentation.
Jeremy.
(cherry picked from commit 1d87a36cb08f1aca093164d7ddb9ba1f077ebf61)

15 years agoWHATSNEW: Update.
Karolin Seeger [Fri, 22 Aug 2008 09:12:48 +0000 (11:12 +0200)]
WHATSNEW: Update.

Karolin
(cherry picked from commit dff8486e37f4238cb21e4f126caa9f936aff74f2)

15 years agomanpages: Add manpage for "init logon delayed hosts".
Karolin Seeger [Fri, 22 Aug 2008 09:04:49 +0000 (11:04 +0200)]
manpages: Add manpage for "init logon delayed hosts".

Karolin
(cherry picked from commit a415244365e32ba18919042ec72b3a281d8c1b0a)
(cherry picked from commit 53eb100f38a95cc85742813d2dfe583c0413f2bb)

15 years agomanpages: Add manpage for "init logon delay".
Karolin Seeger [Fri, 22 Aug 2008 09:04:16 +0000 (11:04 +0200)]
manpages: Add manpage for "init logon delay".

Karolin
(cherry picked from commit fc5010e6d988939779bcb44e8a460b7b05e7ba9a)
(cherry picked from commit 62d5a388c89d493324a978b21f12e25aa53ef311)

15 years agoloadparm: idmap backend is not depracated any longer.
Karolin Seeger [Fri, 22 Aug 2008 08:05:42 +0000 (10:05 +0200)]
loadparm: idmap backend is not depracated any longer.

Karolin
(cherry picked from commit fcfab4703628e19902c140a7ad9531d4be0de01d)
(cherry picked from commit 4b746a1845c73689b67381ce546a855a862a1a28)

15 years agoWHATSNEW: Start to sum up major enhancements sinc 3.2.
Karolin Seeger [Fri, 22 Aug 2008 07:13:45 +0000 (09:13 +0200)]
WHATSNEW: Start to sum up major enhancements sinc 3.2.

Karolin
(cherry picked from commit d4441d5780c05b224fb48a51cbf0f9286f2bd716)

15 years agocifs.upcall: fix build warning
Jeff Layton [Fri, 22 Aug 2008 01:38:45 +0000 (21:38 -0400)]
cifs.upcall: fix build warning

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 9d9020192bba5ece21e752d5065fa59acb303b7c)

15 years agoFix broken net rpc join message when DC can't be found. Ensure we pass in a domain...
Jeremy Allison [Thu, 21 Aug 2008 22:26:39 +0000 (15:26 -0700)]
Fix broken net rpc join message when DC can't be found. Ensure we pass in a domain name.
Jeremy.
(cherry picked from commit d0e6c07316aa8ed6d54df2050fbee252f5d2e4f3)

15 years agoFix Bug #5710 and make machine account password changing work again.
Günther Deschner [Thu, 21 Aug 2008 13:05:35 +0000 (15:05 +0200)]
Fix Bug #5710 and make machine account password changing work again.

When we negotiated NETLOGON_NEG_PASSWORD_SET2 we need to use
NetrServerPasswordSet2 to change the machine password.

Tested with NT4, W2k, W2k3 and W2k8.

Guenther
(cherry picked from commit 5820360451e4db0fad0472f814cae667b2ea51fd)
(cherry picked from commit 6fc73f4e5e11c5784687015f10d9247412f0c8d4)

15 years agoFix bug 5698 - mixup of TALLOC/malloc. Spotted by Douglas Wegscheid <Douglas_E_Wegsch...
Jeremy Allison [Thu, 21 Aug 2008 17:24:26 +0000 (10:24 -0700)]
Fix bug 5698 - mixup of TALLOC/malloc. Spotted by Douglas Wegscheid <Douglas_E_Wegscheid@whirlpool.com>.
Jeremy.
(cherry picked from commit df94605667924dec5361bfe063f413add714ec89)

15 years agore-run make idl.
Günther Deschner [Thu, 21 Aug 2008 13:02:03 +0000 (15:02 +0200)]
re-run make idl.

Guenther
(cherry picked from commit f24cef9fa7be45212744d39b7c66804e64147afd)
(cherry picked from commit 23c00d9495f56fa35d4d6558710888e9572256d3)

15 years agoIDL: fix IDL for netr_ServerPasswordSet2().
Günther Deschner [Thu, 21 Aug 2008 13:01:36 +0000 (15:01 +0200)]
IDL: fix IDL for netr_ServerPasswordSet2().

Guenther
(cherry picked from commit 7b312a0abc6de5a51555ccfbde7f8f78fc11d043)
(cherry picked from commit 8aba998ea8271447da5da9f2ef4df563bf8e8079)

15 years agogitignore: add examples/libsmbclient/Makefile.internal - a generated file
Michael Adam [Thu, 21 Aug 2008 08:57:36 +0000 (10:57 +0200)]
gitignore: add examples/libsmbclient/Makefile.internal - a generated file

Michael
(cherry picked from commit 25fed055c0ee1d892b902caae2a1188977316f14)
(cherry picked from commit 2be233688ad963c50372632b50e182c319cb50ab)

15 years agobuild: add [clean_]libsmbclient_examples targets to top level Makefile
Michael Adam [Thu, 21 Aug 2008 08:50:49 +0000 (10:50 +0200)]
build: add [clean_]libsmbclient_examples targets to top level Makefile

Michael
(cherry picked from commit b476400f0afcaf4e1a37b9f0b358f01dc7a194be)
(cherry picked from commit deff17f597f05b4599b8da081feb8520df5cea90)

15 years agolibsmbclient examples: source/bin to the library search path for smbwrapper build
Michael Adam [Thu, 21 Aug 2008 08:49:57 +0000 (10:49 +0200)]
libsmbclient examples: source/bin to the library search path for smbwrapper build

Michael
(cherry picked from commit fe62098666a16b31b025867f273d407e77152c4c)
(cherry picked from commit 9a4d8c2942a6c790e751f94e8b3fcee53ce2f3e9)

15 years agolibsmbclient examples: add Makefile.internal.in for building from a samba source
Michael Adam [Thu, 21 Aug 2008 08:48:44 +0000 (10:48 +0200)]
libsmbclient examples: add Makefile.internal.in for building from a samba source

Without needing to install libsmbclient to /usr/local/samba first.

Michael
(cherry picked from commit f0e47bce2e98131812e96fb88cc3d1fe939e8d6c)
(cherry picked from commit b51cf452174fa02b79f0572226885496da19f36f)

15 years agolibsmbclient examples: fix prototype for readlink
Michael Adam [Thu, 21 Aug 2008 08:41:11 +0000 (10:41 +0200)]
libsmbclient examples: fix prototype for readlink

Michael
(cherry picked from commit 28688cfd57c322937f2c63087380c377bd961018)
(cherry picked from commit 0c32f449915dd98cefa9171f2a7f917d15afe7c2)

15 years agoPut prototypes of modules/vfs_irixacl.c to new modules/vfs_irixacl.h.
Michael Adam [Wed, 13 Aug 2008 13:59:14 +0000 (15:59 +0200)]
Put prototypes of modules/vfs_irixacl.c to new modules/vfs_irixacl.h.

Thereby (hopefully) fixing the potential build problems with IRIX acls.

Michael
(cherry picked from commit 61c201d416bbc37950b980e8598b7ef1292336bc)
(cherry picked from commit f68b0d02879ddfb6a7faad8f7bb4fe51ce4c2f09)

15 years agoPut prototypes of modules/vfs_hpuxacl.c to new modules/vfs_hpuxacl.h.
Michael Adam [Wed, 13 Aug 2008 13:58:06 +0000 (15:58 +0200)]
Put prototypes of modules/vfs_hpuxacl.c to new modules/vfs_hpuxacl.h.

Thereby (hopefully) fixing the potential build problems with HPUX acls.

Michael
(cherry picked from commit 4f2a1de990dc9063a1db877c06a5c1d68924edcf)
(cherry picked from commit 50b0bd094ec0aa86ab0b6e109f7539b04d877e9f)

15 years agoPut prototypes of modules/vfs_solarisacl.c to new modules/vfs_solarisacl.h.
Michael Adam [Wed, 13 Aug 2008 13:56:44 +0000 (15:56 +0200)]
Put prototypes of modules/vfs_solarisacl.c to new modules/vfs_solarisacl.h.

Thereby (hopefully) fixing the potential build problems with solaris acls.

Michael
(cherry picked from commit 8413c05afcde65006fa7c8743f30b53cc33c1729)
(cherry picked from commit 2482f86705320ae578fcccc3fc8a285c5c2c059f)

15 years agoPut prototypes of modules/vfs_tru64acl.c to new modules/vfs_tru64acl.h.
Michael Adam [Wed, 13 Aug 2008 13:31:53 +0000 (15:31 +0200)]
Put prototypes of modules/vfs_tru64acl.c to new modules/vfs_tru64acl.h.

Thereby (hopefully) fixing the build with tru64 acls.

Michael
(cherry picked from commit 1ab64b69850489a2648a2543da6d0e1157df68bc)
(cherry picked from commit 19008ca631320a07949a5516abdc382fb78e1711)

15 years agoPut prototypes of modules/vfs_posixacl.c into new modules/vfs_posixacl.h.
Michael Adam [Wed, 13 Aug 2008 13:28:38 +0000 (15:28 +0200)]
Put prototypes of modules/vfs_posixacl.c into new modules/vfs_posixacl.h.

Michael
(cherry picked from commit 876f6793434174051084b17f3b02bd1bbb24ec44)
(cherry picked from commit ec75422f1a09d92ac4034287a950b9172589474e)

15 years agowinbindd: consistently use false/true.
Günther Deschner [Tue, 19 Aug 2008 16:03:13 +0000 (18:03 +0200)]
winbindd: consistently use false/true.

Guenther
(cherry picked from commit e8619121d16d086f1ab186051d0ecdc83c02e5b5)
(cherry picked from commit 2985eebbecd6da17ed628e01664b1cad08ab3285)

15 years agowinbindd: use set_auth_errors (avoid code duplication).
Günther Deschner [Tue, 19 Aug 2008 16:31:35 +0000 (18:31 +0200)]
winbindd: use set_auth_errors (avoid code duplication).

Guenther
(cherry picked from commit ae35a5110ea03d8ff27f320cdc685e5623715a2a)
(cherry picked from commit 25417a1af56236807b0be70fb8b1237ebdbb0f45)

15 years agowinbindd: fill_in_password_policy (to avoid redundant code).
Günther Deschner [Tue, 19 Aug 2008 16:31:10 +0000 (18:31 +0200)]
winbindd: fill_in_password_policy (to avoid redundant code).

Guenther
(cherry picked from commit dbfa7ba14c9f1a4d7a1e7205dd0b3ea2fc2e6131)
(cherry picked from commit 29a2b8d585863e449ee09aca38fea122f9386f4f)

15 years agopam_winbind: some doxygen fixes.
Günther Deschner [Tue, 19 Aug 2008 14:19:54 +0000 (16:19 +0200)]
pam_winbind: some doxygen fixes.

Guenther
(cherry picked from commit f2a2ed315e393353110aa7760b4eca4f1f49ca21)
(cherry picked from commit ba3a68e17ba991b173925fb45e8db6aaa17a6bf9)

15 years agowbinfo: use wbinfo_prompt_pass() everywhere.
Günther Deschner [Tue, 19 Aug 2008 13:09:12 +0000 (15:09 +0200)]
wbinfo: use wbinfo_prompt_pass() everywhere.

Guenther
(cherry picked from commit 687ef28874eb311b3e3919c3a38a22e5186d4c1b)
(cherry picked from commit 135e1d72ccfee32665ff3686147ea67ef7b7ef64)

15 years agowbinfo: add wbinfo_prompt_pass.
Günther Deschner [Tue, 19 Aug 2008 13:32:37 +0000 (15:32 +0200)]
wbinfo: add wbinfo_prompt_pass.

Guenther
(cherry picked from commit 7cf6ed68236e7dd64657cb1087a5a687d6f59ad1)
(cherry picked from commit fd65b8a4312c5672a29ccbd8c72f363d078c1f89)

15 years agopam_winbind: use pam error string function to display result.
Günther Deschner [Thu, 14 Aug 2008 18:56:47 +0000 (20:56 +0200)]
pam_winbind: use pam error string function to display result.

Guenther
(cherry picked from commit 8504a92ac55d6936df051be66207a59a76bf32a3)
(cherry picked from commit 9d35ad449dd5be133490e131c848184b9b3dd84f)

15 years agopam_winbind: add _pam_error_code_str().
Günther Deschner [Thu, 14 Aug 2008 15:40:26 +0000 (17:40 +0200)]
pam_winbind: add _pam_error_code_str().

Guenther
(cherry picked from commit 693f90fd2394309ce40d3ca5fc007543058b342a)
(cherry picked from commit 8f84afadf2ade599294d37d1c87e1f62801e1975)

15 years agopam_winbind: use integer constants.
Günther Deschner [Thu, 14 Aug 2008 11:07:51 +0000 (13:07 +0200)]
pam_winbind: use integer constants.

Guenther
(cherry picked from commit 8d19b2ceb131ca2a0fd983cdb4fd17acdad9c26e)
(cherry picked from commit 88b9737fe31d60916a34b8c7e9191be34b44b26c)

15 years agowinbindd: kill some trailing/leading whitespace.
Günther Deschner [Mon, 18 Aug 2008 23:18:24 +0000 (01:18 +0200)]
winbindd: kill some trailing/leading whitespace.

Guenther
(cherry picked from commit b5bb7844952a87b123551b478b60bfe232afc308)
(cherry picked from commit 4522e687e91da043de1da23c284a4814ccda547c)

15 years agogitignore: add examples/libsmbclient/tree
Michael Adam [Wed, 20 Aug 2008 20:31:53 +0000 (22:31 +0200)]
gitignore: add examples/libsmbclient/tree

Michael
(cherry picked from commit e5c4cbbf5a4b3e5db1732043a74cd1f4a5eec136)
(cherry picked from commit 53cb5c7336d898c75915b9ab368069b087ca61f5)

15 years agogitignore: add lib/netapi/tests/Makefile
Michael Adam [Wed, 20 Aug 2008 20:31:07 +0000 (22:31 +0200)]
gitignore: add lib/netapi/tests/Makefile

Michael
(cherry picked from commit fdf29c1cdf6b9bd1c6fb7a9f070084e0df5470bb)
(cherry picked from commit df01ba06121430ec7f151fa9ffc518425d9d7be6)

15 years agogitignore: add libsmbsharemodes.syms - this is now generated
Michael Adam [Wed, 20 Aug 2008 20:34:26 +0000 (22:34 +0200)]
gitignore: add libsmbsharemodes.syms - this is now generated

Michael
(cherry picked from commit 11458f9a9ac17c68aa0496d2ade4b93d02e7ebcc)
(cherry picked from commit fd83cc1b47e776263ea3f3cb12a17195f4f6847e)

15 years agobuild: auto-generate symbols for libsmbsharemodes.
Michael Adam [Wed, 20 Aug 2008 13:09:27 +0000 (15:09 +0200)]
build: auto-generate symbols for libsmbsharemodes.

Michael
(cherry picked from commit f1d84e76bb6935e80b01d13414980f8de1f71824)
(cherry picked from commit 58628cb4bcf3417c8d242b556bb353ba0ebe6295)

15 years agogitignore: add libsmbclient.syms - this is now generated
Michael Adam [Wed, 20 Aug 2008 20:33:17 +0000 (22:33 +0200)]
gitignore: add libsmbclient.syms - this is now generated

Michael
(cherry picked from commit 02d4b820fccfef1387f47db4bb5ade3dfd0d25bb)
(cherry picked from commit a0b90e42fe24e42b785111428836078b194728de)

15 years agobuild: autogenerate symbols for libsmbclient.so
Michael Adam [Wed, 20 Aug 2008 13:06:02 +0000 (15:06 +0200)]
build: autogenerate symbols for libsmbclient.so

Michael
(cherry picked from commit d6fb6348a3672e915556dcb36c1a4999d4abae18)
(cherry picked from commit f5c484caa57c6aff276118d7c901dda33d32cf3b)

15 years agobuild: fix bug #5590 by not linking in the static libs but the objects.
Michael Adam [Wed, 20 Aug 2008 12:56:18 +0000 (14:56 +0200)]
build: fix bug #5590 by not linking in the static libs but the objects.

Michael
(cherry picked from commit 6ad2090391a92ebe822b2d7b80e180c251dc8e7a)
(cherry picked from commit d6e32fdef7a321081de6cffa6e25efe0245c40ee)

15 years agobuild: fall down to the same place when using an internal lib statically.
Michael Adam [Wed, 20 Aug 2008 12:55:24 +0000 (14:55 +0200)]
build: fall down to the same place when using an internal lib statically.

Michael
(cherry picked from commit 702c0bc04668117e3521d687b9b5a87fd7e0f1b1)
(cherry picked from commit 8e19123bf0732974ce2df25cca4216b1bd17ca24)

15 years agobuild: remove duplicated and hardcoded definition of LIBSMBSHAREMODES
Michael Adam [Wed, 20 Aug 2008 12:47:26 +0000 (14:47 +0200)]
build: remove duplicated and hardcoded definition of LIBSMBSHAREMODES

Michael
(cherry picked from commit c3c3dadcab81f0a1ae8834e85e7e80a3da6601fb)
(cherry picked from commit c46f0450e570074bf2530785cacb799e91f81435)

15 years agobuild: rename LIBNETAPI_OBJ1 to LIBNETAPI_OBJ0 for consistency.
Michael Adam [Wed, 20 Aug 2008 11:22:13 +0000 (13:22 +0200)]
build: rename LIBNETAPI_OBJ1 to LIBNETAPI_OBJ0 for consistency.

Michael
(cherry picked from commit ead9b9d7167d999d73cf4111f3b321236aac2a15)
(cherry picked from commit 6048ac2981d584e7801d80b8cd7bb11bf6032db9)

15 years agoconfigure: use libdir=${prefix}/lib and modules=${libdir}/samba as default with-fhs.
Michael Adam [Fri, 15 Aug 2008 13:55:17 +0000 (15:55 +0200)]
configure: use libdir=${prefix}/lib and modules=${libdir}/samba as default with-fhs.

This is what one actually wants:
Shared/static libs in /usr/lib, shared modules and so on in /usr/lib/samba.

Michael
(cherry picked from commit 03de8c1955a85f2e3e9f947309e09023138a1591)
(cherry picked from commit bbb3f6e9b5abdbe321ad0658c442d5bc6c3a4477)

15 years agoconfigure: use ${libdir} instead of \${LIBDIR}.
Michael Adam [Fri, 15 Aug 2008 12:38:41 +0000 (14:38 +0200)]
configure: use ${libdir} instead of \${LIBDIR}.

Now after removing --with-libdir, the value of ${libdir} won't change
anymore at that stage, so there is no need to have the variable expansion
deferred to "make".

Michael
(cherry picked from commit 256977cf05cb4c4073ece1389a7e4939b18f5f13)
(cherry picked from commit 38f4a77feafdd9c40e1cb670c5e0cd971f130706)

15 years agoconfigure: remove the --with-libdir parameter.
Michael Adam [Fri, 15 Aug 2008 12:35:46 +0000 (14:35 +0200)]
configure: remove the --with-libdir parameter.

This is redundant: use the autoconf-provided --libdir instead.
This will also make the new distinction between libdir and modulesdir
more visible.

Michael
(cherry picked from commit c1d53b7c767275b39dc8ecfcd5b6129ee2cabb6d)
(cherry picked from commit fd2595b4cf18de08a3124be0080a2c28bdb130ba)

15 years agopopt: add support for setting MODULESDIR via popt_common_dynconfig.
Michael Adam [Thu, 14 Aug 2008 22:45:57 +0000 (00:45 +0200)]
popt: add support for setting MODULESDIR via popt_common_dynconfig.

Michael
(cherry picked from commit 81030e49ce344260d279a3112b13a21ce3520748)
(cherry picked from commit b809c5190c9704af8ec4d0157afa6df03ad5a42a)

15 years agosvcctl: use MODULESDIR instead of LIBDIR for the svcctl script directory.
Michael Adam [Thu, 14 Aug 2008 22:50:56 +0000 (00:50 +0200)]
svcctl: use MODULESDIR instead of LIBDIR for the svcctl script directory.

Michael
(cherry picked from commit bb19634138cfd1f527c44e16a44aa21ebee50c1c)
(cherry picked from commit 40000ceb2abb859dc21a8aa2d55bfe5c594dcfad)

15 years agolibgpo: use MODULESDIR instead of LIBDIR for the group policy extensions.
Michael Adam [Thu, 14 Aug 2008 22:49:19 +0000 (00:49 +0200)]
libgpo: use MODULESDIR instead of LIBDIR for the group policy extensions.

Michael
(cherry picked from commit 3346dd40832e8d61edfe4c56dce6fe85031f20f1)
(cherry picked from commit 5550e3903d41927a078084e22539b697c19773b0)

15 years agoUse module_path() instead of lib_path() for loading shared modules.
Michael Adam [Thu, 14 Aug 2008 22:47:30 +0000 (00:47 +0200)]
Use module_path() instead of lib_path() for loading shared modules.

Michael
(cherry picked from commit 22fb3ef1bb4abb33b49d275f9a5d85a1924c22ea)
(cherry picked from commit ae45ea1debc38c0c01da3f8cc1dddcc0d1ff30e2)

15 years agoAdd modules_path() to construct paths to files in MODULESDIR.
Michael Adam [Thu, 14 Aug 2008 22:44:14 +0000 (00:44 +0200)]
Add modules_path() to construct paths to files in MODULESDIR.

Michael
(cherry picked from commit 5ef9da6f4f04b07804b389902862fae0fbbfed13)
(cherry picked from commit c22842440dc1732a77e0bce71fff421b1bca0151)

15 years agobuildoptions: output MODULESDIR.
Michael Adam [Thu, 14 Aug 2008 22:46:46 +0000 (00:46 +0200)]
buildoptions: output MODULESDIR.

Michael
(cherry picked from commit bcb868e4340a856c4009450479628088a8a1628c)
(cherry picked from commit e4f2815158bd74245e6c4d7f10d59254e095846c)

15 years agodynconfig: add support for MODULESDIR.
Michael Adam [Thu, 14 Aug 2008 22:43:31 +0000 (00:43 +0200)]
dynconfig: add support for MODULESDIR.

Michael
(cherry picked from commit 34309f097f5c7321930bf6c2ea2447de1008130c)
(cherry picked from commit d498bdf6e8d77db221bea79b3c0d4a2dd415be46)

15 years agoconfigure: Add --with-modulesdir to accompany --with-libdir.
Michael Adam [Thu, 14 Aug 2008 22:36:49 +0000 (00:36 +0200)]
configure: Add --with-modulesdir to accompany --with-libdir.

This starts the seplitting of libdir in to libdir and modulesdir.
Our shared libs should go into libdir, the internal shared modules,
codepages, and other stuff that was originally in libdir, should
go into modulesdir.

The idea behind this is, that in a typical installation,
the shared (and static) libraries (as libtalloc, libsmbclient,
libwbclient and others) should be put into /usr/lib, while
the e.g. the vfs modules should reside in /usr/lib/samba.

This is meant to ease the work of packagers and reduce
the needs for manual interaction and workarounds.

Michael
(cherry picked from commit b17d1ff646e22c3e979224d119b283fc3af780a8)
(cherry picked from commit 43a26e856aa39cd70d1428b554532ea6c3f2018c)

15 years agodynconfig: remove commented-out old stuff from dynconfig.c and dynconfig.h
Michael Adam [Thu, 14 Aug 2008 22:58:47 +0000 (00:58 +0200)]
dynconfig: remove commented-out old stuff from dynconfig.c and dynconfig.h

Michael
(cherry picked from commit 85a781fa0248fcd0cefcc4de25b3dea3e37d5844)
(cherry picked from commit cf89392a74e84fdd9bfbeb6e9c0bbf2ce298f115)

15 years agodynconfig: remove unused prototypes.
Michael Adam [Thu, 14 Aug 2008 21:44:06 +0000 (23:44 +0200)]
dynconfig: remove unused prototypes.

set_dyn_STATEDIR, is_default_dyn_STATEDIR,
set_dyn_CACHEDIR, is_default_dyn_CACHEDIR
are neither used nor implemented.

Michael
(cherry picked from commit f30b70b2c3a49bc962848039953a565a040b563d)
(cherry picked from commit 6a5447b15a1b534659e62e929688b6a9d742e2be)

15 years agoproto.h: remove prototypes from dynconfig.c
Michael Adam [Thu, 14 Aug 2008 21:14:42 +0000 (23:14 +0200)]
proto.h: remove prototypes from dynconfig.c

These are also in dynconfig.h and were originally added
by "make proto" by accident.

Michael
(cherry picked from commit 4fb69fe1eeebc466944f3daacfacec60ad043b0c)
(cherry picked from commit 02dc99ef564ca7c2da322d2942cf28aeb7bcae2f)

15 years agoMakefile: print codepagedir in "make showlayout".
Michael Adam [Thu, 14 Aug 2008 21:18:28 +0000 (23:18 +0200)]
Makefile: print codepagedir in "make showlayout".

Michael
(cherry picked from commit a823733b91958adf938214113e6875315c6ae5b2)
(cherry picked from commit 253c3ae70674daa4ad619c2dd66ad8b0c02af908)

15 years agofix build warning.
Günther Deschner [Wed, 20 Aug 2008 16:40:58 +0000 (18:40 +0200)]
fix build warning.

Guenther
(cherry picked from commit a75055be5ff7ebe3476cfac86c6597a56a843c23)
(cherry picked from commit b0c63c062fe90e4a4ec61ff5b5849e758834b8d7)

15 years agolibads: remove unused vars.
Günther Deschner [Wed, 20 Aug 2008 19:17:35 +0000 (21:17 +0200)]
libads: remove unused vars.

Guenther
(cherry picked from commit ea9fc3bea31b11e715d9524defc18b75e5943842)
(cherry picked from commit 7d96c8ce5c49b031b5a9a60a9ad5252653577513)

15 years agofix another build warning.
Günther Deschner [Wed, 20 Aug 2008 18:24:45 +0000 (20:24 +0200)]
fix another build warning.

Guenther
(cherry picked from commit 43693ce6c678b961fa516bbf502af92f87cd5346)
(cherry picked from commit 1a85fce6e432bafed98856f22e0736489fa6f1f5)

15 years agonss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT
Gerald (Jerry) Carter [Wed, 20 Aug 2008 18:00:40 +0000 (13:00 -0500)]
nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT

According to the GNU libc nss guide, we should always set
errno to ENOENT when returning NSS_UNAVAIL.

http://www.gnu.org/software/libtool/manual/libc/NSS-Modules-Interface.html#NSS-Modules-Interface

At least the MQ Series message queing service that runs
on WebSphere will fail if you return any other errno in this case.
(cherry picked from commit ee26664602445fa7798e2061f6bcbef0756d6528)
(cherry picked from commit a46d7ffeef1807bafda15eb76ec74fcf41aae7f6)

15 years agosmbd: fix the handling of create_options to pass RAW-OPEN
Stefan Metzmacher [Tue, 19 Aug 2008 14:34:50 +0000 (16:34 +0200)]
smbd: fix the handling of create_options to pass RAW-OPEN

Some of the bits generate INVALID_PARAMETER and some bits
are ignored when they come from a client, that's why we need
to use bits from the ignored range for our internal usage.

metze
(cherry picked from commit 7b4c8a4e39f310eb450918fa841b0ea1b4af19f7)
(cherry picked from commit a12cbcb009a02ee23ec0b24c2fca5deaa0ba6412)

15 years agoUpdated Doxyfile conf to doxygen version 1.5.3
Steven Danneman [Tue, 19 Aug 2008 18:05:07 +0000 (11:05 -0700)]
Updated Doxyfile conf to doxygen version 1.5.3

* Removed deprecated configuration parameters
* Silenced all warnings due to lack of doxygen comments
* Reordered config parameters to match doxygen's canonical ordering
(cherry picked from commit c3dda372241c4e7171aa928fe0a4f5889bcb21a8)

15 years agocifs.upcall: handle MSKRB5 OID properly
Jeff Layton [Wed, 20 Aug 2008 01:29:41 +0000 (21:29 -0400)]
cifs.upcall: handle MSKRB5 OID properly

When the kernel sends the upcall a sec=mskrb5 parameter, that means
the the MSKRB5 OID is preferred by the server. This patch fixes the
upcall to use that OID in place of the "normal" krb5 OID when it
gets a sec=mskrb5 parameter.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve French <smfrench@gmail.com>
(cherry picked from commit c30d73035dd202d0055ed7ede243e1703c4e9450)

15 years agoFix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 address
Jeremy Allison [Wed, 20 Aug 2008 00:32:07 +0000 (17:32 -0700)]
Fix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 address
reported by Ted Percival <ted@midg3t.net>.
Jeremy.
(cherry picked from commit cbc6b89feee81710f77c87bb7ce429fb4156ce07)

15 years agoVERSION: Update version string.
Karolin Seeger [Tue, 19 Aug 2008 12:01:40 +0000 (14:01 +0200)]
VERSION: Update version string.

Karolin

15 years agobuild: fix linking cifs.upcall when nscd_flush_cache() is found.
Michael Adam [Tue, 19 Aug 2008 11:29:24 +0000 (13:29 +0200)]
build: fix linking cifs.upcall when nscd_flush_cache() is found.

Michael
(cherry picked from commit f9a4f1c66fc633c2f007c73e6155fd56533b8e0c)

15 years agosmbspool: Fix printing on port 139.
Karolin Seeger [Tue, 19 Aug 2008 09:53:28 +0000 (11:53 +0200)]
smbspool: Fix printing on port 139.

This one was introduced with 8eff35bc.
Thanks to Noèl Köthe for tracking that down!

Karolin
(cherry picked from commit 250f5a40d6e80305220d7cdc6a8f8459d8d0de74)
(cherry picked from commit d7a50f1b22f5ccc5d027f8c2eeb73fa335d49f81)

15 years agonetapi: add some remaining documentation fixes.
Günther Deschner [Wed, 13 Aug 2008 11:59:08 +0000 (13:59 +0200)]
netapi: add some remaining documentation fixes.

Guenther
(cherry picked from commit 4a4e90a3872d34791de43c3849c60e2f4e713d47)

15 years agonetapi: add doxygen documentation for NetUserModalsGet and NetUserModalsSet.
Günther Deschner [Tue, 12 Aug 2008 17:47:37 +0000 (19:47 +0200)]
netapi: add doxygen documentation for NetUserModalsGet and NetUserModalsSet.

Guenther
(cherry picked from commit 93210f04c3b1e4fe977a395531ddc0387a65dab5)

15 years agonetapi: add doxygen documentation for NetLocalGroup{Add,Del,Set,Get}Members.
Günther Deschner [Tue, 12 Aug 2008 17:39:38 +0000 (19:39 +0200)]
netapi: add doxygen documentation for NetLocalGroup{Add,Del,Set,Get}Members.

Guenther
(cherry picked from commit eee28804b7efc3089ce3528f13de6c930cf00adb)

15 years agonetapi: make libnetapi_open_ipc_connection static.
Günther Deschner [Tue, 12 Aug 2008 15:59:23 +0000 (17:59 +0200)]
netapi: make libnetapi_open_ipc_connection static.

Guenther
(cherry picked from commit 0259914f8ff04514a8395d8e1af61aadd50c5efb)

15 years agonetapi: make non-implemented local calls default to remote "localhost" calls.
Günther Deschner [Tue, 12 Aug 2008 13:25:06 +0000 (15:25 +0200)]
netapi: make non-implemented local calls default to remote "localhost" calls.

Guenther
(cherry picked from commit aa70e588803e3767796dc958b139f4ee464d8626)

15 years agonetapi: add NetLocalGroupGetMembers example code.
Günther Deschner [Tue, 12 Aug 2008 10:49:19 +0000 (12:49 +0200)]
netapi: add NetLocalGroupGetMembers example code.

Guenther
(cherry picked from commit bded298e022028d6237e25e1c785509bc983be9d)

15 years agonetapi: let libnetapi_samr_lookup_and_open_alias return NTSTATUS.
Günther Deschner [Mon, 11 Aug 2008 18:39:14 +0000 (20:39 +0200)]
netapi: let libnetapi_samr_lookup_and_open_alias return NTSTATUS.

Guenther
(cherry picked from commit dcf6d879a14a70ce5795eb8dcfbfe2fc5a8ad859)

15 years agoFix coverity CID: 594. Resource leak on error path.
Jeremy Allison [Wed, 13 Aug 2008 23:52:53 +0000 (16:52 -0700)]
Fix coverity CID: 594. Resource leak on error path.
Jeremy.
(cherry picked from commit 60718a203c1d90dbdcdcb2eaf6b37f6135fb411b)

15 years agoFix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process is orphane...
Jeremy Allison [Wed, 13 Aug 2008 23:45:34 +0000 (16:45 -0700)]
Fix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process is orphaned if socket address parameter is invalid.
If the "socket address" parameter is a null string that is an invalid value for Samba 3.2 but valid for Samba 3.0.
Jeremy.
(cherry picked from commit f84bf454eef9e53b72c481ddd5d520d8c3e901d2)

15 years agoFix for bug #5617, reported and patched by Bartosz Antosik antosik@gmail.com.
Jeremy Allison [Wed, 13 Aug 2008 22:46:35 +0000 (15:46 -0700)]
Fix for bug #5617, reported and patched by Bartosz Antosik antosik@gmail.com.
xp/2003 explorer freezes browsing shares on samba ipv6 hosts. Caused by missing
reply packet to SMB printclose packet.
Jeremy
(cherry picked from commit 086cb13da4cc95ab01c75a68db5631e35a658449)

15 years agoPrevent NT_STATUS 0xF1000000 errors from appearing when
Jim McDonough [Wed, 13 Aug 2008 22:03:51 +0000 (18:03 -0400)]
Prevent NT_STATUS 0xF1000000 errors from appearing when
dos errors are used and there is no error.  It should
be mapped directly to NT_STATUS_OK.  smbclient to older
servers didn't work.
(cherry picked from commit af817c2817e56aa95ac8641537f13e77307e9eb8)

15 years agoRevert "Add winbind:online check timeout parameter"
Volker Lendecke [Wed, 13 Aug 2008 17:46:16 +0000 (19:46 +0200)]
Revert "Add winbind:online check timeout parameter"

This reverts commit 9920473cc165e75ee9aa5cbb9e568eb5fb67e9e6.
(cherry picked from commit 4985f2622ba9de7c8d7a661c89c5510300505b0b)

15 years agoRevert "If it is a forced DOS error, nt_errstr should say so"
Volker Lendecke [Wed, 13 Aug 2008 16:17:53 +0000 (18:17 +0200)]
Revert "If it is a forced DOS error, nt_errstr should say so"

This reverts commit 68b79e073d940bcdef6ff9eb79a39657ff6e909e.

Always, always build and run make test before checkin...
(cherry picked from commit 64e26c59e1b9bea68501b2bcb1de572abfbde2e4)

15 years agoIf it is a forced DOS error, nt_errstr should say so
Volker Lendecke [Wed, 13 Aug 2008 15:40:30 +0000 (17:40 +0200)]
If it is a forced DOS error, nt_errstr should say so
(cherry picked from commit 68b79e073d940bcdef6ff9eb79a39657ff6e909e)

15 years agoMake the change to smbcontrol for "all" to mean broadcast,
Jeremy Allison [Mon, 18 Aug 2008 23:17:59 +0000 (16:17 -0700)]
Make the change to smbcontrol for "all" to mean broadcast,
and "smbd" to mean the main smb daemon. Update docs to match.
Jeremy.
(cherry picked from commit c361beca1ed4e896151c6445b881b40957cc1ce4)

15 years agocifs.upcall: enable building by default on linux
Jeff Layton [Mon, 18 Aug 2008 17:49:59 +0000 (13:49 -0400)]
cifs.upcall: enable building by default on linux

When building on linux, default to building cifs.upcall. Throw a
warning if ADS support is disabled or keyutils isn't installed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 5a13b7c442f1b70f36dd336bfa8b3dac897bfa4c)

15 years agocifs.upcall: move default install location to EPREFIX/sbin
Jeff Layton [Mon, 18 Aug 2008 17:49:59 +0000 (13:49 -0400)]
cifs.upcall: move default install location to EPREFIX/sbin

cifs.upcall links to libraries that live under /usr, so installing it
in /sbin doesn't seem appropriate. Move it to EPREFIX/sbin instead
(i.e. /usr/sbin).

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 9b0478984ed3d6ffa84e7eb6f7ef1e5fa3a0f1e3)