Volker Lendecke
ca25800287
Simplify make_connection_snum: Copy connection_struct info from server_info
...
(This used to be commit 5aa3cdf355
)
2008-05-10 11:17:00 +02:00
Volker Lendecke
90995202c0
Add "server_info" to connection_struct
...
This will replace all the user identity stuff in connection_struct, for now it
is just a source where the other fields in connection_struct are filled from.
(This used to be commit 0f53f9e7db
)
2008-05-10 11:17:00 +02:00
Volker Lendecke
f93e232535
Remove unused "force_group" from connection_struct
...
(This used to be commit 03944f8d89
)
2008-05-10 11:17:00 +02:00
Volker Lendecke
39a318aee4
"status" -> "pstatus" in make_connection_snum
...
(This used to be commit 3ce395e61e
)
2008-05-10 11:17:00 +02:00
Volker Lendecke
270a3f2a6f
Add create_connection_server_info() -- not used yet
...
(This used to be commit 50bf075f75
)
2008-05-10 11:17:00 +02:00
Volker Lendecke
0283e95a7c
Add a mem_ctx argument to make_server_info_guest()
...
(This used to be commit e4a9492967
)
2008-05-10 11:16:59 +02:00
Jeremy Allison
3f76504d92
Remove a couple of uses of SMB_VFS_GET_NT_ACL(), use
...
SMB_VFS_FGET_NT_ACL instead. I'd like to ultimately
remove SMB_VFS_GET_NT_ACL.
Jeremy.
(This used to be commit 4221937b68
)
2008-05-09 11:14:45 -07:00
Jeremy Allison
00b2cdf75e
Yay ! Remove a VFS entry. Removed the set_nt_acl() call,
...
this can only be done via fset_nt_acl() using an open
file/directory handle. I'd like to do the same with
get_nt_acl() but am concerned about efficiency
problems with "hide unreadable/hide unwritable" when
doing a directory listing (this would mean opening
every file in the dir on list).
Moving closer to rationalizing the ACL model and
maybe moving the POSIX calls into a posix_acl VFS
module rather than having them as first class citizens
of the VFS.
Jeremy.
(This used to be commit f487f742cb
)
2008-05-08 18:09:07 -07:00
Volker Lendecke
64ddd381b7
Rename server_info->was_mapped to server_info->nss_token
...
"nss_token" from my point of view much better reflects what this flag actually
represents
(This used to be commit b121a5acb2
)
2008-05-07 14:47:29 +02:00
Volker Lendecke
4f731150bd
Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snum
...
(This used to be commit 1843ea64ab
)
2008-05-07 14:47:29 +02:00
Volker Lendecke
193b63f326
Use talloc_stackframe() in find_forced_group
...
(This used to be commit 27a9bbc645
)
2008-05-07 14:47:29 +02:00
Volker Lendecke
5380241251
Fix a memleak introduced after refactoring "struct user_struct"
...
(This used to be commit e70b5b7622
)
2008-05-06 15:43:21 +02:00
Volker Lendecke
89ac43d498
Remove some unused code
...
(This used to be commit 87383a4605
)
2008-05-06 14:18:20 +02:00
Volker Lendecke
bec1dfab27
Remove "userdom_struct user" from "struct user_struct"
...
(This used to be commit 420de03523
)
2008-05-05 18:28:59 +02:00
Volker Lendecke
0636236eec
Fix typo
...
(This used to be commit 8047a1991a
)
2008-05-05 18:28:59 +02:00
Volker Lendecke
82d2f07dae
Remove "session_key" from "struct user_struct"
...
This one took a bit -- I hope I covered all data paths
(This used to be commit 74c88a4442
)
2008-05-05 18:28:59 +02:00
Volker Lendecke
71ff1ba2de
Remove "guest" from "struct user_struct"
...
(This used to be commit 570a6b80fe
)
2008-05-05 18:28:59 +02:00
Volker Lendecke
c6d209f834
Remove the unix token info from "struct user_struct"
...
(This used to be commit aa2299d42a
)
2008-05-05 18:28:58 +02:00
Volker Lendecke
bb3755968f
Remove "nt_user_token" from "struct user_struct"
...
(This used to be commit 51d5d512f2
)
2008-05-05 18:28:58 +02:00
Volker Lendecke
faa5e8e12c
Remove "logon_script" from "struct user_struct"
...
(This used to be commit b36fd84186
)
2008-05-05 18:28:58 +02:00
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
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
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
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
0173eeb3b5
Fix bug found by Igor Mammedov <niallain@gmail.com> where we are
...
not returning a directory value for a QPATHINFO on a msdfs link
with a non-dfs path. Windows does this.
Jeremy.
(This used to be commit fbd99071f9
)
2008-04-28 15:06:08 -07:00
Volker Lendecke
0c4093a234
Fix CLEAR_IF_FIRST handling of messages.tdb
...
We now open messages.tdb even before we do the become_daemon. become_daemon()
involves a fork and an immediate exit of the parent, thus the
parent_is_longlived argument must be set to false in this case. The parent is
not really long lived :-)
(This used to be commit 4f4781c6d1
)
2008-04-23 22:18:26 +02:00
Michael Adam
0db7aba8af
Remove redundant parameter fd from SMB_VFS_CLOSE().
...
Now all those redundant fd's have vanished from the VFS API.
Michael
(This used to be commit 1429453551
)
2008-04-21 00:22:42 +02:00
Michael Adam
3756467db6
Move the posix pending close functionality down into the VFS layer.
...
This hides the pending close fds from the outside. Call order
of SMB_VFS_CLOSE is reversed. Originally, it was:
fd_close -> fd_close_posix -> SMB_VFS_CLOSE -> close
And now it is:
fd_close -> SMB_VFS_CLOSE -> fd_close_posix -> close
This is in preparation of removing the fd parameter
from the SMB_VFS_CLOSE function. But it is also the right
place for the pending close calls anyways.
Michael
(This used to be commit 3cf56b124a
)
2008-04-21 00:21:23 +02:00
Volker Lendecke
b46d340fd5
Refactoring: Make struct rpc_pipe_client its own talloc parent
...
(This used to be commit a6d74a5a56
)
2008-04-20 00:12:52 +02:00
Volker Lendecke
c071b941e6
Fix bug 5398
...
Thanks to Jason Mader for sending the compiler output :-)
Volker
(This used to be commit 7a57c2da1a
)
2008-04-19 17:04:09 +02:00
Stefan Metzmacher
2df0ade13a
smbd: create the messaging conntext earlier
...
metze
(This used to be commit 658d847533
)
2008-04-18 15:00:19 +02:00
Stefan Metzmacher
f2067658df
smbd: call reinit_after_fork() in the needed places
...
metze
(This used to be commit 425b3513a4
)
2008-04-18 14:43:08 +02:00
Stefan Metzmacher
b7a141f8a7
smbd: merge "smbd:backgroundqueue=no" option from the v3-0-ctdb tree
...
metze
(This used to be commit 16d295d466
)
2008-04-18 14:43:07 +02:00
Volker Lendecke
ae4159f0f7
Remove two pointless else branches
...
(This used to be commit ed343114cd
)
2008-04-14 14:37:39 +02:00
Volker Lendecke
a4c0812af0
Fix some "ignoring asprintf result" warnings
...
(This used to be commit 155d62ddfd
)
2008-04-14 13:13:46 +02:00
Alexander Bokovoy
09c5d89220
Use more error-prone form of testing dm_destroy_session() return code after discussing with Tridge
...
(This used to be commit 4abdbad52e
)
2008-04-14 13:56:36 +04:00
Michael Adam
a9ff941f41
registry: rename init_registry() to registry_init_full() for consistency.
...
Michael
(This used to be commit 14d82708d4
)
2008-04-13 15:33:48 +02:00
Michael Adam
281e610ff3
registry: change init_registry() to return WERROR instead of bool.
...
Michael
(This used to be commit 0b196095db
)
2008-04-13 15:33:48 +02:00
Stefan Metzmacher
e21b283d67
dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbindd
...
metze
(This used to be commit 64450cc1e4
)
2008-04-12 09:14:10 +02:00
Tim Prouty
bb869741dd
Cleanup size_t return values in convert_string_allocate
...
This patch is the first iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 59124382d2
)
2008-04-11 11:33:33 +02:00
Volker Lendecke
245ebca937
Fix bug 5366
...
(This used to be commit 448a8fe6c1
)
2008-04-11 11:32:47 +02:00
Günther Deschner
ee8dffbca6
Fix the build of reply_setattrE().
...
How ever could this compile ?
Guenther
(This used to be commit 02f5f35e5e
)
2008-04-08 21:41:16 +02:00