1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

19287 Commits

Author SHA1 Message Date
Gerald Carter
96f590807f r22705: Implement new set_dc_type_and_flags() called based on the
information return from our DC in the DsEnumerateDomainTrusts()
call.   If the fails, we callback ot the older
connect-to-the-remote-domain method.

Note that this means we can only reliably expect the native_mode
flag to be set for our own domain as this information in not
available outside our primary domain from the trusted information.
This is ok as we only really need the flag when trying to
determine to enumerate domain local groups via RPC.

Use the AD flag rather than the native_mode flag when using
ldap to obtain the seq_num for a domain.
(This used to be commit 4b4148a964)
2007-10-10 12:21:47 -05:00
Gerald Carter
7cb2a4be35 r22704: Implement three step method for enumerating domain trusts.
(a) Query our primary domain for trusts
(b) Query all tree roots in our forest
(c) Query all forest roots in trusted forests.

This will give us a complete trust topology including
domains via transitive Krb5 trusts.  We also store the
trust type, flags, and attributes so we can determine
one-way trusted domains (outgoing only trust path).
Patch for one-way trusts coming in a later check-in.

"wbinfo -m" now lists all domains in the domain_list() as held
by the main winbindd process.
(This used to be commit 9cf6068f1e)
2007-10-10 12:21:47 -05:00
Gerald Carter
879b843627 r22703: Convert winbindd_getgrgid() and winbindd_getgetpwnam()
to use the same code path after we resolve the name/gid to
a SID.  Use the async lookupname/lookupsid interface.
(This used to be commit d12b8147d6)
2007-10-10 12:21:47 -05:00
Gerald Carter
6ef504d71f r22702: Convert both lookup name and lookup sid to follow the
same heuristic.  First try our DC and then try a DC in the
root of our forest.  Use a temporary state since
winbindd_lookupXXX_async() is called from various winbindd
API entry points.

Note this will break the compile.  That will be fixed in the
next commit.
(This used to be commit b442644bac)
2007-10-10 12:21:47 -05:00
Gerald Carter
8ff276fcb0 r22701: Fix the krb5_nt_status error table and add the "no DCs found" mapping
(This used to be commit 2ab617fbbf)
2007-10-10 12:21:47 -05:00
Gerald Carter
4b7123bba7 r22700: Add a simple wcache TRUSTDOM api for maintaing a complete
list of trusted domains without requiring each winbindd process
to aquire this on its own.  This is needed for various idmap
plugins and for dealing with different trust topoligies.

list_trusted_domain() patches coming next.
(This used to be commit 2da62a3d96)
2007-10-10 12:21:47 -05:00
Volker Lendecke
bf7008abb8 r22695: Dummy checkin (reformatting) to make the AIX hosts retry.
(This used to be commit cd55ccef6a)
2007-10-10 12:21:46 -05:00
Volker Lendecke
c4d42829a5 r22693: Always compile before checkin.... I've now installed dmapi on my laptop :-)
(This used to be commit 7460511c4e)
2007-10-10 12:21:46 -05:00
Volker Lendecke
baabe03030 r22692: Fix compilation of explicit --without-winbind.
Thanks to Tom Bork for reporting this!

Volker
(This used to be commit 3f956d3451)
2007-10-10 12:21:46 -05:00
Volker Lendecke
fb56443427 r22691: Fix a 64-bit warning and a const const discard warning
(This used to be commit 3a2ca1b1b8)
2007-10-10 12:21:46 -05:00
Volker Lendecke
1bcee2679d r22688: Change lock_data in struct byte_range_lock from void * to struct lock_struct *
(This used to be commit 8e0e278961)
2007-10-10 12:21:46 -05:00
Simo Sorce
327e232e40 r22677: One line fix to make net idmap restore work again
Jerry, please add this for 3.0.25 final
(This used to be commit e04ca2d7f8)
2007-10-10 12:19:54 -05:00
Jeremy Allison
92999cee8d r22676: Fix zero alloc with create_rpc_blob().
Jeremy.
(This used to be commit c73963a60a)
2007-10-10 12:19:54 -05:00
Jeremy Allison
f1d8c4da23 r22675: Simo's patch for 0 size allocation. Still need
to examine parse_misc.c fix.
Jeremy.
(This used to be commit 80d981265c)
2007-10-10 12:19:54 -05:00
Jeremy Allison
32b9beb164 r22673: Fix for Jerry's reversion. We still need to check size
before talloc.
Jeremy.
(This used to be commit 9e4c6ab739)
2007-10-10 12:19:54 -05:00
Günther Deschner
e468268335 r22666: Expand kerberos_kinit_password_ext() to return NTSTATUS codes and make
winbindd's kerberized pam_auth use that.

Guenther
(This used to be commit 0f436eab5b)
2007-10-10 12:19:54 -05:00
Günther Deschner
116c1532e7 r22664: When we have krb5_get_init_creds_opt_get_error() then try to get the NTSTATUS
codes directly out of the krb5_error edata.

Guenther
(This used to be commit dcd902f24a)
2007-10-10 12:19:53 -05:00
Günther Deschner
6288491e90 r22663: Restructure kerberos_kinit_password_ext() error path.
Guenther
(This used to be commit 997ded4e3f)
2007-10-10 12:19:53 -05:00
Stefan Metzmacher
c5bcb4b31a r22659: merge from SAMBA_4_0:
- add AC_GNU_SOURCE macro for systems which don't have it
  (sles8)
- fix compiler warning on some systems

metze
(This used to be commit cb785d9bed)
2007-10-10 12:19:53 -05:00
Günther Deschner
e7d06b1c25 r22655: Call correct free-macros in netsamlogon_cache_get() error paths. Forgot those
in the previous commit.

Guenther
(This used to be commit fce2fe9903)
2007-10-10 12:19:53 -05:00
Gerald Carter
aa454619a2 r22654: And this is now Samba 3.0.27pre1-SVN
(This used to be commit 435a6e5e82)
2007-10-10 12:19:53 -05:00
James Peach
68d5d934bb r22648: Fix comment to match the code.
(This used to be commit e93d33b463)
2007-10-10 12:19:52 -05:00
Günther Deschner
b213b35e08 r22647: Avoid leaking a full info3 structure on each winbindd cached login by making
netsamlogon_cache_get() return a talloc'ed structure.

Guenther
(This used to be commit 5b149967cc)
2007-10-10 12:19:52 -05:00
Simo Sorce
b48096e546 r22646: segfault fix in idmap_ldap.c from 3_0_25
(This used to be commit 565d7d0b18)
2007-10-10 12:19:52 -05:00
Günther Deschner
d14e7803e7 r22644: Fix memleak.
Guenther
(This used to be commit 65a2701f36)
2007-10-10 12:19:52 -05:00
Günther Deschner
c74c6f722f r22643: Don't clear cached U/SID and UG/SID entries when we want to logon offline.
Guenther
(This used to be commit 37f9f466fd)
2007-10-10 12:19:52 -05:00
Jelmer Vernooij
cd7ad0993d r22641: Install tdbdump and tdbbackup.
(This used to be commit 232c5c6557)
2007-10-10 12:19:51 -05:00
Günther Deschner
bdbe2a955b r22636: Fix logic bug.
We certainly don't want to crash winbind on each sucessfull
centry_uint{8,16,32,64} read.

Jeremy, please check :-)

Guenther
(This used to be commit bfcd10766b)
2007-10-10 12:19:51 -05:00
James Peach
3972121063 r22633: Fix typo in debug message.
(This used to be commit 4c58b6b194)
2007-10-10 12:19:51 -05:00
James Peach
d7041fedc8 r22631: Remove the possibility of sid_check_is_domain and
sid_check_is_in_our_domain getting out of sync.
(This used to be commit bbc102172a)
2007-10-10 12:19:51 -05:00
Gerald Carter
a127d5331a r22630: Revert svn r22576 (parse change to enum_aliasmem(). Original code was correct
(This used to be commit cf11b43149)
2007-10-10 12:19:50 -05:00
Michael Adam
b3010b5d6b r22615: fix prototype
(This used to be commit 6999d578ae)
2007-10-10 12:19:50 -05:00
James Peach
a0f86157fe r22614: Only enable GNU-isms in the Makefile if we can be sure that the GNU
make we found is what will be run when the user invokes "make".
(This used to be commit e3802961c1)
2007-10-10 12:19:50 -05:00
Volker Lendecke
d02f4f4db7 r22613: Fix an uninitialized variable warning
(This used to be commit d4c5d5ffb3)
2007-10-10 12:19:50 -05:00
Jeremy Allison
f5d6c8e0d7 r22611: Fix from Jens Nissen <jens.nissen@gmx.net>. Fix bad
memory leak I introduced into acl code, also remove
redundent extra check for global_sid_System :

global_sid_System == S-1-5-18 which is already
included in the check for a domain of
global_sid_NT_Authority == S-1-5

Jeremy.
(This used to be commit 10649540ac)
2007-10-10 12:19:50 -05:00
Jeremy Allison
879081236d r22593: Finish doing the same for raw TALLOC.
Jeremy.
(This used to be commit aef3c262b7)
2007-10-10 12:19:50 -05:00
Jeremy Allison
09ba519eb4 r22592: Fix TALLOC_SIZE to be consistent.
Jeremy.
(This used to be commit 8044a6482c)
2007-10-10 12:19:49 -05:00
Jeremy Allison
56a5d05b8b r22590: Make TALLOC_ARRAY consistent across all uses.
That should be it....
Jeremy.
(This used to be commit 603233a98b)
2007-10-10 12:19:49 -05:00
Jeremy Allison
be8b0685a5 r22589: Make TALLOC_ARRAY consistent across all uses.
Jeremy.
(This used to be commit 8968808c3b)
2007-10-10 12:19:49 -05:00
Jeremy Allison
79de0ad946 r22588: Make all uses of TALLOC_MEMDUP consistent.
Jeremy.
(This used to be commit 8ad13718af)
2007-10-10 12:19:48 -05:00
Jeremy Allison
1e362c0e7f r22587: Ensure TALLOC_ZERO_ARRAY is consistent.
Jeremy.
(This used to be commit c3df5d08dd)
2007-10-10 12:19:47 -05:00
Jeremy Allison
6b605a9cd7 r22586: Add a modified version of Simo's patch.
Jeremy.
(This used to be commit 18f47f999d)
2007-10-10 12:19:47 -05:00
Jeremy Allison
61f95f1f97 r22585: Get us into a consistent state with TALLOC_ZERO_ARRAY also.
Jeremy.
(This used to be commit c622fb8536)
2007-10-10 12:19:47 -05:00
Jelmer Vernooij
84c37a1fe2 r22584: Don't hardcode specific Python version.
Patch by the Samba packaging team for Debian.
(This used to be commit 1d3f35941b)
2007-10-10 12:19:47 -05:00
Jelmer Vernooij
e3aed5a809 r22583: Support non-Linux GNU systems (such as Debians' GNU with FreeBSD kernel and
Hurd systems).

Patch by the Samba packaging team for Debian.
(This used to be commit 1aa64eb02c)
2007-10-10 12:19:46 -05:00
Jelmer Vernooij
811d0279c1 r22578: Remove python build directory and generated smbadduser.
Patch originally by the Debian packaging team for Samba.
(This used to be commit f46492a4db)
2007-10-10 12:19:46 -05:00
Jeremy Allison
138668d5d2 r22577: Change all of parse/*.c to use standard form. Fix some
marshalling bugs.
Jeremy.
(This used to be commit 3df99006f8)
2007-10-10 12:19:46 -05:00
Jeremy Allison
571845991e r22576: Fix marshalling bug in aliasmem.
Jeremy.
(This used to be commit 415c476f72)
2007-10-10 12:19:45 -05:00
Jeremy Allison
08a730e2ef r22574: Fix reply when we have no dfs shares.
Jeremy.
(This used to be commit f95bf093f9)
2007-10-10 12:19:45 -05:00
Jeremy Allison
71aa8a1ec2 r22573: Fix old bug mixing free() and talloc_free()
when the add_sid_to_array_XX code was moved
from malloc to talloc. Found running valgrind
and rpcclient. Needs merging for 3.0.25 final.
Jeremy.
(This used to be commit 8af56dbd00)
2007-10-10 12:19:45 -05:00
Jeremy Allison
4ab6a8ebb7 r22564: Move the _strict -> _zeronull functions into lib/util.c
and out of talloc at tridge's request.
Jeremy.
(This used to be commit da78488b86)
2007-10-10 12:19:45 -05:00
Volker Lendecke
e26dee48f0 r22561: Fix a memleak in lanman.c: Nobody would free the session_list.
Volker
(This used to be commit 5d428400f7)
2007-10-10 12:19:45 -05:00
Steve French
a01c1968b5 r22560: Clean up frees of realloc memory in mount.cifs (thanks to Alex for
reminding me how to use Valgrind).
(This used to be commit 4616c29b9f)
2007-10-10 12:19:45 -05:00
Jeremy Allison
9263287a36 r22555: Ensure our paranoid malloc functions return NULL on
size == 0 so we have a known behavior.
Jeremy.
(This used to be commit 27c0f29708)
2007-10-10 12:19:44 -05:00
Volker Lendecke
2724ce625c r22554: Fix an assumption that TALLOC_ARRAY(.., 0) != NULL.
Volker
(This used to be commit 1f15a8f371)
2007-10-10 12:19:44 -05:00
Volker Lendecke
2a5eee9de5 r22553: Fix the build
(This used to be commit 561f3c67f4)
2007-10-10 12:19:44 -05:00
Jeremy Allison
0fbbf8440a r22543: Fix bad call to talloc_strict (too few args).
Should fix build farm breakage.
Jeremy.
(This used to be commit efb43432b0)
2007-10-10 12:19:44 -05:00
Jeremy Allison
12ba88574b r22542: Move over to using the _strict varients of the talloc
calls. No functional changes. Looks bigger than it is :-).
Jeremy.
(This used to be commit f6fa3080fe)
2007-10-10 12:19:44 -05:00
Jeremy Allison
fdc0b87083 r22541: Added talloc_size_strict macro.
Jeremy.
(This used to be commit fcbfa2c991)
2007-10-10 12:19:43 -05:00
Jeremy Allison
f3cf873c81 r22540: Added _strict varients of the macro calls - added
prototypes.
Jeremy.
(This used to be commit 06b47f3d72)
2007-10-10 12:19:43 -05:00
Jeremy Allison
c07643fa18 r22539: Added _strict varients of the talloc calls to
return NULL on size == 0 varients.
Jeremy.
(This used to be commit 1283da1bf8)
2007-10-10 12:19:43 -05:00
Michael Adam
b851e8eb87 r22537: Use a (more speaking) macro when there is one.
(This used to be commit 2eec760154)
2007-10-10 12:19:43 -05:00
Volker Lendecke
322ca3b933 r22533: Use lib functions where we have them
(This used to be commit dc18ab2f34)
2007-10-10 12:19:43 -05:00
Michael Adam
59ac1167a6 r22529: Add implementation of HP-UX ACLs in the new vfs-module framework.
(This used to be commit aef5aad678)
2007-10-10 12:19:42 -05:00
Steve French
3e2f29eefd r22526: Support deep tree mounts after share (instead of having to specify
prepath)
(This used to be commit 0548dea6c7)
2007-10-10 12:19:42 -05:00
Günther Deschner
3e8283cf7c r22524: Fix memleak.
Guenther
(This used to be commit e55c52f654)
2007-10-10 12:19:42 -05:00
Günther Deschner
0d1c821700 r22511: Remove unused LDAPMessage.
Guenther
(This used to be commit 31a193b02a)
2007-10-10 12:19:41 -05:00
Gerald Carter
0ecd719499 r22509: Fix some memory corruption caused by calling free()
on talloc()'d memory when adding/removing members
from Local Groups.
(This used to be commit bade93ef9d)
2007-10-10 12:19:41 -05:00
James Peach
3dff331a1d r22507: Wrap the method of obtaining sockets to listen on.
(This used to be commit e027322b76)
2007-10-10 12:19:40 -05:00
Alexander Bokovoy
f4affb4382 r22505: Fix build
(This used to be commit cc38ffb9a4)
2007-10-10 12:19:40 -05:00
Jim McDonough
70806db06a r22504: Fix bug Jerry found during his tutorial. Sorry :-(
Allows authorized users (e.g. BUILTIN\Administrators members) to
set attributes on an account, particularly "user cannot change
password".

add become_root() around updating attributes, after checking that
access has been granted.
(This used to be commit b1ab360519)
2007-10-10 12:19:40 -05:00
Jeremy Allison
2ad66881df r22502: Fix bug #4536 - delete symlinks to a directory correctly.
Jeremy.
(This used to be commit dcc6517d9d)
2007-10-10 12:19:40 -05:00
Michael Adam
b93f78025d r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead of
WERR_BAD_FILE when all items have been successfully enumerated.
Besides seeming the reasonable code to return,
this is what I have seen from w2k3, w2k, wxp.
(This used to be commit e09e0d642d)
2007-10-10 12:19:39 -05:00
James Peach
c620832983 r22495: Create wrapper to hide the details of obtaining a set of sockets
to listen on.
(This used to be commit 29a16b2acb)
2007-10-10 12:19:39 -05:00
Jeremy Allison
0845fa4085 r22493: Fix horrible memory corruption bug with CIFS POSIX open/mkidr.
Found by SteveF + valgrind :-). Jerry - essential for rc3.
Jeremy.
(This used to be commit b01c1c4618)
2007-10-10 12:19:39 -05:00
Jeremy Allison
4742fa9366 r22492: Add objectid code.
Jeremy.
(This used to be commit d3df922038)
2007-10-10 12:19:39 -05:00
Jeremy Allison
7d859f04f2 r22491: Fix the build (3.0.25 and 3.0 are different here).
Jeremy.
(This used to be commit c34c291194)
2007-10-10 12:19:38 -05:00
Jeremy Allison
1ddcc5c06a r22490: Fix a couple of bugs found whist investigating CSC Vista issues.
Ensure we correctly NULL out allocation size fields. Allow
QFILEINFO on pipes (Vista bug ?). Jerry - don't automatically
merge for 3.0.25.
Jeremy.
(This used to be commit a275778152)
2007-10-10 12:19:38 -05:00
Michael Adam
992fac30a5 r22489: Add a deletedomgroup command to rpcclient (samr).
Corresponding to deletedomuser.

Michael
(This used to be commit 9775de56b8)
2007-10-10 12:19:38 -05:00
Günther Deschner
3ab204936e r22484: Check for the talloc_strdup to succeed.
Guenther
(This used to be commit 38b4fddf5d)
2007-10-10 12:19:38 -05:00
Günther Deschner
678ca586f0 r22483: Attempt to fix the build.
Guenther
(This used to be commit db499b515b)
2007-10-10 12:19:38 -05:00
Jeremy Allison
5e7174a2c8 r22481: Move check for non-mappable SIDs to after sid_to_uid,
sid_to_gid mapping, add LocalSystem to non-mappable
list.
Jeremy.
(This used to be commit 805f01464f)
2007-10-10 12:19:38 -05:00
Günther Deschner
2e0a7fc223 r22480: Remove accidentially comitted getpeereid hunks again.
Guenther
(This used to be commit 3ef6181696)
2007-10-10 12:19:38 -05:00
Günther Deschner
1ee9650a1d r22479: Add "net ads keytab list".
Guenther
(This used to be commit 9ec76c5427)
2007-10-10 12:19:37 -05:00
Gerald Carter
b9c4009037 r22473: Correct fix for setting a default compat tdb idmap backend.
Previous code would always fill in "idmap backend = tdb"
even if you defined idmap domains.  My fault.  I should
have tested the original patch more before committing.
(This used to be commit a60c3f6a5a)
2007-10-10 12:19:37 -05:00
Günther Deschner
655d2b5200 r22468: Fixing implicit declaration of krb5_set_default_tgs_ktypes (which is hidden by
KRB5_PRIVATE in MIT and doesn't exist on Heimdal).

Guenther
(This used to be commit 664db1cff6)
2007-10-10 12:19:37 -05:00
Günther Deschner
31982beaab r22467: Adding configure check for -Werror-implicit-function-declaration and use it in
-enable-developer.

Guenther
(This used to be commit 750156337e)
2007-10-10 12:19:36 -05:00
Günther Deschner
2713a9ca0e r22466: Fix build warning.
Guenther
(This used to be commit d6f259e918)
2007-10-10 12:19:36 -05:00
Günther Deschner
53ac6a5abf r22465: Last attempt to fix the build before dinner.
Guenther
(This used to be commit f6ade770bd)
2007-10-10 12:19:36 -05:00
Stefan Metzmacher
c5a93fd897 r22464: remove double code and use a function
metze
(This used to be commit aa28bcc466)
2007-10-10 12:19:35 -05:00
Günther Deschner
04724b8451 r22463: Add prototype.
Guenther
(This used to be commit 4984af2c66)
2007-10-10 12:19:35 -05:00
Günther Deschner
fa2756c944 r22461: Use ranged LDAP queries in lookup_usergroups_member() and start to optinmize
lookup_groupmem(). In the later, at least try to avoid those massive LDAP
dn_lookups by looking in the cache before.

Guenther
(This used to be commit eb1566869c)
2007-10-10 12:19:35 -05:00
Günther Deschner
56f6336fd4 r22460: Adding a generic ads_ranged_search() function.
Guenther
(This used to be commit b8828ea251)
2007-10-10 12:19:35 -05:00
Günther Deschner
8040fec0ac r22459: Adding ads_get_dn_from_extended_dn(), in preparation of making ranged LDAP
queries more generic. Michael, feel free to overwrite these and the following.

Guenther
(This used to be commit 0475b8eea9)
2007-10-10 12:19:35 -05:00
Volker Lendecke
2541e0d590 r22458: Fix a comment
(This used to be commit f5ccec4228)
2007-10-10 12:19:34 -05:00
Gerald Carter
da158ad6a2 r22447: Patch from Ying Li <ying.li2@hp.com> to default tdb idmap
plugin when neither idmap domains nor idmap backend have
been defined.
(This used to be commit 2fa12753da)
2007-10-10 12:19:34 -05:00
Gerald Carter
026852b47a r22444: * Validate a SID before trying to convert it to a uid/gid via the public
winbindd interface

* Add nss_info/*so files to the RHEL/Fedora packaging
(This used to be commit 1787fcb8c1)
2007-10-10 12:19:34 -05:00
James Peach
821bf2bd72 r22441: Add automatic dependency tracking. The dependency generation is
toolchain independent, but since there's no portable method for
doing makefile includes, we can actually use the dependencies with
GNU make. It's easy to add this for other makes, but I don't have
any to test.

This also moves as much m4 as possible into the m4 directory where
no-one has to look at it. AFAICT, there's no way to hide depcomp
in there too, which is unfortunate.
(This used to be commit aa14900f82)
2007-10-10 12:19:34 -05:00
Gerald Carter
d27d6e822e r22430: Add SID validate to sid2uid() and sid2gid() public entry points in winbindd
(This used to be commit 0890cb941e)
2007-10-10 12:19:34 -05:00
Simo Sorce
b304cabb44 r22425: Avoid to segfault if we only have the realm.
(This used to be commit ace1520270)
2007-10-10 12:19:34 -05:00
James Peach
8297933142 r22419: Update configure so that we only need one copy of os2_delete.c
(This used to be commit e5dd3bbf29)
2007-10-10 12:19:34 -05:00
James Peach
44f5211c17 r22418: Support running under launchd. We abstract the method of obtaining
sockets to listen on a little, because in the launchd case these
are provided for us. We also add an idle timeout so that a daemon
can exit after a period of inactivity.
(This used to be commit fc8589a337)
2007-10-10 12:19:33 -05:00
James Peach
8a22b1f0ea r22417: Refactor the various daemon run-mode options to make the semantics
of the various flags explicit.
(This used to be commit 19c929c633)
2007-10-10 12:19:33 -05:00
James Peach
41824de773 r22416: Remove precompiled headers on clean.
(This used to be commit 250028ef03)
2007-10-10 12:19:33 -05:00
James Peach
772ffe76fe r22413: Simplify the build rules for plugin modules. Add support for per-platform
exports files. Fix the shared library build pf pdb_ldap.
(This used to be commit b04dee02d1)
2007-10-10 12:19:32 -05:00
Michael Adam
956a5ce7d5 r22412: Add a "deletelocalgroup" subcommand to net sam.
Thanks to Karolin Seeger <ks@sernet.de>.
(This used to be commit 1499c50513)
2007-10-10 12:19:32 -05:00
Michael Adam
e95c34dc6b r22411: Fix the build:
Prototype of create_aio_ex_read, set_message and definition of
UNIXERROR have changed in r22389 and r22391? to require an additional
"inbuf" argument. Some places in smbd/aio.c had not been adapted.

This patch fixes the build.

Michael
(This used to be commit 9de1af6dc8)
2007-10-10 12:19:32 -05:00
Günther Deschner
04a70aaf1c r22402: Fix build warning.
Guenther
(This used to be commit bf9131fed3)
2007-10-10 12:19:32 -05:00
Michael Adam
90ad4eae89 r22401: Add bzr revision+nick support to mkversion.sh.
The plan is to actually synchronize with SAMBA_4_0's mkversion.sh,
which is more elaborate. But there are a few differences in
behaviour I still have to check. So I am cheching this here in for
a start...

Michael
(This used to be commit dec7e31f29)
2007-10-10 12:19:32 -05:00
Herb Lewis
80576572cc r22395: allow profiling level to be set on startup
(This used to be commit f8f51e8648)
2007-10-10 12:19:32 -05:00
James Peach
cd449e610c r22394: Remove test directory once we are finished.
(This used to be commit e718606295)
2007-10-10 12:19:31 -05:00
Simo Sorce
2d8fbef151 r22393: fix cut&paste error
(This used to be commit 70878d6985)
2007-10-10 12:19:31 -05:00
Simo Sorce
39888067e3 r22392: Remove leftover potentially segfaulty code.
Check we are online before actually trying to connect anywhere
(This used to be commit ff5e0b2986)
2007-10-10 12:19:30 -05:00
Jeremy Allison
0829e1ad1c r22391: Looks bigger than it is. Make "inbuf" available
to all callers of smb_setlen (via set_message()
calls). This will allow the server to reflect back
the correct encryption context.
Jeremy.
(This used to be commit 2d80a96120)
2007-10-10 12:19:30 -05:00
Gerald Carter
36da6cb584 r22390: Patchset sent to samba-technical to address the winbind
loop when allocating a new id for a SID:

auth_util.patch		Revert create_local_token() to
			the 3.0.24 codebase

idmap_type.patch	Have the caller fillin the
			id_map.xid.type field when
			resolving a SID so that if we allocate
			a new id, we know what type to use

winbindd_api.patch	Remove the WINBINDD_SIDS_TO_XIDS calls
			from the public winbindd interface
			for the 3.0.25 release

idmap_rid.patch		Cleanup the idmap_rid backend to not
			call back into winbindd to resolve
			the SID in order to verify it's type.
(This used to be commit 3b24dae9e7)
2007-10-10 12:19:30 -05:00
Jeremy Allison
dc90cd89a7 r22389: Start preparing for multiple encryption contexts in the
server. Allow server to reflect back to calling client
the encryption context that was sent.
Jeremy.
(This used to be commit b49e90335d)
2007-10-10 12:19:30 -05:00
Simo Sorce
20086f66cc r22388: clearer message, thanks David
(This used to be commit 7961476784)
2007-10-10 12:19:29 -05:00
Günther Deschner
9d29f385ea r22376: Make sure we use krb5 when we identify just an older heimdal lib (0.6.x)
Timur, please check.

Guenther
(This used to be commit f7ae237a7f)
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
3255daa188 r22366: sync lib/talloc/ with samba4
metze
(This used to be commit 7fab12b34a)
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
4c8dc9c11e r22364: sync lib/tdb/ with samba4
there's no code change here...

metze
(This used to be commit 562a9ce019)
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
d6ca327bd5 r22363: merge from samba4:
fix compiler warning

metze
(This used to be commit e9200b4475)
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
f2da00aadc r22362: fix the build on othersystems
metze
(This used to be commit 68a681038c)
2007-10-10 12:19:29 -05:00
Jeremy Allison
5cee3be014 r22358: Use gss error to NTSTATUS mapping function for errors.
Jeremy.
(This used to be commit 11fa0ca9e2)
2007-10-10 12:19:29 -05:00
Jeremy Allison
e8d19d5e1a r22355: Ensure we get good debug messages from gss_XX calls.
Jeremy.
(This used to be commit fe36fc79dd)
2007-10-10 12:19:28 -05:00
Jeremy Allison
f7fc540d84 r22354: Make client select krb5 encrpyt if krb5 already on.
Jeremy.
(This used to be commit 7b89a5de57)
2007-10-10 12:19:28 -05:00
Jeremy Allison
383cc1fa1c r22353: Fix bad #ifdefs.
Jeremy.
(This used to be commit 9173c846b1)
2007-10-10 12:19:28 -05:00
Jeremy Allison
d47868cb5e r22352: Wow - working gss SMB sealing !
Jeremy.
(This used to be commit abcb2a4b07)
2007-10-10 12:19:28 -05:00
Jeremy Allison
226d96337f r22351: Making progress in tests...
Jeremy.
(This used to be commit f1726e04eb)
2007-10-10 12:19:28 -05:00
Jeremy Allison
1adbf4af06 r22350: Add some helpful debug messages.
Jeremy.
(This used to be commit bf2e6bd82d)
2007-10-10 12:19:28 -05:00
Jeremy Allison
c5fb215efb r22349: Fix missing ) in #else path.
Jeremy.
(This used to be commit 0f5680adcf)
2007-10-10 12:19:28 -05:00
Simo Sorce
d7c8710a1d r22348: 3_0 as well
(This used to be commit ad57434faf)
2007-10-10 12:19:28 -05:00
Jeremy Allison
093bcd7df9 r22345: Only use new krb5 OID.
Jeremy.
(This used to be commit 1a46d2dcb9)
2007-10-10 12:19:27 -05:00
Jeremy Allison
8e1b82e7ac r22344: Correctly create sub-struct for GSS encryption.
Jeremy.
(This used to be commit 197c90ec78)
2007-10-10 12:19:27 -05:00
Simo Sorce
01be4914b3 r22343: Commit to 3_0 as well after adapting the patch.
(tdb_delete_bystring instead of tdb_delete is used here)
(This used to be commit ee40cead09)
2007-10-10 12:19:27 -05:00
Gerald Carter
b066668b74 r22340: Fix another segfault in idmap_ldap.c caused by setting the iterator
LDAPMessage * to NULL on each loop rotation.
(This used to be commit 356dd0dd3a)
2007-10-10 12:19:27 -05:00
Jeremy Allison
9812a7e32e r22327: Finish the gss-spnego part of the seal code. Now
for testing....
Jeremy.
(This used to be commit 1c1f5360b6)
2007-10-10 12:19:27 -05:00
Gerald Carter
8a210af339 r22321: BUG 4509: Makefile fix linking the sfu.so and rfc2307.so
plugins in $libdir/nss_info to idmap/ad.so
(This used to be commit 086316d62e)
2007-10-10 12:19:26 -05:00
Lars Müller
fdfe5301fa r22320: Be more careful and check for the euid instead of the uid.
Thx for the hint James!
(This used to be commit 72be9766a9)
2007-10-10 12:19:26 -05:00
Lars Müller
ffc03ada71 r22318: If we're running as non root we might not be able to dump the core file
to the corepath.

Even the chdir() will fail if the LOGFILEBASE path is set 0700.

If the currrent user doesn't have the permission to create the core file
we end with:
   unable to change to <LOGFILEBASE>
   refusing to dump core

The alternative would be to change the permissions of the directory.
But taht would not ensure core dumps are working out of the box.
(This used to be commit 0814a3acbe)
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
123e721590 r22317: add tdb_ prefix to non static function
metze
(This used to be commit 56e31d60c6)
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
6f9f5bd745 r22316: merge from samba4:
this function should be static

metze
(This used to be commit f722fd32da)
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
97079ab953 r22315: move tdbback.c content into tdbbackup.c
and make the functions static.

also use libreplace headers in tdbbackup.c

metze
(This used to be commit 1ca12b1c9e)
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
f1a0e7dc75 r22314: use libreplace headers
metze
(This used to be commit d757cdc092)
2007-10-10 12:19:25 -05:00
Stefan Metzmacher
f718428845 r22313: as discussed with simo:
remove the only usage of backup_tdb() in samba3.
As backup_tdb() will go completely soon.

metze
(This used to be commit 363d1d676c)
2007-10-10 12:19:25 -05:00
Stefan Metzmacher
cacb371dbd r22304: remove unused stuff completely to fix the build, sorry
metze
(This used to be commit 4d53100e3c)
2007-10-10 12:19:25 -05:00
Stefan Metzmacher
5064a6c973 r22302: fix the build when no shared-library support is detected
metze
(This used to be commit 9ad4098910)
2007-10-10 12:19:25 -05:00
Stefan Metzmacher
597fd754d7 r22301: remove unused vars
metze
(This used to be commit 2e6e4235da)
2007-10-10 12:19:25 -05:00
Stefan Metzmacher
a8c6250274 r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
metze
(This used to be commit 8a7d2e633b)
2007-10-10 12:19:24 -05:00
Jeremy Allison
2da54a66b9 r22291: Fix off-by-one in tconX parsing.
Jeremy.
(This used to be commit bc6ac4feac)
2007-10-10 12:19:24 -05:00
Jeremy Allison
e459831b5a r22285: Allow arbitrary bases in int and ulong parsing.
Jeremy.
(This used to be commit c1f1949ff1)
2007-10-10 12:19:24 -05:00
Gerald Carter
615f025654 r22283: Remove very old bug where we assigned the online mode of
the domain to queried to our own domain.
(This used to be commit 2abeec5768)
2007-10-10 12:19:24 -05:00
Jeremy Allison
b1842fd294 r22282: Fix last few name -> servicename changes.
Jeremy.
(This used to be commit f5c22f26f7)
2007-10-10 12:19:24 -05:00
Stefan Metzmacher
5a22df2a5c r22280: merge from samba4:
add a lot more detailed strtoll() and strtoull() tests

metze
(This used to be commit 737b445007)
2007-10-10 12:19:24 -05:00
Stefan Metzmacher
e9623ecb24 r22277: __location__ is defined in libreplace now
metze
(This used to be commit 9b45075a26)
2007-10-10 12:19:24 -05:00
Jeremy Allison
8e4945bc15 r22276: Fix name -> servicename in messages.c
Jeremy.
(This used to be commit cc4face3bc)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
004860e1cc r22274: merge from samba4:
- provide __LINESTR__ macro
- add __STRINGSTRING() macro to really create a string of __LINE__
- fix __location__ macro

metze
(This used to be commit 5ca1854644)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
48e29ff642 r22271: merge from samba4:
provide __location__ in replace.h

and see how the build-farm likes this simpler version

metze
(This used to be commit 3f87165771)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
d917f708e1 r22268: merge from samba4:
protect #define __location__ with an #ifndef

metze
(This used to be commit 4c93c05542)
2007-10-10 12:19:23 -05:00
Jeremy Allison
74a07edb50 r22266: Fix bug #4512 - we were returning a volume label greater than
32 unicode chars. Windows XP doesn't like that :-).
Jeremy
(This used to be commit e59b5276b5)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
4341be4593 r22264: merge from samba4:
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.

metze
(This used to be commit 66b0a6cc51)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
3678d69b82 r22262: fix the build on systems without GSS_C_NT_HOSTBASED_SERVICE
metze
(This used to be commit 402704b629)
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
b97c8658d5 r22254: merge from samba4:
- make the strtoll tests more verbose
- add initial strtoull tests

metze
(This used to be commit 9865d3165d)
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
cd8f2e5c57 r22252: merge from samba4:
add prototype of setenv

metze
(This used to be commit 42ccfaf5e5)
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
4a245a1580 r22249: move tdb code to lib/tdb/ as in samba4
metze
(This used to be commit c7def92a9c)
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
38bbe9a5da r22247: merge from samba4:
only test strtoll once

metze
(This used to be commit 17088fd644)
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
9cda609e86 r22244: merge from samba4:
remove useless printf's

metze
(This used to be commit cf7c57eae5)
2007-10-10 12:19:22 -05:00
Stefan Metzmacher
fb72736e6e r22240: merge from samba4:
use strlcpy instead of strcpy to make the IBM checker happy

metze
(This used to be commit fe4be25c30)
2007-10-10 12:19:22 -05:00
Simo Sorce
0dd0aab2bc r22230: Let's just cast here, the 2 calls have different allocation mechanisms.
We just let domname and name hang on the mem ctx until the call returns,
and the context will be destroyed.

Simo.
(This used to be commit c38d8396c5)
2007-10-10 12:19:21 -05:00
Stefan Metzmacher
8b3ea388bc r22229: discard_const_p is in lib/replace now
metze
(This used to be commit 8dea4ebe98)
2007-10-10 12:19:21 -05:00
Stefan Metzmacher
f5b7197625 r22227: merge from samba4:
move discard_const macros to librelace

metze
(This used to be commit 8f4a39127f)
2007-10-10 12:19:21 -05:00
Stefan Metzmacher
0ca5717a9a r22224: merge from samba4:
make comparing of struct tm more verbose and portable

metze
(This used to be commit 29cbd75f22)
2007-10-10 12:19:21 -05:00
Stefan Metzmacher
2f1aafa2a7 r22221: merge from samba4:
- libreplace unsetenv() and strptime() replacements

metze
(This used to be commit 057c1c04d0)
2007-10-10 12:19:21 -05:00
Volker Lendecke
3e819bd22c r22214: Fix incompatible pointer type warnings. Simo, please check and merge to 3_0_25
if appropriate.

Volker
(This used to be commit 6a4f6c5177)
2007-10-10 12:19:20 -05:00
Volker Lendecke
a633b42592 r22213: We can't use become_root() here, as it does DEBUG()
itself. become_root_uid_only did not :-)

Revert 21868, we need to find a better way.

Volker
(This used to be commit 629f966714)
2007-10-10 12:19:20 -05:00
Jeremy Allison
282018a366 r22212: Cope with signature errors on sessionsetupX logins
where the server just reflects our signature back
to us. Allow the upper layer to see the real error.
Jeremy.
(This used to be commit 6cf0b93b1d)
2007-10-10 12:19:20 -05:00
Jeremy Allison
731df24607 r22211: Don't return a value from void functions !
Jeremy.
(This used to be commit 1dd8d3a723)
2007-10-10 12:19:20 -05:00
Jeremy Allison
91be3a9ed6 r22210: Fix typo in testing for non-centry entries.
Jeremy.
(This used to be commit b89ecbcac6)
2007-10-10 12:19:20 -05:00
Jeremy Allison
c7d136dcac r22209: Fix the storage of time_t -> make it 64 bits (use the
same load/store function as NTTIME). Add a version number
string to the winbindd cache so we can tell if it needs
upgrading. THIS WILL DELETE ANY EXISTING winbindd_cache.tdb
on first startup regardless of offline auth status. Once
this is done we're in good shape though.
Jeremy.
(This used to be commit c52c7f91af)
2007-10-10 12:19:19 -05:00
Jeremy Allison
a2bab163be r22207: Fill in the validation functions. Now to test...
Jeremy.
(This used to be commit fc2b9e860e)
2007-10-10 12:19:19 -05:00
Jeremy Allison
127cc73034 r22206: Added boilerplate to be filled in for other validation functions.
Jeremy.
(This used to be commit 9be463eb0c)
2007-10-10 12:19:19 -05:00
Jeremy Allison
23e575c4b7 r22205: Add some flesh to the bones of the cache validation code.
Jeremy
(This used to be commit b773ea2c8a)
2007-10-10 12:19:19 -05:00
Simo Sorce
59523f55a9 r22204: Workaround to quickly close bug #4508
This hack makes thing work, but we will need to try again to
make the getpw* calls fully async, that's the real fix.
(This used to be commit 2552859b3d)
2007-10-10 12:19:19 -05:00
Jeremy Allison
9f41ff47d0 r22202: Volker is clever :-). Use TDB_NOMMAP to prevent any wild pointer
problems when validating the winbindd cache. Wish I'd have
thought of that.
Jeremy.
(This used to be commit 6b0a8cbbb8)
2007-10-10 12:19:19 -05:00
Jeremy Allison
a6fa4b4e56 r22181: Fix for EISCON in open_any_socket_out from William Jojo
for bug #3632.
Jeremy.
(This used to be commit 7979a5a350)
2007-10-10 12:19:19 -05:00
Gerald Carter
d1491cc500 r22173: BUG 4491, 4501: Additional fixes for protecting against
crashes in allocate_id().

BUG 4501: Fix segv in idmap_ad caused by resetting the
entry iterator when parsing search results.
(This used to be commit bd6ebbfb9f)
2007-10-10 12:19:18 -05:00
Alexander Bokovoy
59f23e9319 r22172: FSCTL_RECALL_FILE is 0x90117 according to my traces. Record it here.
(This used to be commit f36bc61d17)
2007-10-10 12:19:18 -05:00
Jeremy Allison
f61cb37989 r22164: Fix missing lock count release in transaction cancel.
Found by Taj Khattra <taj.khattra@gmail.com>.
Jeremy.
(This used to be commit a014a6c30d)
2007-10-10 12:19:18 -05:00
Jeremy Allison
62683646dc r22163: Pure reformatting. I hate 4 space tabstops :-).
Jeremy.
(This used to be commit 99abe96b2b)
2007-10-10 12:19:18 -05:00
Gerald Carter
330985ebb5 r22159: BUG 4501 (second half of fix): Just disable the
uid/gid allocation if no idmap alloca backend has been
defined and we are not using a 3.0.24 idmap backend
compatible configuration.
(This used to be commit 0b700456f4)
2007-10-10 12:19:18 -05:00
Gerald Carter
43401cf93b r22158: BUG 4501 (partial): Fix a crash caused by not using the
nss_info_{rfc2307,sfu} plugin with idmap_ad.
(This used to be commit f640f056bf)
2007-10-10 12:19:17 -05:00
Jeremy Allison
d1ec690972 r22157: Fix bug #3634 - stop nmbd segfaulting with bad interface line.
Jeremy.
(This used to be commit c3e2207cb4)
2007-10-10 12:19:17 -05:00
Jeremy Allison
e5428ef189 r22155: Fixed warning #4498 from jason@ncac.gwu.edu.
Jeremy.
(This used to be commit f1b22c9527)
2007-10-10 12:19:17 -05:00
Jeremy Allison
4e0a6bd9a7 r22154: Make struct smbdb_ctx an opaque pointer so users of the API
don't need to have tdb.h.
Jeremy.
(This used to be commit 512542c90a)
2007-10-10 12:19:17 -05:00
Stefan Metzmacher
78c57f59ac r22153: fix LDAP SASL "GSSAPI" bind against w2k3, this isn't critical
because we try "GSS-SPNEGO" first and all windows version support
that.

metze
(This used to be commit 34a5badbde)
2007-10-10 12:19:17 -05:00
Stefan Metzmacher
1ec9de1104 r22151: remove netgr functions from libreplace they're not used
in samba4 currently and samba3 has explicit configure checks for them.

should fix bug #4496

metze
(This used to be commit 7f61b3f009)
2007-10-10 12:19:17 -05:00
Gerald Carter
1790c67780 r22149: BUG 4500: patch from Jorge Santos <jorge_a_santos@hotmail.com>
to fix compile bug ni quotas.c (typo calling unbecome_root()).
(This used to be commit 22d550d62b)
2007-10-10 12:19:16 -05:00
Jim McDonough
d6d35eab6e r22148: Fix gpfs module on posix-acl test. Adds gpfsacl_sys_set_fd (calls
_file).  Thanks to Gomati Mohanan.
(This used to be commit 859269c949)
2007-10-10 12:19:16 -05:00
Volker Lendecke
b61fac6742 r22147: Next try
(This used to be commit 42f4232155)
2007-10-10 12:19:16 -05:00
Volker Lendecke
d442cca230 r22146: Attempt to fix the build
(This used to be commit 825255c760)
2007-10-10 12:19:16 -05:00
Jeremy Allison
a098724734 r22145: Fix bug #4494 - reported by Kevin Jamieson <bugzilla@kevinjamieson.com>.
If returning a mapped UNIX error from sendfile, don't call chain_reply.
Jeremy.
(This used to be commit 38404c990d)
2007-10-10 12:19:16 -05:00
Volker Lendecke
a40df6f92d r22135: Check in most of Michael Adam's net conf utility. A good share of this patch
is moving functions around to fix some linker dependencies for the registry.

Michael, I've renamed your auth_utils2.c to token_utils.c.

Thanks!

Volker
(This used to be commit 9de16f25c1)
2007-10-10 12:19:16 -05:00
Jeremy Allison
4838055e5f r22132: I hate inefficiency. Don't call conv_str_size()
on every pread/sendfile call, initialize these
variables in an allocated struct at connection
time and just refer to them directly.
Jeremy.
(This used to be commit 85df3fca68)
2007-10-10 12:19:15 -05:00
Jeremy Allison
6a3e72aa69 r22129: Fix the nttrans create extended response for pipes
and files (tested with Win32 code). Bug #4404 should
now be dead :-).
Jeremy.
(This used to be commit 40a86a5666)
2007-10-10 12:19:15 -05:00
Jeremy Allison
2ca369e0a6 r22128: Fix the pipe open response with EXTENDED_RESPONSE_REQUIRED
set. Only the NTTrans create left to fix for csc.
Jeremy.
(This used to be commit 7856db9fce)
2007-10-10 12:19:15 -05:00
James Peach
8c34aab008 r22127: Wrap the AC_TRY_RUN detection for Linux getgrouplist in an
AC_CACHE_CHECK, so it can be cross-compiled.
(This used to be commit f9fb07d2f9)
2007-10-10 12:19:15 -05:00
Volker Lendecke
d1103534ba r22126: Fix a bogus uninitialized variable warning
(This used to be commit 3be234effa)
2007-10-10 12:19:15 -05:00
Volker Lendecke
4570f1c52a r22125: Fix a warning
(This used to be commit 1c0ceb5fe2)
2007-10-10 12:19:14 -05:00
Jeremy Allison
8710c0ddd2 r22124: Wow - NTCreateX sets the word count to 42, but returns 50 on
the wire. Strange.... But now we're returning Windows compatible
extended info. Next to fix the pipe returns and NTTrans Creates.
Jeremy.
(This used to be commit 57e46f2f80)
2007-10-10 12:19:14 -05:00
Jeremy Allison
bd472a542a r22123: Try and fix the csc (#4404) bug by supporting the extended
response to NTCreateX - need to fix this also for
pipe open and NTTransCreate as well so this isn't
finished.
Jeremy.
(This used to be commit be742f2481)
2007-10-10 12:19:14 -05:00
Jeremy Allison
bca29ddbba r22122: Start to fix csc issue with Vista. Make smbd support
the extended 7 word response for tconX rather than the
3 word one we supported previously.
Jeremy.
(This used to be commit 137953226a)
2007-10-10 12:19:14 -05:00
Jeremy Allison
b86758ebcc r22113: Fix core dump when configfile in same directory.
From Steven Danneman <steven.danneman@isilon.com>.
Jeremy.
(This used to be commit 572c418b04)
2007-10-10 12:19:14 -05:00
Jeremy Allison
725fcf3461 r22112: Fix memleak pointed out by Steven Danneman <steven.danneman@isilon.com>.
Jeremy.
(This used to be commit 7c45bd3a47)
2007-10-10 12:19:14 -05:00
Jeremy Allison
4c6dfcf954 r22111: Allow readahead params to use size suffixes as K,M, etc.
Jeremy.
(This used to be commit e296f07e1d)
2007-10-10 12:19:13 -05:00
Gerald Carter
ccb99cafa7 r22110: don't cache the S-1-22-{1,2} domain SID/uig/gid lookups in idmap_cache
(This used to be commit adfc2d3165)
2007-10-10 12:19:13 -05:00
Simo Sorce
ca70c3cde7 r22109: Readonly is automatically set in the generic init code, let's just log the fact there
and remove the specific, but redundant, code in idmap_ad.c
(This used to be commit f127803734)
2007-10-10 12:19:13 -05:00
Jeremy Allison
d4f1543335 r22108: Fix from <don.mccall@hp.com> to try and fix the HPUX builds.
Jeremy.
(This used to be commit 4de297112b)
2007-10-10 12:19:13 -05:00
James Peach
fc9f6d6087 r22107: Fix typo.
(This used to be commit fd056b2426)
2007-10-10 12:19:13 -05:00
Jeremy Allison
7ef93224ee r22106: Fix the module name - it's vfs_readahead not vfs_linux_readahead.
Jeremy.
(This used to be commit bc2b6e3f32)
2007-10-10 12:19:13 -05:00
Jeremy Allison
d946a78dde r22105: Added vfs_readahead module that appears to do wonderful things
for copying files from Samba when using Windows Vista Windows
explorer.... :-). By default if you add this I can go on my
vmware sessions from 7MB/sec to 12MB/sec (+1 extra MB/sec if
I turn sendfile on).
Jeremy.
(This used to be commit 97fdd67e83)
2007-10-10 12:19:13 -05:00
Gerald Carter
a1e72969d5 r22104: BUG 4439: Fix the object picket on x64 WIndopws XP/2003.
Enable the DsRoleGetPrimaryDomainInfo() server code.
Tested by Win2000/XP/2003/Vista (x86) and WinXP (x64)
(This used to be commit eab9ca7e7d)
2007-10-10 12:19:12 -05:00
Lars Müller
ab8bbffd65 r22103: No code change. This is a spring time end of line clesnup checkin.
(This used to be commit 3ae99e5924)
2007-10-10 12:19:12 -05:00
Lars Müller
a6209ac56a r22102: Remove obsoleted SHLIBS_PROGS from {Makefile,configure}.in.
As NSS_MODULES is added to the all rule the resulting set of binaries
are the same.
(This used to be commit 3bebb5f4c1)
2007-10-10 12:19:12 -05:00
Lars Müller
0fea15acb3 r22099: Revert parts of revision 22056 as proto_exists is not required by
@WINBIND_NSS@, bin/pam_winbind.@SHLIBEXT@, and bin/pam_smbpass.@SHLIBEXT@.
(This used to be commit 641edac6ec)
2007-10-10 12:19:12 -05:00
Jeremy Allison
826d6e4b7f r22097: Add detection for linux readahead() syscall.
Jeremy.
(This used to be commit 4e3232aad4)
2007-10-10 12:19:12 -05:00
Jeremy Allison
bc45c82904 r22096: become_root_uid_only() is unneeded - it's only used in
messages.c. Refactor to use become_root() instead and
make it local to messages.c
Jeremy.
(This used to be commit f3ffb3f984)
2007-10-10 12:19:11 -05:00
Gerald Carter
90dc261315 r22095: BUG 4484: Add more checks to set %a for Vista clients (based on absence of native OS and Lanman strings in the session setup request)
(This used to be commit e5c9fc937d)
2007-10-10 12:19:11 -05:00
James Peach
74cfa0fdce r22094: Clarify that SMB_VFS_LOCK should not be used to get lock status.
(This used to be commit 395fd99edb)
2007-10-10 12:19:10 -05:00
Stefan Metzmacher
14ac7712f3 r22093: send also the correct OID_KERBEROS5 not only the broken
OID_KERBEROS_OLD one.

metze
(This used to be commit 294c69334f)
2007-10-10 12:19:10 -05:00
Stefan Metzmacher
eceb926df9 r22092: - make spnego_parse_auth_response() more generic and
not specific for NTLMSSP
- it's possible that the server sends a mechOID and authdata
  if negResult != SPNEGO_NEG_RESULT_INCOMPLETE, but we still
  force the mechOID to be present if negResult == SPNEGO_NEG_RESULT_INCOMPLETE

metze
(This used to be commit e9f2aa22f9)
2007-10-10 12:19:10 -05:00
Volker Lendecke
bcab9254cc r22091: Fix an uninitialized variable warning
(This used to be commit a6e1e39f1d)
2007-10-10 12:19:10 -05:00
Jeremy Allison
7a70d9cc87 r22080: Fix directory recycle module bug #4486.
Jeremy.
(This used to be commit 17b1d11bbb)
2007-10-10 12:19:10 -05:00
Jeremy Allison
4899c6b806 r22079: Tsk, tsk, Metze didn't compile before check-in :-).
Merge the memory leak fix (with fix :-) to 3.0.25.
Jeremy.
(This used to be commit ab3150fe4e)
2007-10-10 12:19:09 -05:00
Stefan Metzmacher
98c300ab90 r22078: fix memory leak in not often used code, we only use it if the server
doesn't support GSS-SPNEGO in SASL

can someone please review this, maybe it's also for 3.0.25

metze
(This used to be commit 8c6930b701)
2007-10-10 12:19:09 -05:00
Andrew Bartlett
23d3a1956b r22071: Make the error message for incorrect use of '-c' show the parameter as used.
This means that smbpasswd -c user (which in htpasswd creates a new file)
and smbpasswd -c /not/my/smb.conf should give errors an admin will
think to chase down.

Andrew Bartlett
(This used to be commit 721375e14c)
2007-10-10 12:19:09 -05:00
Gerald Carter
06ec19e2fb r22069: BUG 4447: Fix compile failure on AIX 5.2 (patch from William Jojo <jojowil@hvcc.edu>)
(This used to be commit c1cb6d059b)
2007-10-10 12:19:09 -05:00
Stefan Metzmacher
f5d3d29f72 r22067: - fix --with-fhs, where confdir is set to \${sysconfdir}
but sysconfdir wasn't defined in our Makefile
- add localstatedir for completeness

metze
(This used to be commit a70af6d457)
2007-10-10 12:19:09 -05:00
Gerald Carter
3bdd0e3650 r22066: Ensure that winbind can resolve SIDs in the S-1-22-{1,2}
domain to a uid.gid using the idmap_passdb backend.
(This used to be commit fc1aeee52d)
2007-10-10 12:19:09 -05:00
Jeremy Allison
97e3cb896f r22065: First logic change I've found :-(. We were being too
restrictive about strings being NULL. If an info level
doesn't use a subformat the subformat string may be
missing (null). Add debug statements to help track
this.
Jeremy
(This used to be commit 70875f92a2)
2007-10-10 12:19:08 -05:00
Jeremy Allison
cab91684e5 r22064: Fix the DFS code to work better with Vista clients. Allow
"host msdfs = true" to be set in the [global] section
and allow Vista to see shares with "msdfs root = yes"
and "msdfs root = no" off the same server. Down
to an error message really :-).
Jeremy.
(This used to be commit 1a0f69bb21)
2007-10-10 12:19:08 -05:00
Jeremy Allison
7f8d89bc54 r22062: Fix the parsing of info level 3. Flags is not a flags
field, but an offset. Fixed 64-bit display of ACLs on
printers.
Jeremy.
(This used to be commit 0c8949ff5d)
2007-10-10 12:19:07 -05:00
Gerald Carter
01c8809f76 r22061: Fix the krb5 user ticket refresh event timeout in winbindd
(This used to be commit 4a99b89618)
2007-10-10 12:19:07 -05:00
Jeremy Allison
9b807d4f87 r22060: Fix for AIX quotas from Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
Jeremy.
(This used to be commit 8d95cdf8c0)
2007-10-10 12:19:07 -05:00
Volker Lendecke
2498a973ac r22059: Over-allocate and NULL out 100 bytes for lanman.c.
Volker
(This used to be commit 0eea6b84ce)
2007-10-10 12:19:06 -05:00
Günther Deschner
f1ab10b2ec r22058: Add test_nss_modules to check NSS modules for unresolved symbols.
Guenther
(This used to be commit 21d092f4f9)
2007-10-10 12:19:06 -05:00
Günther Deschner
21024aa589 r22056: Adding some missing proto_exists calls (for PAM and NSS modules)
Guenther
(This used to be commit 04705aa190)
2007-10-10 12:19:06 -05:00
Jelmer Vernooij
0389cad7c4 r22055: Port the endpoint mapper (and functions it requires) to Samba 3.
(This used to be commit ad98126187)
2007-10-10 12:19:06 -05:00
Stefan Metzmacher
4432df38ee r22054: merge from samba4:
remove broken samba3 specific stuff from tdbtool

metze
(This used to be commit 9b34cd8d89)
2007-10-10 12:19:06 -05:00
Stefan Metzmacher
c1ecf3bda3 r22051: use libreplace headers
metze
(This used to be commit 1017ca3eaa)
2007-10-10 12:19:06 -05:00
Jeremy Allison
afd637e926 r22050: Fix a couple of off-by-one errors in the rap
call patch. Jerry, this works now for displaying
shares on Win9x (and hopefully everything else
as well :-).
Jeremy.
(This used to be commit 728a4cc713)
2007-10-10 12:19:06 -05:00
Jeremy Allison
d2a57b6393 r22049: HPUX build fixes from <don.mccall@hp.com>.
Jeremy.
(This used to be commit b70af25e85)
2007-10-10 12:19:05 -05:00