1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

30021 Commits

Author SHA1 Message Date
Karolin Seeger
b90607e6e8 loadparm: idmap backend is not depracated any longer.
Karolin
(This used to be commit fcfab47036)
2008-08-22 10:06:26 +02:00
Jeff Layton
e1523fdce4 cifs.upcall: fix build warning
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit aa3443492c)
2008-08-21 21:21:48 -04:00
Jeff Layton
2c96b1fd5b 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 d8018d15f0)
2008-08-21 19:41:14 -04:00
Jeff Layton
a835c28bb7 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 5c9a1b2c98)
2008-08-21 19:40:14 -04:00
Jeff Layton
6cbebac514 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 6287e13b34)
2008-08-21 19:38:41 -04:00
Jeff Layton
3be3dac17d 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 c75791c34a)
2008-08-21 19:38:35 -04:00
Jeremy Allison
129e71a97a 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 33019fe2b5)
2008-08-21 15:27:22 -07:00
Günther Deschner
efbb8c189d rpc_server: make it a little more obvious what flags we send to a client.
Guenther
(This used to be commit f3791e03ab)
2008-08-22 00:21:31 +02:00
Günther Deschner
b67adb49ec 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 5820360451)
2008-08-21 23:45:24 +02:00
Jeremy Allison
9efccda1cc Fix bug 5698 - mixup of TALLOC/malloc. Spotted by Douglas Wegscheid <Douglas_E_Wegscheid@whirlpool.com>.
Jeremy.
(This used to be commit 1295bb9787)
2008-08-21 10:25:02 -07:00
Günther Deschner
f2564f1dcc re-run make idl.
Guenther
(This used to be commit f24cef9fa7)
2008-08-21 15:06:38 +02:00
Günther Deschner
dec6bc8f44 IDL: fix IDL for netr_ServerPasswordSet2().
Guenther
(This used to be commit 7b312a0abc)
2008-08-21 15:06:26 +02:00
Michael Adam
0a909f4861 gitignore: add examples/libsmbclient/Makefile.internal - a generated file
Michael
(This used to be commit 25fed055c0)
2008-08-21 12:16:05 +02:00
Michael Adam
fdb4fcf30c build: add [clean_]libsmbclient_examples targets to top level Makefile
Michael
(This used to be commit b476400f0a)
2008-08-21 12:16:05 +02:00
Michael Adam
fb0b833001 libsmbclient examples: source/bin to the library search path for smbwrapper build
Michael
(This used to be commit fe62098666)
2008-08-21 12:16:05 +02:00
Michael Adam
f14e833c53 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 f0e47bce2e)
2008-08-21 12:16:05 +02:00
Michael Adam
f1a45e3b6b libsmbclient examples: fix prototype for readlink
Michael
(This used to be commit 28688cfd57)
2008-08-21 12:16:04 +02:00
Jeremy Allison
79150da70b 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 8027197635)
2008-08-20 16:24:22 -07:00
Michael Adam
2fdcaab8c4 gitignore: add examples/libsmbclient/tree
Michael
(This used to be commit e5c4cbbf5a)
2008-08-20 22:39:47 +02:00
Michael Adam
d1cb562771 gitignore: add lib/netapi/tests/Makefile
Michael
(This used to be commit fdf29c1cdf)
2008-08-20 22:39:46 +02:00
Michael Adam
9220e76714 gitignore: add libsmbsharemodes.syms - this is now generated
Michael
(This used to be commit 11458f9a9a)
2008-08-20 22:39:46 +02:00
Michael Adam
447852c9d8 build: auto-generate symbols for libsmbsharemodes.
Michael
(This used to be commit f1d84e76bb)
2008-08-20 22:39:46 +02:00
Michael Adam
4845b86164 gitignore: add libsmbclient.syms - this is now generated
Michael
(This used to be commit 02d4b820fc)
2008-08-20 22:39:45 +02:00
Michael Adam
f483aa05e4 build: autogenerate symbols for libsmbclient.so
Michael
(This used to be commit d6fb6348a3)
2008-08-20 22:38:39 +02:00
Michael Adam
e2ec27135d build: fix bug #5590 by not linking in the static libs but the objects.
Michael
(This used to be commit 6ad2090391)
2008-08-20 22:38:08 +02:00
Michael Adam
c617b69b11 build: fall down to the same place when using an internal lib statically.
Michael
(This used to be commit 702c0bc046)
2008-08-20 22:38:07 +02:00
Michael Adam
cc8404242c build: remove duplicated and hardcoded definition of LIBSMBSHAREMODES
Michael
(This used to be commit c3c3dadcab)
2008-08-20 22:38:07 +02:00
Michael Adam
e069dd4e5c build: rename LIBNETAPI_OBJ1 to LIBNETAPI_OBJ0 for consistency.
Michael
(This used to be commit ead9b9d716)
2008-08-20 22:38:07 +02:00
Günther Deschner
f51e1f4f93 fix build warning.
Guenther
(This used to be commit a75055be5f)
2008-08-20 22:12:24 +02:00
Günther Deschner
825f06c3f9 libads: remove unused vars.
Guenther
(This used to be commit ea9fc3bea3)
2008-08-20 22:07:40 +02:00
Günther Deschner
a77c9285b7 fix another build warning.
Guenther
(This used to be commit 43693ce6c6)
2008-08-20 22:07:40 +02:00
Gerald (Jerry) Carter
cf710f0464 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 ee26664602)
2008-08-20 13:00:40 -05:00
Stefan Metzmacher
eb8dd6a811 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 7b4c8a4e39)
2008-08-20 15:50:26 +02:00
Steven Danneman
b027463461 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 d3295d13ae)
2008-08-20 12:35:53 +02:00
Jeremy Allison
f23a6b7c93 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 ab06efccf3)
2008-08-19 17:30:30 -07:00
Günther Deschner
477e6bb40d winbindd: consistently use false/true.
Guenther
(This used to be commit e8619121d1)
2008-08-19 22:01:00 +02:00
Günther Deschner
d9484d4331 winbindd: use set_auth_errors (avoid code duplication).
Guenther
(This used to be commit ae35a5110e)
2008-08-19 22:00:48 +02:00
Günther Deschner
4289e4b878 winbindd: fill_in_password_policy (to avoid redundant code).
Guenther
(This used to be commit dbfa7ba14c)
2008-08-19 22:00:36 +02:00
Günther Deschner
bded7eb2af pam_winbind: some doxygen fixes.
Guenther
(This used to be commit f2a2ed315e)
2008-08-19 16:19:54 +02:00
Günther Deschner
a11e310799 wbinfo: use wbinfo_prompt_pass() everywhere.
Guenther
(This used to be commit 687ef28874)
2008-08-19 15:33:45 +02:00
Günther Deschner
833af26eeb wbinfo: add wbinfo_prompt_pass.
Guenther
(This used to be commit 7cf6ed6823)
2008-08-19 15:33:36 +02:00
Günther Deschner
1cef895f4b pam_winbind: use pam error string function to display result.
Guenther
(This used to be commit 8504a92ac5)
2008-08-19 15:23:46 +02:00
Günther Deschner
299e6c7996 pam_winbind: add _pam_error_code_str().
Guenther
(This used to be commit 693f90fd23)
2008-08-19 15:23:33 +02:00
Günther Deschner
5692bbf64b pam_winbind: use integer constants.
Guenther
(This used to be commit 8d19b2ceb1)
2008-08-19 15:20:44 +02:00
Günther Deschner
9f28b99ba8 winbindd: kill some trailing/leading whitespace.
Guenther
(This used to be commit b5bb784495)
2008-08-19 15:20:07 +02:00
Michael Adam
4928791d79 build: fix linking cifs.upcall when nscd_flush_cache() is found.
Michael
(This used to be commit 661b7fdffd)
2008-08-19 13:31:33 +02:00
Jeremy Allison
39480f6298 Make the change to smbcontrol for "all" to mean broadcast,
and "smbd" to mean the main smb daemon. Update docs to match.
Jeremy.
(This used to be commit e415420b08)
2008-08-18 16:18:34 -07:00
Igor Mammedov
2597c97d3a Fix length error in wrapping spnego blob
(This used to be commit 16ee95494b)
2008-08-18 09:55:11 -07:00
Jeremy Allison
ee6c02f7c8 Fix bug 5696. The problem was when smbd
was asking for a winbindd name to SID lookup of
"Unix Group\name" where "name" was also a valid username,
the winbindd passdb lookup of that name was losing the
domain string info before calling lookup name (ie. lookup_name()
was being called with just the string "name", not the
full string "Unix Group\name").

The passdb backend of winbindd has to cope with
not only names from it's own global SAM domain,
but it does lookups for BUILTIN and "Unix User"
and "Unix Group" also, so making it guess by
losing the domain string is "A Bad Idea" (tm) :-).

Note that as winbind globally calls winbind_off()
at startup, it's safe for winbind to call sys_getgrnam()
to do the "Unix Group" lookup from inside lookup_name().

Jeremy.
(This used to be commit 5293af6c3c)
2008-08-16 19:23:38 -07:00
Volker Lendecke
165f5c0c0a Attempt to fix Coverity ID 596
Jeremy, please check & push if it's ok.
(This used to be commit f06070c188)
2008-08-16 10:38:39 -07:00