jra/samba/.git
11 years agore-run make idl.
Günther Deschner [Tue, 26 Aug 2008 22:30:22 +0000 (00:30 +0200)]
re-run make idl.

Guenther
(This used to be commit 77058447f2a61e8830763866c46db71dadf1a82a)

11 years agonetapi: fix ENCRYPTED_PWLEN in IDL.
Günther Deschner [Tue, 26 Aug 2008 22:30:04 +0000 (00:30 +0200)]
netapi: fix ENCRYPTED_PWLEN in IDL.

Guenther
(This used to be commit 2c6b3208d3bf3d44b58248e9068924657897c917)

11 years agonetapi: add all USER_INFO structs to public header.
Günther Deschner [Tue, 26 Aug 2008 19:12:23 +0000 (21:12 +0200)]
netapi: add all USER_INFO structs to public header.

Guenther
(This used to be commit d19c06d7d055e4b1e8e47cc2df1a192a0a19eb14)

11 years agonet: use netapi for rpc_user_rename.
Günther Deschner [Tue, 26 Aug 2008 19:10:19 +0000 (21:10 +0200)]
net: use netapi for rpc_user_rename.

Guenther
(This used to be commit fe28ea1afd4024673f847fc8880910b1f7f0385a)

11 years agokerberos: fix HAVE_KRB5 related build issue.
Günther Deschner [Fri, 29 Aug 2008 09:38:02 +0000 (11:38 +0200)]
kerberos: fix HAVE_KRB5 related build issue.

Guenther
(This used to be commit 7d7ba8397743af52a74d00fd717bdeb5e3e12a28)

11 years agokerberos: use KRB5_KT_KEY macro where appropriate.
Günther Deschner [Fri, 22 Aug 2008 12:58:01 +0000 (14:58 +0200)]
kerberos: use KRB5_KT_KEY macro where appropriate.

Guenther
(This used to be commit a042dffd7121bda3dbc9509f69fcfae06ed4cc22)

11 years agokerberos: add KRB5_KT_KEY abstraction macro.
Günther Deschner [Fri, 22 Aug 2008 12:52:10 +0000 (14:52 +0200)]
kerberos: add KRB5_KT_KEY abstraction macro.

Guenther
(This used to be commit be846d5383ef31136cca6b11eb6181736fb2e29d)

11 years agokerberos: move the KRB5_KEY* macros to header file.
Günther Deschner [Fri, 22 Aug 2008 14:08:00 +0000 (16:08 +0200)]
kerberos: move the KRB5_KEY* macros to header file.

Guenther
(This used to be commit c28fa17ffffee3e6fd4897c9c6b4937388a19600)

11 years agoClarify usage of "force create mode".
Jeremy Allison [Thu, 28 Aug 2008 23:06:23 +0000 (16:06 -0700)]
Clarify usage of "force create mode".
Jeremy.
(This used to be commit 1d252ffd313e0cd6fcb3d7cb2c99f2daf56728c1)

11 years agoRemove cli_request_get()
Volker Lendecke [Thu, 28 Aug 2008 13:44:14 +0000 (15:44 +0200)]
Remove cli_request_get()

req->private_data==NULL at this point is definitely a bug.
(This used to be commit ce3dc9f616cafc1289a94ac7cae0beca967d836e)

11 years agoAdd async smbecho client support
Volker Lendecke [Wed, 27 Aug 2008 17:30:57 +0000 (19:30 +0200)]
Add async smbecho client support
(This used to be commit c1d645fbe39433541d8bfe6b818c855cee318dc5)

11 years agoAdd cli_request->recv_helper
Volker Lendecke [Wed, 27 Aug 2008 17:26:40 +0000 (19:26 +0200)]
Add cli_request->recv_helper

Necessary for requests with multiple replies
(This used to be commit cb2e338eb33dfb4627f9b43456af0c86d7d268c6)

11 years agoActivate code to enable chained requests
Volker Lendecke [Mon, 25 Aug 2008 13:59:36 +0000 (15:59 +0200)]
Activate code to enable chained requests

Add the CHAIN1 torture test
(This used to be commit 82992d74a99b056bbfe90e1b79190e0b7c0bf2bd)

11 years agoThis adds the code to allow chained requests in libsmb/
Volker Lendecke [Mon, 25 Aug 2008 13:56:26 +0000 (15:56 +0200)]
This adds the code to allow chained requests in libsmb/

This is not compiled yet, but it makes the patches much easier to read if it is
add in bulk.
(This used to be commit b4c539ba041bab8856c83816f08a35b5f5b21740)

11 years agoMove "struct cli_request" from client.h to async_smb.h
Volker Lendecke [Mon, 25 Aug 2008 12:40:15 +0000 (14:40 +0200)]
Move "struct cli_request" from client.h to async_smb.h

Also add some comments
(This used to be commit 2ecc311f785317caf5b60051147dcd085c80d64f)

11 years agoAdd cli_pull_reply
Volker Lendecke [Mon, 25 Aug 2008 11:33:41 +0000 (13:33 +0200)]
Add cli_pull_reply

Along the lines of cli_request_send this abstracts away the smb-level buffer
handling when parsing replies we got from the server.
(This used to be commit 253134d3aaa359fdfb665709dd5686f69af7f8fd)

11 years agoRemove cli->event_ctx, pass it explicitly
Volker Lendecke [Sun, 24 Aug 2008 12:17:43 +0000 (14:17 +0200)]
Remove cli->event_ctx, pass it explicitly

Storing the event_context as permanent state in struct cli_state creates more
complex code than necessary IMO.
(This used to be commit debb37f703075008e5ea7d34d214cfa4d0f8f916)

11 years agoAdd async open&x
Volker Lendecke [Sat, 2 Aug 2008 16:44:39 +0000 (18:44 +0200)]
Add async open&x
(This used to be commit faf353edd60967efac4d5c222db14fa730866273)

11 years agoAdd async cli_close
Volker Lendecke [Fri, 1 Aug 2008 21:18:15 +0000 (23:18 +0200)]
Add async cli_close
(This used to be commit f84a2b5dbf8a072a9e356fa39523f65d042a2643)

11 years agoRefactoring: Add the routine cli_request_send()
Volker Lendecke [Fri, 1 Aug 2008 21:14:51 +0000 (23:14 +0200)]
Refactoring: Add the routine cli_request_send()

cli_request_send() is supposed to bundle all generic SMB-header handling. This
makes cli_request_new static to async_smb.c.
(This used to be commit 7e73dd4e7622db64d30d48ba106892e0895fc188)

11 years agowinbindd: fix invalid sid copy (hit when enumerating sibling domains).
Günther Deschner [Thu, 28 Aug 2008 10:29:24 +0000 (12:29 +0200)]
winbindd: fix invalid sid copy (hit when enumerating sibling domains).

Guenther
(This used to be commit 5eee7423351ffd05486e33ff8eb905babcbc9422)

11 years agoFix the wcache_invalidate_samlogon calls.
Jeremy Allison [Thu, 28 Aug 2008 00:29:10 +0000 (17:29 -0700)]
Fix the wcache_invalidate_samlogon calls.
Jeremy.
(This used to be commit 7c820899ed1364fdaeb7b49e8ddd839e67397ec0)

11 years agoCorrect the netsamlogon_clear_cached_user function.
Ephi Dror [Thu, 28 Aug 2008 00:28:34 +0000 (17:28 -0700)]
Correct the netsamlogon_clear_cached_user function.
(This used to be commit bb13312d9d53b1e048b3a0bfeeca088f9db84cd3)

11 years agoAdd st_birthtime and friends for accurate create times on systems that support it...
Jeremy Allison [Wed, 27 Aug 2008 22:06:14 +0000 (15:06 -0700)]
Add st_birthtime and friends for accurate create times on systems that support it (*BSD and MacOSX).
Should have done this ages ago, sorry.
Jeremy.
(This used to be commit 4c3a9558906f213948c3bdc081be73f8fed148cb)

11 years agomount.cifs: unclear error message with "credentials"
Steve French [Wed, 27 Aug 2008 22:00:00 +0000 (17:00 -0500)]
mount.cifs: unclear error message with "credentials"

Thanks to Christophe Curis for the suggestion
(This used to be commit 3b5ad9190d2ad6d2ca0a569194bdff9003bda13b)

11 years agoBe explicit about setting perms for the ldb. Helps others who may use this api.
Jeremy Allison [Wed, 27 Aug 2008 18:28:18 +0000 (11:28 -0700)]
Be explicit about setting perms for the ldb. Helps others who may use this api.
Jeremy.
(This used to be commit f0ea0f3502037db878238942ee0729f6940e0b01)

11 years agoldb: Fix permissions of new ldg files.
Karolin Seeger [Wed, 27 Aug 2008 11:23:20 +0000 (13:23 +0200)]
ldb: Fix permissions of new ldg files.

This one fixes together with 2eaf4ed62 bug #5715 and CVE-2008-3789.

Thanks to Steve Langasek <vorlon@debian.org> for reporting!

Karolin
(cherry picked from commit b666d0a4b597218f5f5020bf36d80d84dcbf7259)
(This used to be commit 73f54df7fedc8f0db022f902100fd5eb1b629fb2)

11 years agoldb: Fix permissions of group_mapping.ldb.
Andrew Tridgell [Wed, 27 Aug 2008 08:45:43 +0000 (10:45 +0200)]
ldb: Fix permissions of group_mapping.ldb.

This one fixes bug #5715 and CVE-2008-3789.
(cherry picked from commit a94f44c49f668fcf12f4566777a668043326bf97)
(This used to be commit 2eaf4ed62220246bcc1a9702166b0b4f381fdae3)

11 years agoFix bug spotted by Simo - don't use legacy if expired entry.
Jeremy Allison [Wed, 27 Aug 2008 01:05:34 +0000 (18:05 -0700)]
Fix bug spotted by Simo - don't use legacy if expired entry.
Jeremy.
(This used to be commit a7bbd33139c5835cf32efdbe0ef187117699e3e4)

11 years agoDon't ask winbindd if we got a -ve cache entry.
Jeremy Allison [Tue, 26 Aug 2008 23:14:25 +0000 (16:14 -0700)]
Don't ask winbindd if we got a -ve cache entry.
Jeremy.
(This used to be commit 91f85d0dcaa917b7a90a77852f3a778a0ad99c4d)

11 years agoFix the build :-(. Ask winbindd if we find a negative cache entry (or should
Jeremy Allison [Tue, 26 Aug 2008 22:51:56 +0000 (15:51 -0700)]
Fix the build :-(. Ask winbindd if we find a negative cache entry (or should
we just call the legacy function ?).
Jeremy.
(This used to be commit 566d3b6e76afeca8e862cb36202a5283b86920e4)

11 years agoGet smbd to look (read-only) into the winbindd cache for uid/gid <--> sid mappings.
Jeremy Allison [Tue, 26 Aug 2008 21:52:11 +0000 (14:52 -0700)]
Get smbd to look (read-only) into the winbindd cache for uid/gid <--> sid mappings.
Jeremy.
(This used to be commit 31ba955d6950420096b9141454aa95b2510a3d9a)

11 years agoIncrease the default positive idmap cache time to a week
Volker Lendecke [Fri, 15 Aug 2008 16:24:09 +0000 (18:24 +0200)]
Increase the default positive idmap cache time to a week
(This used to be commit 60af63675063ad62c0169b9f2094ecfdaa7ca16d)

11 years agoMove idmap_cache.c from winbindd/ to lib/
Volker Lendecke [Fri, 15 Aug 2008 17:08:27 +0000 (19:08 +0200)]
Move idmap_cache.c from winbindd/ to lib/
(This used to be commit fe70dcc1b63b1969c13f7fb03ec374b6e5a376a1)

11 years agorun make idl after idl change "Handle arbitrary new PAC types"
Michael Adam [Tue, 26 Aug 2008 14:09:50 +0000 (16:09 +0200)]
run make idl after idl change "Handle arbitrary new PAC types"

Michael
(This used to be commit 5de253ba1308f470a47f9e5f83c6eccd17e95c26)

11 years agoHandle arbitrary new PAC types
Andrew Tridgell [Sun, 24 Aug 2008 04:00:58 +0000 (14:00 +1000)]
Handle arbitrary new PAC types

When MS introduces a new PAC type, we should just ignore it, not
generate a parse error. New PAC info structures are supposed to be
backwards compatible with old ones
(This used to be commit 2971b926c835412b02c93ad1e30f1471bc0a3612)

11 years agoEINVAL is also a valid error return, meaning "this filesystem
Andrew Tridgell [Tue, 26 Aug 2008 04:06:42 +0000 (14:06 +1000)]
EINVAL is also a valid error return, meaning "this filesystem
cannot do sendfile for this file"
(This used to be commit 737f664604b28f230be63bfc2f3d516fd9eb1c63)

11 years agobecome root for AIO operations
Andrew Tridgell [Sun, 24 Aug 2008 03:58:05 +0000 (13:58 +1000)]
become root for AIO operations

We need to become root for AIO read and write to allow the AIO thread
to send a completion signal to the parent process when the IO
completes
(This used to be commit c548e5c69f9d8bc85a654f4d29d64c735a5e780b)

11 years agoAvoid a race condition in glibc between AIO and setresuid().
Andrew Tridgell [Sun, 24 Aug 2008 03:56:59 +0000 (13:56 +1000)]
Avoid a race condition in glibc between AIO and setresuid().

See this test: http://samba.org/~tridge/junkcode/aio_uid.c

The problem is that setresuid() tries to be clever about threads, and
tries to change the euid of any threads that are running. If a AIO read
or write completes while this is going on then the signal from the thread
where the IO completed is lost, as it gets -1/EPERM from rt_sigqueueinfo()

The simplest fix is to try to use setreuid() instead of setresuid(),
as setreuid() doesn't try to be clever. Unfortunately this also means
we must use become_root()/unbecome_root() in the aio code.
(This used to be commit 56c5a6f024875bb79b0104beb36f6b0ec1e1e9f9)

11 years agofixed an errno handling bug that could lead to an infinite loop
Andrew Tridgell [Sun, 24 Aug 2008 03:53:19 +0000 (13:53 +1000)]
fixed an errno handling bug that could lead to an infinite loop
(This used to be commit 5ccdc58ce91ee40ca7171dd040191291aeb7fe02)

11 years agofixed tsmsm_sendfile(). The logic was totally broken.
Andrew Tridgell [Sat, 23 Aug 2008 01:36:27 +0000 (11:36 +1000)]
fixed tsmsm_sendfile(). The logic was totally broken.
(This used to be commit 794e48b809036871287df8416a2c669b7e26f216)

11 years agobuild: make sure to create CODEPAGEDIR and MODULESDIR.
Günther Deschner [Tue, 26 Aug 2008 11:47:43 +0000 (13:47 +0200)]
build: make sure to create CODEPAGEDIR and MODULESDIR.

Guenther
(This used to be commit d31683cdc877b468e7443216ab9e6edff844c131)

11 years agoFix bug 4516, no IPv6 on Solaris 2.6.
David Leonard [Mon, 25 Aug 2008 22:17:53 +0000 (15:17 -0700)]
Fix bug 4516, no IPv6 on Solaris 2.6.
(This used to be commit b5d0f751e4bf19c2ad306ebb3baeb5e9e83e49ee)

11 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
(This used to be commit bb9c59e892cc9d3047bde89a15cc341e2bd21bc5)

11 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
(This used to be commit ae3fa60c4546c7420722d8f422c22bbfd623ff5b)

11 years agowinbindd: only create machine pwd change event when in primary domain child.
Günther Deschner [Mon, 25 Aug 2008 09:37:57 +0000 (11:37 +0200)]
winbindd: only create machine pwd change event when in primary domain child.

Guenther
(This used to be commit 543dfdc1cf6baf60bffc23c6aebc542fd58d2d2e)

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

Guenther
(This used to be commit 4661ef625a6522d6f859b83e3e3702f01d0b952f)

11 years agoFix some nonempty blank lines
Volker Lendecke [Sun, 24 Aug 2008 10:46:26 +0000 (12:46 +0200)]
Fix some nonempty blank lines
(This used to be commit 010c7101e59477f0d5f3bf11c17f474ec6f79cc1)

11 years agoFix some C++ warnings
Volker Lendecke [Sun, 24 Aug 2008 10:43:36 +0000 (12:43 +0200)]
Fix some C++ warnings
(This used to be commit dd9e4e6db04acf20f6ef7705955358c7ca442bbd)

11 years agoRevert "Protect against short read&x replies"
Volker Lendecke [Sat, 23 Aug 2008 13:40:43 +0000 (15:40 +0200)]
Revert "Protect against short read&x replies"

This reverts commit 4ed73cbbbeff4b554cc8d28252b756241396b3a1.

... how did this end up here??

Volker
(This used to be commit 7dd9fd0956bd1c46105d1072c4774972933ab9ec)

11 years agoProtect against short read&x replies
Volker Lendecke [Wed, 13 Aug 2008 17:57:19 +0000 (19:57 +0200)]
Protect against short read&x replies
(This used to be commit 4ed73cbbbeff4b554cc8d28252b756241396b3a1)

11 years agoFix some nonempty blank lines
Volker Lendecke [Tue, 19 Aug 2008 08:14:59 +0000 (10:14 +0200)]
Fix some nonempty blank lines
(This used to be commit 541e088656773d2b3b56a5a8bdc8dea6c9edec86)

11 years agoUse talloc_stackframe() in machine_password_change_handler
Volker Lendecke [Sat, 23 Aug 2008 11:12:36 +0000 (13:12 +0200)]
Use talloc_stackframe() in machine_password_change_handler
(This used to be commit 79103000b13c95325534db749a0da638a3eb1807)

11 years agoFix a memleak in calculate_next_machine_pwd_change
Volker Lendecke [Sat, 23 Aug 2008 11:12:05 +0000 (13:12 +0200)]
Fix a memleak in calculate_next_machine_pwd_change
(This used to be commit 5314f06dcdf14ce5e038a03a3e4dfded227bd00c)

11 years agowinbindd: add event based machine password change.
Günther Deschner [Wed, 20 Aug 2008 23:20:22 +0000 (01:20 +0200)]
winbindd: add event based machine password change.

Guenther
(This used to be commit 15b72d44cbde0b8a375d8ed3d045c40ae97ec05a)

11 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:49:46 +0000 (13:49 -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.
(This used to be commit dca827791276906436452c650062164eb819dfe0)

11 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.
(This used to be commit 25293ba1507f8f8fa7e33c302200184e980bb123)

11 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.
(This used to be commit 5ce4a2ae6697970ea37d0078a506615b4b7a9a9c)

11 years agocifs.upcall: bump SPNEGO msg version number and don't reject old versions
Jeff Layton [Fri, 22 Aug 2008 17:29:16 +0000 (13: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>
(This used to be commit b868463015dedc684eb13d12118a98ccca71250a)

11 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
(This used to be commit 8d0a16d8034cd07037b3c7711867280d5fa5b2c8)

11 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
(This used to be commit c7aef4b38bd2b152b316d8d76b45be4b73ca315f)

11 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
(This used to be commit a415244365e32ba18919042ec72b3a281d8c1b0a)

11 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
(This used to be commit fc5010e6d988939779bcb44e8a460b7b05e7ba9a)

11 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
(This used to be commit fcfab4703628e19902c140a7ad9531d4be0de01d)

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

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit aa3443492c58a7c109fe159e15d763dbafc66f2a)

11 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>
(This used to be commit d8018d15f013b8d7be8618b75dac5112711193b7)

11 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>
(This used to be commit 5c9a1b2c98cc712fc519225e62fba4e5088631a3)

11 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>
(This used to be commit 6287e13b34efeaa8fd94c7c6d99468350ce6172e)

11 years agomount.cifs: don't prompt for password on krb5 mounts
Jeff Layton [Sat, 16 Aug 2008 10:09:29 +0000 (06:09 -0400)]
mount.cifs: don't prompt for password on krb5 mounts

krb5 mounts require that the user already have a valid krb5 ticket.
Since we can't currently use the password entered, don't prompt for it.

Also, switch to using strncmp instead of strcmp here.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit c75791c34abebe23c6f6a5534b0358514ec4eabc)

11 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:27:22 +0000 (15:27 -0700)]
Fix broken net rpc join message when DC can't be found. Ensure we pass in a domain name.
Jeremy.
(This used to be commit 33019fe2b5f521c143fc79edb915eca69b9ed98d)

11 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
(This used to be commit f3791e03ab09cadb1f54e32e67f4dfb3cf42e708)

11 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
(This used to be commit 5820360451e4db0fad0472f814cae667b2ea51fd)

11 years agoFix bug 5698 - mixup of TALLOC/malloc. Spotted by Douglas Wegscheid <Douglas_E_Wegsch...
Jeremy Allison [Thu, 21 Aug 2008 17:25:02 +0000 (10:25 -0700)]
Fix bug 5698 - mixup of TALLOC/malloc. Spotted by Douglas Wegscheid <Douglas_E_Wegscheid@whirlpool.com>.
Jeremy.
(This used to be commit 1295bb9787dde69b4be4acee7b66eb782afe9c42)

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

Guenther
(This used to be commit f24cef9fa7be45212744d39b7c66804e64147afd)

11 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
(This used to be commit 7b312a0abc6de5a51555ccfbde7f8f78fc11d043)

11 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
(This used to be commit 25fed055c0ee1d892b902caae2a1188977316f14)

11 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
(This used to be commit b476400f0afcaf4e1a37b9f0b358f01dc7a194be)

11 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
(This used to be commit fe62098666a16b31b025867f273d407e77152c4c)

11 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
(This used to be commit f0e47bce2e98131812e96fb88cc3d1fe939e8d6c)

11 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
(This used to be commit 28688cfd57c322937f2c63087380c377bd961018)

11 years agoHere is a re-working of the winbindd
Jeremy Allison [Wed, 20 Aug 2008 23:24:22 +0000 (16:24 -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.
(This used to be commit 8027197635b988b3dcf9d3d00126a024e768fa62)

11 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
(This used to be commit e5c4cbbf5a4b3e5db1732043a74cd1f4a5eec136)

11 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
(This used to be commit fdf29c1cdf6b9bd1c6fb7a9f070084e0df5470bb)

11 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
(This used to be commit 11458f9a9ac17c68aa0496d2ade4b93d02e7ebcc)

11 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
(This used to be commit f1d84e76bb6935e80b01d13414980f8de1f71824)

11 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
(This used to be commit 02d4b820fccfef1387f47db4bb5ade3dfd0d25bb)

11 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
(This used to be commit d6fb6348a3672e915556dcb36c1a4999d4abae18)

11 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
(This used to be commit 6ad2090391a92ebe822b2d7b80e180c251dc8e7a)

11 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
(This used to be commit 702c0bc04668117e3521d687b9b5a87fd7e0f1b1)

11 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
(This used to be commit c3c3dadcab81f0a1ae8834e85e7e80a3da6601fb)

11 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
(This used to be commit ead9b9d7167d999d73cf4111f3b321236aac2a15)

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

Guenther
(This used to be commit a75055be5ff7ebe3476cfac86c6597a56a843c23)

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

Guenther
(This used to be commit ea9fc3bea31b11e715d9524defc18b75e5943842)

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

Guenther
(This used to be commit 43693ce6c678b961fa516bbf502af92f87cd5346)

11 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.
(This used to be commit ee26664602445fa7798e2061f6bcbef0756d6528)

11 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
(This used to be commit 7b4c8a4e39f310eb450918fa841b0ea1b4af19f7)

11 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
(This used to be commit d3295d13aeb396377cb7fd46dcdb1f504f18efef)

11 years agoFix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 address
Jeremy Allison [Wed, 20 Aug 2008 00:30:30 +0000 (17:30 -0700)]
Fix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 address
reported by Ted Percival <ted@midg3t.net>.
Jeremy.
(This used to be commit ab06efccf31fbc899536d2681a2076e6dfd65b9e)

11 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
(This used to be commit e8619121d16d086f1ab186051d0ecdc83c02e5b5)

11 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
(This used to be commit ae35a5110ea03d8ff27f320cdc685e5623715a2a)