Günther Deschner
e7821116d1
s3-includes: move struct pipe_open_rec to srvsvc rpc server.
...
Guenther
2011-04-14 00:47:57 +02:00
Günther Deschner
9824e2e5ee
s3-rpc_client: add and use rpc_client/rpc_client.h.
...
Guenther
2011-04-13 22:23:59 +02:00
Volker Lendecke
d1ded271b6
s3: Wrap creating the svcctl keys in a transaction
...
This makes the startup of smbd in make test much quicker and thus more reliable
(cherry picked from commit f1aa38b414e97d8687d0bebf65baa384f75301b4)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 11 22:09:58 CEST 2011 on sn-devel-104
2011-04-11 22:09:58 +02:00
Andrew Bartlett
663dc94e63
auth: Move auth_session_info into IDL
...
This changes auth_session_info_transport to just be a wrapper, rather
than a copy that has to be kept in sync.
As auth_session_info was already wrapped in python, this required
changes to the existing pyauth wrapper and it's users.
Andrew Bartlett
2011-04-05 23:46:04 +02:00
Andrew Bartlett
ff9b6682a0
s3-auth Rename user_session_key -> session_key to match auth_session_info
2011-04-05 06:32:07 +10:00
Andrew Bartlett
17d8f0ad30
s3-auth use create_local_token() to transform server_info -> session_info
...
Before a auth_serversupplied_info struct can be used for
authorization, the local groups and privileges must be calculated.
create_local_token() now copies the server_info, and then sets the
calulated token and unix groups.
Soon, it will also transform the result into an expanded struct
auth_session_info. Until then, the variable name (server_info vs
session_info provides a clue to the developer about what information
has been entered in the structure).
By moving the calls to create_local_token within the codebase, we
remove duplication, and ensure that the session key (where modified)
is consistently copied into the new structure.
Andrew Bartlett
2011-04-05 06:32:07 +10:00
Andrew Bartlett
a3ef974d30
s3-rpc_server Remove comment, yes the key is correct.
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr 4 13:31:52 CEST 2011 on sn-devel-104
2011-04-04 13:31:52 +02:00
Andrew Bartlett
77e67163da
s3-auth consolidate create_local_token() into make_server_info_krb5()
...
This ensures that all callers don't need to each add builtin groups
and privileges to the user's token
Andrew Bartlett
2011-04-04 19:48:58 +10:00
Volker Lendecke
6a9043d2f0
s3: Fix a typo
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 31 12:50:53 CEST 2011 on sn-devel-104
2011-03-31 12:50:53 +02:00
Günther Deschner
0e46e09122
s3-samr: make getgrgid() failure a little more visible in _samr_CreateDomAlias().
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar 31 01:00:42 CEST 2011 on sn-devel-104
2011-03-31 01:00:42 +02:00
Günther Deschner
65c9d2e621
s3: Fix Coverity ID 2041, "UNUSED_VALUE"
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Mar 30 13:49:35 CEST 2011 on sn-devel-104
2011-03-30 13:49:35 +02:00
Volker Lendecke
de635fe1f7
s3: Fix Coverity ID 2332: MISSING_BREAK
2011-03-30 09:58:33 +02:00
Günther Deschner
ab9a29eb63
s3-rpc_server: move access check functions out of samr server.
...
Guenther
2011-03-30 01:13:10 +02:00
Günther Deschner
c2d6260f10
s3: only include lib/privileges.h where needed.
...
This finally removes the global lsa.h inclusion.
Guenther
2011-03-30 01:13:10 +02:00
Günther Deschner
6e3f0d28a4
s3-includes: only include ntdomain.h where needed.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
ab36d597e7
s3-messages: make ndr_messaging.h part of messages.h.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
b2af281e50
s3-messages: only include messages.h where needed.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
146c1aac99
s3-auth: rpc_server needs auth.h
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
20d8ae49b7
s3: rpc_server needs parts of smbd.
...
Guenther
2011-03-30 01:13:08 +02:00
Günther Deschner
235f148590
s3-passdb: use passdb headers where needed.
...
Guenther
2011-03-30 01:13:08 +02:00
Günther Deschner
2f36ef7225
s3-passdb: add passdb.h where needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
0a250f4946
registry: create and use shared libcli/registry/util_reg.h header.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
0e771263ee
s3-includes: only include system/filesys.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
49fcf653b1
s3-includes: only include system/passwd.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
55f9579110
s3-includes: only include system/terminal.h when needed.
...
Guenther
2011-03-30 01:13:06 +02:00
Günther Deschner
d85f140826
s3-winbind: remove global inclusion of libwbclient.
...
Guenther
2011-03-30 01:13:06 +02:00
Günther Deschner
64421129b6
lib/util/util_pw: share sys_get{pw,gr} group of calls.
...
Guenther
2011-03-30 01:13:06 +02:00
Andreas Schneider
2cb797456a
s3-rpc_server: Fixed rpc_pipe_open_internal documentation.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-29 16:03:54 +02:00
Andreas Schneider
8dc5805738
s3-rpc_server: Only allow embedded, daemon and external server type.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-29 16:03:53 +02:00
Andreas Schneider
991fa3a5fe
s3-spoolssd: Start the spoolss service correctly.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-29 16:03:53 +02:00
Andreas Schneider
8c635b669c
s3-epmap: Make rpc_ep_setup_register an internal function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-29 16:03:52 +02:00
Volker Lendecke
261d6b0e9b
s3: Fix Coverity ID 2195: NO_EFFECT
...
level is unsigned
2011-03-27 22:22:12 +02:00
Volker Lendecke
1d690e37b7
s3: Fix Coverity ID 2327: FORWARD_NULL
...
Make check_ft_info robust against an invalid type.
Günther, please check!
2011-03-27 11:25:34 +02:00
Günther Deschner
4a4efc20b4
s3-rpc_server: remove two uneeded include registry/reg_parse_prs.h
...
Guenther
2011-03-24 23:08:22 +01:00
Simo Sorce
72bd60b2fe
s3-epmapper: fix vars init and return errors
...
Properly initialize variables at each cycle.
Convert to the right error when returning EPMAPPER ones.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Mar 24 20:43:49 CET 2011 on sn-devel-104
2011-03-24 20:43:49 +01:00
Simo Sorce
dbe957e48f
s3-epmapper: Fix allocation of data on the wrong context
...
p->mem_ctx is the short-lived per request context, while this data is long
lived, allocate on p instead.
2011-03-24 14:57:12 -04:00
Andreas Schneider
5ebf007233
s3-epmapper: Make sure we work on a description duplicate.
2011-03-24 14:57:12 -04:00
Andreas Schneider
e8912b9ad3
s3-epmapper: Refactor the cleanup of endpoints.
2011-03-24 14:57:12 -04:00
Andreas Schneider
fd89e29e7e
s3-epmapper: Use strcmp instead of strequal and check IPv6.
2011-03-24 14:57:12 -04:00
Andreas Schneider
bf1e330f69
s3-epmapper: Increase debug levels.
2011-03-24 14:57:11 -04:00
Andrew Tridgell
15e84a9a09
charcnv: removed the allow_badcharcnv and allow_bad_conv options to convert_string*()
...
we shouldn't accept bad multi-byte strings, it just hides problems
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-24 01:47:26 +01:00
Andreas Schneider
7f1fd07fbe
s3-epmapper: Log error if we can't register the endpoint.
...
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Wed Mar 23 18:06:54 CET 2011 on sn-devel-104
2011-03-23 18:06:54 +01:00
Andreas Schneider
b38517bbdc
s3-epmapper: Setup epm in smbd to forward np requests.
2011-03-23 17:19:22 +01:00
Andreas Schneider
73e985fe4b
s3-epmapper: Remove unregister on shutdown.
...
This is done automatically now.
2011-03-23 17:19:22 +01:00
Andreas Schneider
da1a18cd03
s3-epmd: Cleanup endpoints on service pipe disconnect.
2011-03-23 17:19:22 +01:00
Andreas Schneider
0d97741b9b
s3-epmapper: Added function to delete endpoint entries.
2011-03-23 17:19:22 +01:00
Andreas Schneider
e69d922367
s3-rpc_server: Added disconnect callback function.
2011-03-23 17:19:22 +01:00
Andreas Schneider
044eabe425
s3-rpc_server: Rename req to subreq.
2011-03-23 17:19:22 +01:00
Andreas Schneider
73faa82bf9
s3-rpc_server: Implement an endpoint monitor loop.
2011-03-23 17:19:22 +01:00
Andreas Schneider
b2bdc20f65
s3-rpc_server: Added a memory context to the ep regsiter state.
2011-03-23 17:19:22 +01:00