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

29877 Commits

Author SHA1 Message Date
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
Volker Lendecke
cb9dc23600 Attempt to fix Coverity ID 595
is_ipaddress already dereferences "name", so the NULL check is pointless after
calling it.
(This used to be commit 31ca7b2dbb)
2008-08-16 10:34:42 -07:00
Herb Lewis
63ff9e0081 I think the problem with these functions is that lookup_usergroups
should never include the user SID.
The comment for the function in winbindd/winbindd_ads.c says
/* Lookup groups a user is a member of. */
The following patch makes the wbinfo calls return the correct data
before and after a login.
wbinfo --user-domgroups and --user-sids
(This used to be commit 7849938906)
2008-08-15 15:28:23 -07:00
Michael Adam
2408d3cf87 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
(This used to be commit 03de8c1955)
2008-08-15 23:20:00 +02:00
Michael Adam
5e683fc925 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
(This used to be commit 256977cf05)
2008-08-15 23:19:59 +02:00
Michael Adam
14a6982a50 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
(This used to be commit c1d53b7c76)
2008-08-15 23:19:59 +02:00
Michael Adam
e5830726f4 popt: add support for setting MODULESDIR via popt_common_dynconfig.
Michael
(This used to be commit 81030e49ce)
2008-08-15 23:19:59 +02:00
Michael Adam
8829b424fe svcctl: use MODULESDIR instead of LIBDIR for the svcctl script directory.
Michael
(This used to be commit bb19634138)
2008-08-15 23:19:58 +02:00
Michael Adam
8dadf4b949 libgpo: use MODULESDIR instead of LIBDIR for the group policy extensions.
Michael
(This used to be commit 3346dd4083)
2008-08-15 23:19:58 +02:00
Michael Adam
26c3453407 Use module_path() instead of lib_path() for loading shared modules.
Michael
(This used to be commit 22fb3ef1bb)
2008-08-15 23:19:58 +02:00
Michael Adam
25f31194e5 Add modules_path() to construct paths to files in MODULESDIR.
Michael
(This used to be commit 5ef9da6f4f)
2008-08-15 23:19:57 +02:00
Michael Adam
e069372ef8 buildoptions: output MODULESDIR.
Michael
(This used to be commit bcb868e434)
2008-08-15 23:19:57 +02:00
Michael Adam
cc83d5b9f1 dynconfig: add support for MODULESDIR.
Michael
(This used to be commit 34309f097f)
2008-08-15 23:19:57 +02:00
Michael Adam
e9739694b6 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
(This used to be commit b17d1ff646)
2008-08-15 23:19:56 +02:00
Michael Adam
b39040cfe2 dynconfig: remove commented-out old stuff from dynconfig.c and dynconfig.h
Michael
(This used to be commit 85a781fa02)
2008-08-15 23:19:56 +02:00
Michael Adam
1d60a7d662 dynconfig: remove unused prototypes.
set_dyn_STATEDIR, is_default_dyn_STATEDIR,
set_dyn_CACHEDIR, is_default_dyn_CACHEDIR
are neither used nor implemented.

Michael
(This used to be commit f30b70b2c3)
2008-08-15 23:19:56 +02:00
Michael Adam
f2d7c593b5 proto.h: remove prototypes from dynconfig.c
These are also in dynconfig.h and were originally added
by "make proto" by accident.

Michael
(This used to be commit 4fb69fe1ee)
2008-08-15 23:19:55 +02:00
Michael Adam
b02216b93f Makefile: print codepagedir in "make showlayout".
Michael
(This used to be commit a823733b91)
2008-08-15 23:19:55 +02:00
Michael Adam
dfd27586db build: fix a typo in the installlibtalloc rule.
The symlink liballoc.so -> libtalloc.so.1 would have been
created unconditionally, independent of the existence of
libtalloc.so.1.

Michael
(This used to be commit 04974818bd)
2008-08-15 23:19:54 +02:00
Jeremy Allison
8bda4e059e Fix show-stopper for 3.2. Smbd depends on group SID
position zero being the primary group sid. Authenicating
via winbindd call returned a non-sorted sid list. This
fixes is for both a winbindd call and a pac list from
an info3 struct. Without this we mess up the
primary group associated with created files. Found by
Herb.
Jeremy.
(This used to be commit cb925dec85)
2008-08-14 21:52:11 -07:00
Jeremy Allison
9ab5cffcfa Make it clear that this is a temporary context byusing a talloc stackframe instead.
Jeremy
(This used to be commit 7f7dd5e888)
2008-08-14 14:36:02 -07:00
Jeremy Allison
9253044276 Fix bug #5692 - Core dump in full_audit.so.
There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed).
Jeremy.
(This used to be commit 221cc5e21e)
2008-08-14 10:58:50 -07:00
Michael Adam
762439025a Revert "Add a gpfs_prefetch module"
This reverts commit fc9b30bed2.

Sorry, this got pushed by accident:

"This can not go upstream yet because it uses the non-GPL libgpfs."

Michael
(This used to be commit 26a3cf0be9)
2008-08-14 17:46:28 +02:00
Karolin Seeger
0d64a3b46d smbspool: Fix printing on port 139.
This one was introduced with 8eff35bc.
Thanks to Noèl Köthe for tracking that down!

Karolin
(This used to be commit 250f5a40d6)
2008-08-14 17:32:26 +02:00
Günther Deschner
06ad4dc625 netapi: add some remaining documentation fixes.
Guenther
(cherry picked from commit 4a4e90a387)
(This used to be commit c542307b74)
2008-08-14 12:22:37 +02:00
Günther Deschner
2b89fc16cc netapi: add doxygen documentation for NetUserModalsGet and NetUserModalsSet.
Guenther
(cherry picked from commit 93210f04c3)
(This used to be commit ab1b214ba0)
2008-08-14 12:22:28 +02:00
Günther Deschner
214e6e7d72 netapi: add doxygen documentation for NetLocalGroup{Add,Del,Set,Get}Members.
Guenther
(cherry picked from commit eee28804b7)
(This used to be commit b725852502)
2008-08-14 12:22:19 +02:00
Günther Deschner
fcd10d26a4 netapi: make libnetapi_open_ipc_connection static.
Guenther
(cherry picked from commit 0259914f8f)
(This used to be commit 7edc671cc1)
2008-08-14 12:22:11 +02:00
Günther Deschner
87b9c9ade2 netapi: make non-implemented local calls default to remote "localhost" calls.
Guenther
(cherry picked from commit aa70e58880)
(This used to be commit 9927ac6eec)
2008-08-14 12:22:02 +02:00
Günther Deschner
a810cc865d netapi: add NetLocalGroupGetMembers example code.
Guenther
(cherry picked from commit bded298e02)
(This used to be commit 93b0907aa4)
2008-08-14 12:21:53 +02:00
Günther Deschner
11db643962 netapi: let libnetapi_samr_lookup_and_open_alias return NTSTATUS.
Guenther
(cherry picked from commit dcf6d879a1)
(This used to be commit 8ac6a2739b)
2008-08-14 12:21:44 +02:00
Michael Adam
4136ab3c98 Put prototypes of modules/vfs_irixacl.c to new modules/vfs_irixacl.h.
Thereby (hopefully) fixing the potential build problems with IRIX acls.

Michael
(This used to be commit 61c201d416)
2008-08-14 11:22:49 +02:00
Michael Adam
34294b31aa Put prototypes of modules/vfs_hpuxacl.c to new modules/vfs_hpuxacl.h.
Thereby (hopefully) fixing the potential build problems with HPUX acls.

Michael
(This used to be commit 4f2a1de990)
2008-08-14 11:22:48 +02:00
Michael Adam
1c72d476ec Put prototypes of modules/vfs_solarisacl.c to new modules/vfs_solarisacl.h.
Thereby (hopefully) fixing the potential build problems with solaris acls.

Michael
(This used to be commit 8413c05afc)
2008-08-14 11:22:48 +02:00
Michael Adam
14fd4ac3ea Put prototypes of modules/vfs_tru64acl.c to new modules/vfs_tru64acl.h.
Thereby (hopefully) fixing the build with tru64 acls.

Michael
(This used to be commit 1ab64b6985)
2008-08-14 11:22:48 +02:00
Michael Adam
7871fa0b69 Put prototypes of modules/vfs_posixacl.c into new modules/vfs_posixacl.h.
Michael
(This used to be commit 876f679343)
2008-08-14 11:22:48 +02:00
Jeremy Allison
40b133eb88 Fix coverity CID: 594. Resource leak on error path.
Jeremy.
(This used to be commit 1f38b9963c)
2008-08-14 11:22:47 +02:00
Jeremy Allison
0595ecb3a6 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.
(This used to be commit c65726d418)
2008-08-14 11:22:47 +02:00
Jeremy Allison
a5cf8b9fb5 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
(This used to be commit ecf2b906f4)
2008-08-14 11:22:47 +02:00
Jim McDonough
b48ba00dc6 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.
(This used to be commit 78f009b7ef)
2008-08-14 11:22:46 +02:00
Volker Lendecke
e90dc23ff5 Revert "Add winbind:online check timeout parameter"
This reverts commit 9920473cc1.
(This used to be commit 34a32db906)
2008-08-14 11:09:37 +02:00
Volker Lendecke
8d03db99b8 Revert "If it is a forced DOS error, nt_errstr should say so"
This reverts commit ef5489ac80.
(This used to be commit e987e9956f)
2008-08-13 18:19:06 +02:00
Volker Lendecke
870c54ebb4 If it is a forced DOS error, nt_errstr should say so
(This used to be commit ef5489ac80)
2008-08-13 17:50:24 +02:00
Karolin Seeger
8879545282 WHATSNEW: Start WHATSNEW for 3.4.0pre1.
Karolin
(This used to be commit e25fadd359)
2008-08-13 15:29:06 +02:00
Karolin Seeger
0c0a3892ae VERSION: Raise version number.
Karolin
(This used to be commit 1ed4b2151e)
2008-08-13 15:25:09 +02:00