tprouty/samba.git
16 years agor20329: Fix a winbindd crash bug. If someone pulls
Jeremy Allison [Sat, 23 Dec 2006 00:17:15 +0000 (00:17 +0000)]
r20329: Fix a winbindd crash bug. If someone pulls
the network cable out of the machine *exactly*
after the init_dc_connect() call in cm_connect_sam()
or cm_connect_lsa() call succeeded but before any
of the other calls fail, and they have debug level
10 set in the log, then we'd crash due to dereferencing
a now NULL pointer (conn->cli gets set to NULL when
the init_dc_connect() call called from cm_get_schannel_dcinfo()
fails). Yes, before you ask this *did* happen on a
customer site :-).
Jeremy.

16 years agor20313: Make trans2_mkdir also go through open_directory for all the fancy inherit_acl
Volker Lendecke [Thu, 21 Dec 2006 22:35:10 +0000 (22:35 +0000)]
r20313: Make trans2_mkdir also go through open_directory for all the fancy inherit_acl
stuff & friends.

Survives raw-mkdir. I'll activate that tomorrow when all build farm machines
have picked up the changed samba4 torture test.

Volker

16 years agor20312: Fix a memleak
Volker Lendecke [Thu, 21 Dec 2006 22:30:21 +0000 (22:30 +0000)]
r20312: Fix a memleak

16 years agor20310: We've checked for EA's and support for them further up already.
Volker Lendecke [Thu, 21 Dec 2006 21:30:11 +0000 (21:30 +0000)]
r20310: We've checked for EA's and support for them further up already.

Volker

16 years agor20304: Smaller fixes for pam_winbind:
Günther Deschner [Thu, 21 Dec 2006 13:31:23 +0000 (13:31 +0000)]
r20304: Smaller fixes for pam_winbind:

* fail on invalid credential flags in pam_sm_setcred
* parse config file for pam_sm_acct_mgmt and pam_sm_open_session

Guenther

16 years agor20296: If we're going to overwrite krb5.conf
Jeremy Allison [Thu, 21 Dec 2006 00:43:21 +0000 (00:43 +0000)]
r20296: If we're going to overwrite krb5.conf
only do it for our primary domain.
Jeremy.

16 years agor20290: Remove unused call
Simo Sorce [Wed, 20 Dec 2006 19:05:07 +0000 (19:05 +0000)]
r20290: Remove unused call

16 years agor20289: IDMAP is part of winbind but not the main process.
Simo Sorce [Wed, 20 Dec 2006 17:56:26 +0000 (17:56 +0000)]
r20289: IDMAP is part of winbind but not the main process.
Make sure we route all request to remote DCs via the main process
so that IDMAP can correctly reuse DC connections and use the
async interface.

This fixes also idmap_nss so that it is able to resolve local
group names (requires patch on the samba dc earlier committed
to SAMBA_3_0 to make it resolve both the mapped and the unmapped
name).

Simo.

16 years agor20287: Allow a NULL sid when setting up the list of trusted domains.
Gerald Carter [Wed, 20 Dec 2006 16:57:10 +0000 (16:57 +0000)]
r20287: Allow a NULL sid when setting up the list of trusted domains.

16 years agor20279: Fix winbind segfault in winbindd_getsidaliases.
Günther Deschner [Wed, 20 Dec 2006 14:23:41 +0000 (14:23 +0000)]
r20279: Fix winbind segfault in winbindd_getsidaliases.

Jeremy: sidstr formerly could be NULL (when num_aliases was 0), since we
strdup here it needs to exist.

Guenther

16 years agor20273: Map KRB5_KDCREP_SKEW to NT_STATUS_TIME_DIFFERENCE_AT_DC.
Günther Deschner [Wed, 20 Dec 2006 10:54:09 +0000 (10:54 +0000)]
r20273: Map KRB5_KDCREP_SKEW to NT_STATUS_TIME_DIFFERENCE_AT_DC.

This gives much nicer error messages when failing to join due to clock
skew.

Guenther

16 years agor20271: Fix the build
Volker Lendecke [Wed, 20 Dec 2006 07:38:58 +0000 (07:38 +0000)]
r20271: Fix the build

16 years agor20270: Even with the dual daemon mode the parent winbindd
Jeremy Allison [Wed, 20 Dec 2006 04:50:46 +0000 (04:50 +0000)]
r20270: Even with the dual daemon mode the parent winbindd
still needs to contact the DC's for non async requests
like enumerate users/groups etc. Now that online
DC detection is tied to async events we must enable
the processing of events in the main loop of winbindd.
Finally got rid of the last hard coded domain->initialized = 1
code in init_child_recv() - now all domain->initialized = True
gets done only in the connection manager code when either
we're online and have spoken to the DC or are offline and
we know we can't talk to the DC.
Jeremy.

16 years agor20269: merge -r20264:20267 from SAMBA_3_0_24
Herb Lewis [Wed, 20 Dec 2006 01:10:04 +0000 (01:10 +0000)]
r20269: merge -r20264:20267 from SAMBA_3_0_24
more no previous prototype warnings

16 years agor20268: merge -r 20261:20263 from samba_3_0_24
Herb Lewis [Wed, 20 Dec 2006 01:07:21 +0000 (01:07 +0000)]
r20268: merge -r 20261:20263 from samba_3_0_24
get rid of previous prototype warnings

16 years agor20264: Two lines above this we just checked if (fsp->is_directory) ...
Volker Lendecke [Tue, 19 Dec 2006 22:13:10 +0000 (22:13 +0000)]
r20264: Two lines above this we just checked if (fsp->is_directory) ...

16 years agor20261: merge 20260 from samba_3_0_24
Herb Lewis [Tue, 19 Dec 2006 20:16:52 +0000 (20:16 +0000)]
r20261: merge 20260 from samba_3_0_24
clean up a bunch of no previous prototype warnings

16 years agor20257: Hey, change_owner_to_parent is now static :-)
Volker Lendecke [Tue, 19 Dec 2006 18:08:51 +0000 (18:08 +0000)]
r20257: Hey, change_owner_to_parent is now static :-)

16 years agor20255: Activate BASE-SAMBA3ERROR in the build farm
Volker Lendecke [Tue, 19 Dec 2006 18:02:24 +0000 (18:02 +0000)]
r20255: Activate BASE-SAMBA3ERROR in the build farm

16 years agor20254: The pam_chauthtok needs to go through the async interface as well.
Günther Deschner [Tue, 19 Dec 2006 17:35:47 +0000 (17:35 +0000)]
r20254: The pam_chauthtok needs to go through the async interface as well.
This fixes pam password changes in the online case.

Guenther

16 years agor20253: Reduce some code duplication, make reply_mkdir go through the same code paths
Volker Lendecke [Tue, 19 Dec 2006 16:36:54 +0000 (16:36 +0000)]
r20253: Reduce some code duplication, make reply_mkdir go through the same code paths
ncreate does. This is a bit slower (about 10-20%), because it goes touches the
share mode db, but I think not having to call change_owner_to_parent and
friends in fewer places outweighs this. And, mkdir is not the way current
Windows boxes create directories, they do it via the ncreate call.

Volker

16 years agor20252: Revert back to const, but I have a fleble feeling we should go the ther way.
Simo Sorce [Tue, 19 Dec 2006 14:01:05 +0000 (14:01 +0000)]
r20252: Revert back to const, but I have a fleble feeling we should go the ther way.

16 years agor20250: If we've come from being globally offline we
Jeremy Allison [Tue, 19 Dec 2006 00:48:39 +0000 (00:48 +0000)]
r20250: If we've come from being globally offline we
don't have a check online event handler set.
We need to add one once we're been asked to
go back online as this is the only way to actually
go into the online state. Doh ! :-).
Jeremy.

16 years agor20249: Fail when parsing invalid options in _pam_parse.
Günther Deschner [Mon, 18 Dec 2006 22:10:09 +0000 (22:10 +0000)]
r20249: Fail when parsing invalid options in _pam_parse.

Guenther

16 years agor20248: merge 20247 from samba_3_0_24
Herb Lewis [Mon, 18 Dec 2006 22:01:39 +0000 (22:01 +0000)]
r20248: merge 20247 from samba_3_0_24
get rid of warning: value computed is not used

16 years agor20245: merge 20244 from samba_3_0_24
Herb Lewis [Mon, 18 Dec 2006 20:37:26 +0000 (20:37 +0000)]
r20245: merge 20244 from samba_3_0_24
get rid of more nested extern declarations warnings

16 years agor20243: Make lookup_name resolve both the mapped and the real unix group name
Simo Sorce [Mon, 18 Dec 2006 20:05:50 +0000 (20:05 +0000)]
r20243: Make lookup_name resolve both the mapped and the real unix group name

16 years agor20242: these are not really const as we set them in the function
Simo Sorce [Mon, 18 Dec 2006 20:04:54 +0000 (20:04 +0000)]
r20242: these are not really const as we set them in the function

16 years agor20241: Slightly improve readability of the pam_vsyslog replacement function.
Günther Deschner [Mon, 18 Dec 2006 15:35:52 +0000 (15:35 +0000)]
r20241: Slightly improve readability of the pam_vsyslog replacement function.

Guenther

16 years agor20240: Be a little more verbose about the credential flags when the debug flag
Günther Deschner [Mon, 18 Dec 2006 15:33:57 +0000 (15:33 +0000)]
r20240: Be a little more verbose about the credential flags when the debug flag
is set.

Guenther

16 years agor20239: Parse the configfile for pam_sm_setcred as well
Günther Deschner [Mon, 18 Dec 2006 15:29:05 +0000 (15:29 +0000)]
r20239: Parse the configfile for pam_sm_setcred as well
(e.g. to get the debug flag)

Guenther

16 years agor20237: Replace exit_server with exit_server_cleanly where appropriate. All
James Peach [Mon, 18 Dec 2006 04:25:21 +0000 (04:25 +0000)]
r20237: Replace exit_server with exit_server_cleanly where appropriate. All
send_smb failures should be clean exits. All times when we exit as
a matter of policy should also be clean exits.

16 years agor20235: Don't use realloc directly.
James Peach [Mon, 18 Dec 2006 01:59:42 +0000 (01:59 +0000)]
r20235: Don't use realloc directly.

16 years agor20229: Avoid a silly function call in mkdir_internal. None of the callers look at
Volker Lendecke [Sun, 17 Dec 2006 18:41:44 +0000 (18:41 +0000)]
r20229: Avoid a silly function call in mkdir_internal. None of the callers look at
errno, all go straight to ERROR_NT(status).

Volker

16 years agor20228: Bring the calling conventions of inherit_access_acl and change_owner_to_parent
Volker Lendecke [Sun, 17 Dec 2006 18:30:44 +0000 (18:30 +0000)]
r20228: Bring the calling conventions of inherit_access_acl and change_owner_to_parent
a bit closer together: Move the lp_inherit_perms() check into the callers.

Volker

16 years agor20227: Simplify logic in vfs_MkDir() a bit
Volker Lendecke [Sun, 17 Dec 2006 18:10:15 +0000 (18:10 +0000)]
r20227: Simplify logic in vfs_MkDir() a bit

16 years agor20218: Same fix as r20217 -- can we consolidate that duplicated code a bit?
Volker Lendecke [Sat, 16 Dec 2006 18:41:22 +0000 (18:41 +0000)]
r20218: Same fix as r20217 -- can we consolidate that duplicated code a bit?

16 years agor20217: uid_t and gid_t are not necessarily 32 bit. In assignments we get an automatic
Volker Lendecke [Sat, 16 Dec 2006 18:37:33 +0000 (18:37 +0000)]
r20217: uid_t and gid_t are not necessarily 32 bit. In assignments we get an automatic
conversion, but not when we pass pointers down to other functions.

Simo, please check.

Volker

16 years agor20216: Fix fallback code.
Simo Sorce [Sat, 16 Dec 2006 18:13:12 +0000 (18:13 +0000)]
r20216: Fix fallback code.
A reversed check made it impossile to fallback to the Unix Domain mapping code.
Also fix a potential use of a freed array.

Jerry,
my tests shows that this code now correctly handle the fallback to Unix Domain
when our Domain member is asked for a mapped group that has a unix name different
from the Windows name against a Samba DC and we do not use winbindd but share
users/groups by other means (ldap / sync of passwd and group files)

Immediate Fix would be to discuss if we should answer back when DOMAIN\unixgroup -> SID
is asked for, in the case the unixgroup name is mapped to a different name.
IE: DOMAIN\Domain Admins -> ntadmins

Currently if we are asked for "DOMAIN\Domain Admins" we return the dom admins SID
If we are asked for "DOMAIN\ntadmins we return "not found", but we may consider to
return the Domain admins SID in this case too.

Comments are welcome on this point!

Long term fix I think is the unixinfo pipe and of course an idmap_unixinfo moudle.

Simo.

16 years agor20215: Next step trying to fix the Solaris build.
Volker Lendecke [Sat, 16 Dec 2006 17:54:16 +0000 (17:54 +0000)]
r20215: Next step trying to fix the Solaris build.

I think "anonimous" is correctly spelled "anonymous". The Solaris compile is
referring to this as "anonymous" in line 814 of smbldap.c. Simo, please check.

Thanks,

Volker

16 years agor20214: Fix a type-punned warning. Simo, Jerry, please check
Volker Lendecke [Sat, 16 Dec 2006 17:47:22 +0000 (17:47 +0000)]
r20214: Fix a type-punned warning. Simo, Jerry, please check

16 years agor20212: Attempt to fix the Solaris build
Volker Lendecke [Sat, 16 Dec 2006 11:15:03 +0000 (11:15 +0000)]
r20212: Attempt to fix the Solaris build

16 years agor20211: send_nt_replies does not need the inbuf arg
Volker Lendecke [Sat, 16 Dec 2006 10:36:25 +0000 (10:36 +0000)]
r20211: send_nt_replies does not need the inbuf arg

16 years agor20210: registry_fetch_values is not needed anymore, fix typo
Volker Lendecke [Sat, 16 Dec 2006 09:36:10 +0000 (09:36 +0000)]
r20210: registry_fetch_values is not needed anymore, fix typo

16 years agor20209: Fix two memleaks
Volker Lendecke [Sat, 16 Dec 2006 09:33:17 +0000 (09:33 +0000)]
r20209: Fix two memleaks

16 years agor20208: Change sprintf_append() never to use malloc,
Jeremy Allison [Sat, 16 Dec 2006 05:02:21 +0000 (05:02 +0000)]
r20208: Change sprintf_append() never to use malloc,
but always use a talloc context.
Thanks to simo for pointing this out.
Jeremy.

16 years agor20207: Fix a couple more places where extra_data was
Jeremy Allison [Sat, 16 Dec 2006 01:52:06 +0000 (01:52 +0000)]
r20207: Fix a couple more places where extra_data was
being talloc'ed off the NULL context instead
of being malloced.
Jeremy.

16 years agor20206: Start cleaning up the talloc_ctx mess.
Jeremy Allison [Sat, 16 Dec 2006 01:32:57 +0000 (01:32 +0000)]
r20206: Start cleaning up the talloc_ctx mess.
child->mem_ctx isn't actually used for
anything, so remove it.
Jeremy.

16 years agor20202: fix make clean
Herb Lewis [Sat, 16 Dec 2006 00:51:15 +0000 (00:51 +0000)]
r20202: fix make clean

16 years agor20201: merge makefile changes from 3_0_24
Herb Lewis [Sat, 16 Dec 2006 00:25:34 +0000 (00:25 +0000)]
r20201: merge makefile changes from 3_0_24

16 years agor20197: merge talloc fixes from samba4:
Stefan Metzmacher [Fri, 15 Dec 2006 22:58:06 +0000 (22:58 +0000)]
r20197: merge talloc fixes from samba4:

- make most static functions inline
- handle NULL pointers in talloc_parent_chunk()
- use talloc_parent_chunk() in talloc_parent_name()
  to fix a bug found by the IBM checker

metze

16 years agor20186: Fix winbind crash bug in WINBIND_GETGROUPS.
Günther Deschner [Fri, 15 Dec 2006 16:45:39 +0000 (16:45 +0000)]
r20186: Fix winbind crash bug in WINBIND_GETGROUPS.

response_extra_sent() expects to free a malloced
extra_data.data while the add_XX_to_array functions all return talloced
memory now. Jeremy, please check.

Guenther

16 years agor20183: Fix the build.
Günther Deschner [Fri, 15 Dec 2006 12:35:20 +0000 (12:35 +0000)]
r20183: Fix the build.

Guenther

16 years agor20181: Improve NT status to pam error mapping.
Jeremy Allison [Fri, 15 Dec 2006 06:44:16 +0000 (06:44 +0000)]
r20181: Improve NT status to pam error mapping.
Jeremy.

16 years agor20180: Ensure that pam returns the correct error messages
Jeremy Allison [Fri, 15 Dec 2006 06:06:15 +0000 (06:06 +0000)]
r20180: Ensure that pam returns the correct error messages
when offline and or doing password changes.
Jeremy.

16 years agor20179: Sync up with Samba4 - remove blank lines at the
Jeremy Allison [Fri, 15 Dec 2006 01:50:04 +0000 (01:50 +0000)]
r20179: Sync up with Samba4 - remove blank lines at the
end parsing a file.
Jeremy.

16 years agor20178: Ensure we allocate the intermediate trans structs
Jeremy Allison [Fri, 15 Dec 2006 00:49:12 +0000 (00:49 +0000)]
r20178: Ensure we allocate the intermediate trans structs
off conn->mem_ctx, not the null context so we can
safefy free everything on conn close. Should fix
possible memleak.
Jeremy.

16 years agor20174: If we're only going to call one handler per message
Jeremy Allison [Thu, 14 Dec 2006 22:11:17 +0000 (22:11 +0000)]
r20174: If we're only going to call one handler per message
then terminate the traversal once we've done that.
Jeremy.

16 years agor20173: DNS update fixes:
Gerald Carter [Thu, 14 Dec 2006 17:00:10 +0000 (17:00 +0000)]
r20173: DNS update fixes:

* Fix DNS updates for multi-homed hosts
* Child domains often don't have an NS record in
  DNS so we have to fall back to looking up the the NS
  records for the forest root.
* Fix compile warning caused by mismatched 'struct in_addr'
  and 'in_addr_t' parameters called to DoDNSUpdate()

16 years agor20171: Don't delete the krb5 credential if others still reference to it.
Günther Deschner [Thu, 14 Dec 2006 16:34:24 +0000 (16:34 +0000)]
r20171: Don't delete the krb5 credential if others still reference to it.

Guenther

16 years agor20170: Fix secure DNS updates to work against
Gerald Carter [Thu, 14 Dec 2006 16:27:45 +0000 (16:27 +0000)]
r20170: Fix secure DNS updates to work against
Wnidows 2000 DNS which expects the TKEY payload to
be in the answer section and not in the additional
set of records (like Windows 2003 and the RFC).

16 years agor20169: Support for fallback to legacy mapping code was not completely tested.
Simo Sorce [Thu, 14 Dec 2006 15:30:54 +0000 (15:30 +0000)]
r20169: Support for fallback to legacy mapping code was not completely tested.
Add necessary fixes.

16 years agor20165: Change messaging subsystem to only allow one message
Jeremy Allison [Thu, 14 Dec 2006 01:00:16 +0000 (01:00 +0000)]
r20165: Change messaging subsystem to only allow one message
per type - this is all we use right now and makes
re-entrancy problems with deleting handlers with
a message dispatch loop go away.
Jeremy.

16 years agor20160: Fix long-standing (ie. from initial code I think) bug
Jeremy Allison [Wed, 13 Dec 2006 22:19:10 +0000 (22:19 +0000)]
r20160: Fix long-standing (ie. from initial code I think) bug
in tdb message processing. If we're inside a dispatch
function and we delete our own handler we'd walk onto
the next pointer from a deleted memory block. Fixes
crash bug in winbindd (and goodness knows where else).
Jeremy.

16 years agor20155: revert, I misread
Simo Sorce [Wed, 13 Dec 2006 21:05:47 +0000 (21:05 +0000)]
r20155: revert, I misread

16 years agor20154: Fix nasty typo, hunting another bug
Simo Sorce [Wed, 13 Dec 2006 21:03:38 +0000 (21:03 +0000)]
r20154: Fix nasty typo, hunting another bug

16 years agor20151: remove meaningless checks
Simo Sorce [Wed, 13 Dec 2006 18:29:00 +0000 (18:29 +0000)]
r20151: remove meaningless checks

16 years agor20150: better memory handling for some functions, make sure we don't
Simo Sorce [Wed, 13 Dec 2006 16:39:50 +0000 (16:39 +0000)]
r20150: better memory handling for some functions, make sure we don't
leak memory by using the wrong(long lived)  mem context

16 years agor20148: Forgot to merge. Ensure open_any_socket_out()
Jeremy Allison [Wed, 13 Dec 2006 05:54:39 +0000 (05:54 +0000)]
r20148: Forgot to merge. Ensure open_any_socket_out()
is safe from signals.
Jeremy.

16 years agor20146: Now online checks are fully async we can do them
Jeremy Allison [Wed, 13 Dec 2006 01:11:29 +0000 (01:11 +0000)]
r20146: Now online checks are fully async we can do them
every cache timeout times.
Jeremy.

16 years agor20140: Make online/offline detection completely asynchronous.
Jeremy Allison [Tue, 12 Dec 2006 22:41:42 +0000 (22:41 +0000)]
r20140: Make online/offline detection completely asynchronous.
Now I've done this I might be able to reduce the probe
timeout and reduce the backoff algorithm, going back
to checking every cache time seconds (5 mins by default),
as the parent or forked domain child will never block.
Jeremy.

16 years agor20136: Fix #4290. Properly compute time to password expiration in message from
Jim McDonough [Tue, 12 Dec 2006 22:05:48 +0000 (22:05 +0000)]
r20136: Fix #4290.  Properly compute time to password expiration in message from
pam_winbind.  Thanks to Andrew Benham <andrew.benham@thus.net>

16 years agor20133: get rid of defined but not used warning - static function only used
Herb Lewis [Tue, 12 Dec 2006 20:30:31 +0000 (20:30 +0000)]
r20133: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_NATIVE_ICONV

16 years agor20132: get rid of defined but not used warning - static function only used
Herb Lewis [Tue, 12 Dec 2006 20:27:01 +0000 (20:27 +0000)]
r20132: get rid of defined but not used warning - static function only used
inside the #ifdef HAVE_KRB5

16 years agor20131: get rid of a few no previous prototype warnings
Herb Lewis [Tue, 12 Dec 2006 20:15:47 +0000 (20:15 +0000)]
r20131: get rid of a few no previous prototype warnings

16 years agor20124: clean up nested extern declaration warnings
Herb Lewis [Tue, 12 Dec 2006 17:38:42 +0000 (17:38 +0000)]
r20124: clean up nested extern declaration warnings

16 years agor20119: Update help info indicating how to use separators (forward slash only)
Jim McDonough [Tue, 12 Dec 2006 16:40:57 +0000 (16:40 +0000)]
r20119: Update help info indicating how to use separators (forward slash only)
and properly use backslashes in "net ads join computername="

16 years agor20118: Fix some more warnings
Simo Sorce [Tue, 12 Dec 2006 15:16:26 +0000 (15:16 +0000)]
r20118: Fix some more warnings

16 years agor20117: 1st Error in the merge
Simo Sorce [Tue, 12 Dec 2006 15:14:27 +0000 (15:14 +0000)]
r20117: 1st Error in the merge

16 years agor20116: Start merging in the work done to create the new idmap subsystem.
Simo Sorce [Tue, 12 Dec 2006 14:52:13 +0000 (14:52 +0000)]
r20116: Start merging in the work done to create the new idmap subsystem.

Simo.

16 years agor20110: Fix interaction between paranoid malloc checker
Jeremy Allison [Mon, 11 Dec 2006 18:56:36 +0000 (18:56 +0000)]
r20110: Fix interaction between paranoid malloc checker
and lib/replace. Found by Herb - thanks !
Jeremy.

16 years agor20098: Properly fix issues with create_token_from_username()
Jeremy Allison [Sun, 10 Dec 2006 05:23:47 +0000 (05:23 +0000)]
r20098: Properly fix issues with create_token_from_username()
reported by James. Ensure that this function allocates
everything on the temporary context except the return
memory. Never call this with a null mem context, and
now use conn->mem_ctx instead in smbd/service.c.
Remove separate free functions for conn->ngroups
and conn->nt_user_token as they are now always
talloc'ed off the conn->mem_ctx. Future optimization
will be to remove conn->mem_ctx and make all objects
pointed to in the conn struct talloc'ed off conn itself.
Easy to free then :-).
Jeremy.

16 years agor20097: Ensure found_username is freed correctly when
Jeremy Allison [Sat, 9 Dec 2006 23:55:20 +0000 (23:55 +0000)]
r20097: Ensure found_username is freed correctly when
talloced on the null context.
Jeremy.

16 years agor20090: Fix a class of bugs found by James Peach. Ensure
Jeremy Allison [Sat, 9 Dec 2006 02:58:18 +0000 (02:58 +0000)]
r20090: Fix a class of bugs found by James Peach. Ensure
we never mix malloc and talloc'ed contexts in the
add_XX_to_array() and add_XX_to_array_unique()
calls. Ensure that these calls always return
False on out of memory, True otherwise and always
check them. Ensure that the relevent parts of
the conn struct and the nt_user_tokens are
TALLOC_DESTROYED not SAFE_FREE'd.
James - this should fix your crash bug in both
branches.
Jeremy.

16 years agor20089: Put gpfs acl function into vfs_gpfs module. Thanks to Gomati Mohanan
Jim McDonough [Fri, 8 Dec 2006 18:56:01 +0000 (18:56 +0000)]
r20089: Put gpfs acl function into vfs_gpfs module.  Thanks to Gomati Mohanan
<gomati.mohanan@in.ibm.com>.

Also fix fields for sec_desc differences between 3.0 and 3.0.24 in
nfs4_acls.c.

16 years agor20087: Ensure we clean up any random pending events we
Jeremy Allison [Fri, 8 Dec 2006 18:40:13 +0000 (18:40 +0000)]
r20087: Ensure we clean up any random pending events we
may have inherited from our parent in the winbindd
forked child.
Jeremy.

16 years agor20082: When fork_domain_child is forked when we're offline
Jeremy Allison [Fri, 8 Dec 2006 18:07:44 +0000 (18:07 +0000)]
r20082: When fork_domain_child is forked when we're offline
the child inherits *all* active check_online timout handlers.
This is bad when it's not our domain (ie. BUILTIN).
Jeremy.

16 years agor20069: Fix logic bug I introduced
Volker Lendecke [Thu, 7 Dec 2006 19:21:37 +0000 (19:21 +0000)]
r20069: Fix logic bug I introduced

16 years agor20063: Fix a missing protoype warning in freelistcheck.c
Volker Lendecke [Thu, 7 Dec 2006 10:49:17 +0000 (10:49 +0000)]
r20063: Fix a missing protoype warning in freelistcheck.c

16 years agor20060: Fix the timout calculation.
Jeremy Allison [Thu, 7 Dec 2006 05:48:01 +0000 (05:48 +0000)]
r20060: Fix the timout calculation.
Jeremy.

16 years agor20058: Ensure we actually do the increasing time
Jeremy Allison [Thu, 7 Dec 2006 00:08:10 +0000 (00:08 +0000)]
r20058: Ensure we actually do the increasing time
calculation when in offline mode.
Jeremy.

16 years agor20057: Attempt to fix connect timeouts when connected on
Jeremy Allison [Wed, 6 Dec 2006 23:14:15 +0000 (23:14 +0000)]
r20057: Attempt to fix connect timeouts when connected on
a network but not one on which any home DC's can
be found (hotel network problem). Still testing
but this is getting close.
Jeremy.

16 years agor20054: Revert my changes, Simo promised to work on it :-)
Volker Lendecke [Wed, 6 Dec 2006 14:40:47 +0000 (14:40 +0000)]
r20054: Revert my changes, Simo promised to work on it :-)

16 years agor20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string
Volker Lendecke [Wed, 6 Dec 2006 11:45:33 +0000 (11:45 +0000)]
r20050: Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string

16 years agor20049: Reformatting
Volker Lendecke [Wed, 6 Dec 2006 11:01:27 +0000 (11:01 +0000)]
r20049: Reformatting

16 years agor20048: Fix vfs_full_audit after Jims kernel_flock addition
Volker Lendecke [Wed, 6 Dec 2006 10:21:20 +0000 (10:21 +0000)]
r20048: Fix vfs_full_audit after Jims kernel_flock addition

16 years agor20046: Add ldb_search_exp_fmt and port comment to 4
Volker Lendecke [Tue, 5 Dec 2006 16:20:39 +0000 (16:20 +0000)]
r20046: Add ldb_search_exp_fmt and port comment to 4

16 years agor20037: Reduce code size slightly by shuffling stuff around
Volker Lendecke [Tue, 5 Dec 2006 07:36:14 +0000 (07:36 +0000)]
r20037: Reduce code size slightly by shuffling stuff around

16 years agor20036: Merge ldb_search_exp_fmt -- Thanks simo
Volker Lendecke [Tue, 5 Dec 2006 06:25:12 +0000 (06:25 +0000)]
r20036: Merge ldb_search_exp_fmt -- Thanks simo

16 years agor20035: Fix obvious horrible bug in falling back to MS-RPC
Jeremy Allison [Tue, 5 Dec 2006 06:15:23 +0000 (06:15 +0000)]
r20035: Fix obvious horrible bug in falling back to MS-RPC
methods.
Jeremy.