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

28404 Commits

Author SHA1 Message Date
Volker Lendecke
2b3d03d6f1 Remove unix_homedir from struct user_struct
This makes pdb_get_unix_homedir unused. I wonder if that was ever really used...
(This used to be commit 36bfd32f1f)
2008-05-05 18:28:58 +02:00
Volker Lendecke
1b2bf00fb9 Remove "homedir" from "struct user_struct"
(This used to be commit 41f9afd62d)
2008-05-05 18:28:58 +02:00
Volker Lendecke
6ccbc1065d pipes_struct->pipe_user_name is unused, remove it
(This used to be commit 32cd4bf34b)
2008-05-05 18:28:58 +02:00
Volker Lendecke
6ed9b7c973 Make the namelist arg to set_namearray const
(This used to be commit e7ce4bce5c)
2008-05-05 18:28:58 +02:00
Günther Deschner
4d8836ab96 Fix client authentication with -P switch in client tools (Bug 5435).
Guenther
(This used to be commit d077ef64cd)
2008-05-05 16:59:53 +02:00
Volker Lendecke
1a3f50559e Revert "Fix allocation of conn->vuid_cache entries"
This reverts commit 50c891d3df.

There's more to this code -- sorry for the spam
(This used to be commit 6e0e0cb8dd)
2008-05-05 15:07:01 +02:00
Volker Lendecke
58c54eb91f Revert "Second half of 50c891d3: Correctly clear the vuid cache"
This reverts commit 0aea404b0a.
(This used to be commit fa39f47f5f)
2008-05-05 15:06:30 +02:00
Volker Lendecke
a529b2e1c3 Second half of 50c891d3: Correctly clear the vuid cache
(This used to be commit 0aea404b0a)
2008-05-05 14:53:49 +02:00
Volker Lendecke
8dd53811d5 Fix allocation of conn->vuid_cache entries
With the old code, if more than VUID_CACHE_SIZE elements were used all new
entries ended up in slot 0. With this checkin we do cycle.

Jeremy, please revert if the old behaviour was intentional
(This used to be commit 50c891d3df)
2008-05-05 14:46:03 +02:00
Volker Lendecke
768c0d6b22 Fix dfs_Enum: In form_junctions, correctly check for malloc failure
(This used to be commit 1b1614c326)
2008-05-05 12:45:12 +02:00
Karolin Seeger
2f2d255e1a Developer's Guide: Fix typos.
Karolin
(This used to be commit e206ffb856)
2008-05-05 11:56:37 +02:00
Volker Lendecke
d62563342e Remove connection_struct->mem_ctx, connection_struct is its own parent
(This used to be commit 559180f7d3)
2008-05-05 11:23:13 +02:00
Volker Lendecke
2c00ff5407 Fix two uninitialized variable warnings
(This used to be commit 48fd7b3635)
2008-05-05 11:17:19 +02:00
Jeremy Allison
b430b38220 Remove the "stat_open()" function, flag, and all associated code. It was only
being (correctly) used in the can_read/can_write checks for hide unreadable/unwritable
and this is more properly done using the functions in smbd/file_access.c.
Preparing to do NT access checks on all file access.
Jeremy.
(This used to be commit 6bfb06ad95)
2008-05-02 17:22:10 -07:00
Jeremy Allison
85dc0ad7be Rename inherit_access_acl() -> inherit_access_posix_acl() to make use clear.
Jeremy.
(This used to be commit b739c7f1cd)
2008-05-02 12:54:53 -07:00
Jeremy Allison
96e969c9eb Move directory_has_default_acl() to file_access.c, belongs
there as it no longer uses explicit POSIX ACL calls.
Jeremy.
(This used to be commit ac1eac9b0d)
2008-05-02 10:09:00 -07:00
Jeremy Allison
6f19a1fdda Start to ensure we use the NT ACL interface, keep the POSIX
ACL interface inside the VFS modules. Will help when moving
to storing NT ACLs.
Jeremy.
(This used to be commit b08ea48f88)
2008-05-01 17:01:37 -07:00
Jeremy Allison
3cfd1f2be7 Tidyup to ensure '\n' is treated identically in all
cases.
Jeremy.
(This used to be commit 818fbc9889)
2008-05-01 08:48:52 -07:00
Jeremy Allison
e9accc2ad6 Fix bug #5434 found by Ted Percival <ted@midg3t.net>.
Introduced by me in the strlcpy cleanup. Ensure the
loaded password doesn't contain the '\n' at the end.
Jeremy.
(This used to be commit 41984743d9)
2008-05-01 08:39:16 -07:00
Günther Deschner
e7142ef180 ntlmssp: replace UNKNOWN_02000000 with NTLMSSP_NEGOTIATE_VERSION.
Guenther
(This used to be commit 2c41d69bcf)
2008-04-30 18:55:57 +02:00
Günther Deschner
fb623c942d pam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).
Guenther
(This used to be commit d8372f73b9)
2008-04-30 18:34:29 +02:00
Jeremy Allison
82d7429a27 Fix typo noticed by David Disseldorp <ddiss@sgi.com>. AF_INET should be AF_INET6 in this case.
Jeremy.
(This used to be commit 767740a914)
2008-04-30 09:28:47 -07:00
Gerald W. Carter
c413c97ff4 Winbind: Prevent cycle in children list when reaping dead child processes.
Thanks to Glenn Curtis and Kyle Stemen @ Likewise.  Their explanation is:

    In winbindd_dual.c, there is a list of children processes that
    is maintained using macros DTLIST_ADD and DTLIST_REMOVE. In the
    case when a scheduled_async_request fails, the particular child
    was located in the list, and its attributes were cleared out
    and it was reused for a subsequent async request. The bug was that
    the new request would queue the same node into the doubly-linked
    list and would result in list->next pointing to the same node as
    list itself. This would set up an infinite loop in the processing of
    the for loop when the list of children was referenced.

    Solution was to fully remove the child node from the list, such that
    it could be inserted without risk of being inserted twice.

Note that the child is re-added to the list in fork_domain_child() again.
(This used to be commit b379b5b5d8)
2008-04-30 10:09:43 -05:00
Gerald W. Carter
43c079ef26 BUG 5107: Fix handling of large DNS replies on AIX and Solaris.
On AIX, Solaris, and possibly some older glibc systems (e.g. SLES8)
truncated replies never give back a resp_len > buflen
which ends up causing DNS resolve failures on large tcp DNS replies.

Also add more debug lines about processing the DNS reply.
(This used to be commit 5ed9b92097)
2008-04-30 09:57:15 -05:00
Gerald W. Carter
d6aa45d29c BUG 5429: Clarify log msgs re: failure to create BUILTIN\{Administrators,Users}
Raise the debug msgs from Lvl 0 in the create_builtin_XX() functions
to prevent unnecessary panic from people reading the logs.
(This used to be commit 2983b9dc79)
2008-04-30 09:43:00 -05:00
Günther Deschner
65ad34ba09 re-run make idl.
Guenther
(This used to be commit 14327b11ba)
2008-04-30 16:04:30 +02:00
Günther Deschner
a7bd73c786 build: fix make everything.
Guenther
(This used to be commit d2cd011f43)
2008-04-30 16:04:30 +02:00
Günther Deschner
9764083d25 IDL: add nbt_cldap_netlogon_29 which includes the next_closest_site.
Guenther
(This used to be commit 909c9ae7ec)
2008-04-30 16:04:30 +02:00
Günther Deschner
2b0e91caea IDL: use nbt_netlogon_command in cldap replies.
Guenther
(This used to be commit bc92507fb4)
2008-04-30 16:04:30 +02:00
Volker Lendecke
974643f656 Next round fixing bug 5420, build on IRIX
The IRIX make does not like lines with only whitespace. With LIBNETAPI_LIBS
evaluating to nothing this happens there.
(This used to be commit 225fbe743c)
2008-04-30 12:50:26 +02:00
Volker Lendecke
5c40b5fd52 Attempt to fix the build on IRIX: Bug 5420
(This used to be commit ebca5fd762)
2008-04-30 12:50:20 +02:00
Michael Adam
f50002b491 registry: skip writes of existing keys in init_registry_data().
Michael
(This used to be commit 37dabf9317)
2008-04-30 12:42:33 +02:00
Michael Adam
9fe870affa registry: save writes in init_registry_data() if data does already exist.
This is done by first checking if all data (keys and values) exists
(using new regdb_key_exists()) and kompletely skipping all writes if it does.

Michael
(This used to be commit 7c5f1583cb)
2008-04-30 12:42:32 +02:00
Michael Adam
ed6a9edb1e registry: check for existence of key init_registry_key and possibly save a write.
Michael
(This used to be commit 3ab5a2f1b3)
2008-04-30 12:42:32 +02:00
Michael Adam
6ec4c8631a registry: add function regdb_key_exists() to check for existence of a key.
The existence of the registry key entry (and not the values entry!) is
taken as the criterion for existence.

Michael
(This used to be commit 207a0ece45)
2008-04-30 12:42:32 +02:00
Michael Adam
167d54cc67 registry: use regdb_fetch_key_internal() in regdb_fetch_values().
Michael
(This used to be commit 3316541ac9)
2008-04-30 12:42:32 +02:00
Michael Adam
6b4ed4b8f3 registry: use regdb_fetch_key_internal() in regdb_fetch_keys().
Michael
(This used to be commit 78f924ca05)
2008-04-30 12:42:32 +02:00
Michael Adam
5379dda0cd registry: add a function for fetching a tdb record for a given keystring
regdb_fetch_key_internal()

Michael
(This used to be commit 97bed9a236)
2008-04-30 12:42:32 +02:00
Michael Adam
411ae73283 registry: combine talloc_strdup() and normalize_reg_path() in regdb_fetch_keys().
the talloc_strdup() call is just and extra allocation here.

Michael
(This used to be commit 217233349b)
2008-04-30 12:42:32 +02:00
Michael Adam
dba75c0831 registry: use normalize_reg_path() in regdb_fetch_keys()
instead of handcrafting normalization.

Michael
(This used to be commit 1e4d2310d0)
2008-04-30 12:42:31 +02:00
Michael Adam
caba2d3a64 registry: use dbwrap_fetch_bystring() in regdb_fetch_values().
Michael
(This used to be commit 569f9844e9)
2008-04-30 12:42:31 +02:00
Michael Adam
9d933dedf9 registry: use dbwrap_fetch_bystring() in regdb_fetch_keys().
instead of using regdb->fetch and constructing tdb data
from the registry key string by hand.

Michael
(This used to be commit 87a58140f0)
2008-04-30 12:42:31 +02:00
Günther Deschner
f49474f58a build: fix some build dependencies.
Guenther
(This used to be commit 067a6931a2)
2008-04-30 01:11:51 +02:00
Günther Deschner
c16a7ac6c6 Re-run make idl.
Guenther
(This used to be commit 08b5758e00)
2008-04-30 01:11:47 +02:00
Günther Deschner
ebedb09be9 IDL: use nbt_dc_sock_addr.
Guenther
(This used to be commit 5a46f34fa3)
2008-04-30 01:11:46 +02:00
Günther Deschner
b144371713 IDL: move some netlogon DS flags to NBT where they actually showup first.
Guenther
(This used to be commit 163f17f84b)
2008-04-30 00:56:31 +02:00
Günther Deschner
fe8d6a09d1 IDL: use samr_AcctFlags in nbt_ntlogon_sam_logon.
Guenther
(This used to be commit 5f5658b3dc)
2008-04-30 00:35:57 +02:00
Günther Deschner
754e646bec IDL: add nbt_netlogon_version.
Guenther
(This used to be commit 5963bbea82)
2008-04-30 00:34:43 +02:00
Günther Deschner
fe2c8e38d3 rpcclient: fix another srv_name_slash.
Guenther
(This used to be commit de946e6158)
2008-04-29 20:22:02 +02:00
Günther Deschner
7a6f33e3d8 _netr_LogonSamLogon: fix lm session key length.
Thanks Volker for pointing this out.

Guenther
(This used to be commit 7ccca9a004)
2008-04-29 20:22:02 +02:00