1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

29910 Commits

Author SHA1 Message Date
Günther Deschner
dec6bc8f44 IDL: fix IDL for netr_ServerPasswordSet2().
Guenther
(This used to be commit 7b312a0abc6de5a51555ccfbde7f8f78fc11d043)
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 25fed055c0ee1d892b902caae2a1188977316f14)
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 b476400f0afcaf4e1a37b9f0b358f01dc7a194be)
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 fe62098666a16b31b025867f273d407e77152c4c)
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 f0e47bce2e98131812e96fb88cc3d1fe939e8d6c)
2008-08-21 12:16:05 +02:00
Michael Adam
f1a45e3b6b libsmbclient examples: fix prototype for readlink
Michael
(This used to be commit 28688cfd57c322937f2c63087380c377bd961018)
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 8027197635b988b3dcf9d3d00126a024e768fa62)
2008-08-20 16:24:22 -07:00
Michael Adam
2fdcaab8c4 gitignore: add examples/libsmbclient/tree
Michael
(This used to be commit e5c4cbbf5a4b3e5db1732043a74cd1f4a5eec136)
2008-08-20 22:39:47 +02:00
Michael Adam
d1cb562771 gitignore: add lib/netapi/tests/Makefile
Michael
(This used to be commit fdf29c1cdf6b9bd1c6fb7a9f070084e0df5470bb)
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 11458f9a9ac17c68aa0496d2ade4b93d02e7ebcc)
2008-08-20 22:39:46 +02:00
Michael Adam
447852c9d8 build: auto-generate symbols for libsmbsharemodes.
Michael
(This used to be commit f1d84e76bb6935e80b01d13414980f8de1f71824)
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 02d4b820fccfef1387f47db4bb5ade3dfd0d25bb)
2008-08-20 22:39:45 +02:00
Michael Adam
f483aa05e4 build: autogenerate symbols for libsmbclient.so
Michael
(This used to be commit d6fb6348a3672e915556dcb36c1a4999d4abae18)
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 6ad2090391a92ebe822b2d7b80e180c251dc8e7a)
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 702c0bc04668117e3521d687b9b5a87fd7e0f1b1)
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 c3c3dadcab81f0a1ae8834e85e7e80a3da6601fb)
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 ead9b9d7167d999d73cf4111f3b321236aac2a15)
2008-08-20 22:38:07 +02:00
Günther Deschner
f51e1f4f93 fix build warning.
Guenther
(This used to be commit a75055be5ff7ebe3476cfac86c6597a56a843c23)
2008-08-20 22:12:24 +02:00
Günther Deschner
825f06c3f9 libads: remove unused vars.
Guenther
(This used to be commit ea9fc3bea31b11e715d9524defc18b75e5943842)
2008-08-20 22:07:40 +02:00
Günther Deschner
a77c9285b7 fix another build warning.
Guenther
(This used to be commit 43693ce6c678b961fa516bbf502af92f87cd5346)
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 ee26664602445fa7798e2061f6bcbef0756d6528)
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 7b4c8a4e39f310eb450918fa841b0ea1b4af19f7)
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 d3295d13aeb396377cb7fd46dcdb1f504f18efef)
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 ab06efccf31fbc899536d2681a2076e6dfd65b9e)
2008-08-19 17:30:30 -07:00
Günther Deschner
477e6bb40d winbindd: consistently use false/true.
Guenther
(This used to be commit e8619121d16d086f1ab186051d0ecdc83c02e5b5)
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 ae35a5110ea03d8ff27f320cdc685e5623715a2a)
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 dbfa7ba14c9f1a4d7a1e7205dd0b3ea2fc2e6131)
2008-08-19 22:00:36 +02:00
Günther Deschner
bded7eb2af pam_winbind: some doxygen fixes.
Guenther
(This used to be commit f2a2ed315e393353110aa7760b4eca4f1f49ca21)
2008-08-19 16:19:54 +02:00
Günther Deschner
a11e310799 wbinfo: use wbinfo_prompt_pass() everywhere.
Guenther
(This used to be commit 687ef28874eb311b3e3919c3a38a22e5186d4c1b)
2008-08-19 15:33:45 +02:00
Günther Deschner
833af26eeb wbinfo: add wbinfo_prompt_pass.
Guenther
(This used to be commit 7cf6ed68236e7dd64657cb1087a5a687d6f59ad1)
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 8504a92ac55d6936df051be66207a59a76bf32a3)
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 693f90fd2394309ce40d3ca5fc007543058b342a)
2008-08-19 15:23:33 +02:00
Günther Deschner
5692bbf64b pam_winbind: use integer constants.
Guenther
(This used to be commit 8d19b2ceb131ca2a0fd983cdb4fd17acdad9c26e)
2008-08-19 15:20:44 +02:00
Günther Deschner
9f28b99ba8 winbindd: kill some trailing/leading whitespace.
Guenther
(This used to be commit b5bb7844952a87b123551b478b60bfe232afc308)
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 661b7fdffda40a9ca7cb36627dbaf91cb4357cd0)
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 e415420b086a236be6bcc1e7584bec276a74e457)
2008-08-18 16:18:34 -07:00
Igor Mammedov
2597c97d3a Fix length error in wrapping spnego blob
(This used to be commit 16ee95494ba495c5f5ff8779206f380db1067b2d)
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 5293af6c3cbfdde340e6add47b914b6ee6fd7b6f)
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 f06070c188d6d2efed3205bbc9c3c290718397b1)
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 31ca7b2dbbbfbb3a55670b58c08ebda68888af7e)
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 7849938906a9c859805cbaeca66fae9d3c515aad)
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 03de8c1955a85f2e3e9f947309e09023138a1591)
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 256977cf05cb4c4073ece1389a7e4939b18f5f13)
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 c1d53b7c767275b39dc8ecfcd5b6129ee2cabb6d)
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 81030e49ce344260d279a3112b13a21ce3520748)
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 bb19634138cfd1f527c44e16a44aa21ebee50c1c)
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 3346dd40832e8d61edfe4c56dce6fe85031f20f1)
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 22fb3ef1bb4abb33b49d275f9a5d85a1924c22ea)
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 5ef9da6f4f04b07804b389902862fae0fbbfed13)
2008-08-15 23:19:57 +02:00
Michael Adam
e069372ef8 buildoptions: output MODULESDIR.
Michael
(This used to be commit bcb868e4340a856c4009450479628088a8a1628c)
2008-08-15 23:19:57 +02:00