1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

22844 Commits

Author SHA1 Message Date
Stefan Metzmacher
a7cab4ea36 s4:ldb-samba: handle more GUID attributes
metze
2010-05-20 19:10:56 +02:00
Günther Deschner
b75384546a librpc: finally merge ndr_string.c.
Guenther
2010-05-20 13:57:22 +02:00
Günther Deschner
9c7d47fdad s4-smbtorture: take a TODO note for RAP-PRINTING.
Guenther
2010-05-20 11:08:14 +02:00
Matthias Dieter Wallnöfer
4b56aa2771 s4:operational LDB module - fix warnings (missing parameters, unused variable) 2010-05-20 10:23:45 +02:00
Andrew Bartlett
a0b0dc16a6 s4:auth handle addition of nested aliases of domain groups.
The challenge here is that we are asked not to add the domain groups
again, but we need to search inside them for any aliases that we need
to add.  So, we can't short-circuit the operation just because we found
the domain group.

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
9c6b637ce8 s4:auth Change auth_generate_session_info to take flags
This allows us to control what groups should be added in what use
cases, and in particular to more carefully control the introduction of
the 'authenticated' group.

In particular, in the 'service_named_pipe' protocol, we do not have
control over the addition of the authenticated users group, so we key
of 'is this user the anonymous SID'.

This also takes more care to allocate the right length ptoken->sids

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
3ff2766231 s4:auth Push check for messaging context into winbind backend
If we don't use the winbind backend, we don't (for now) need a
messaging context- and we don't have one in LDB at the moment.

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
feb9ffdac8 s4:auth Add dependency from the operational module onto auth
We had to split up the auth module into a module loaded by main deamon
and a subsystem we manually init in the operational module.

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
72ccbcacdd s4:auth Allow the operational module to get a user's tokenGroups from auth
This creates a new interface to the auth subsystem, to allow an
auth_context to be created from the ldb, and then tokenGroups to be
calculated in the same way that the auth subsystem would.

Andrew Bartlett
2010-05-20 17:39:10 +10:00
Andrew Bartlett
4fa9aa3099 s4:torture Add tests to demonstrate S2U4Self in the RPC-PAC test
We also compare against SamLogon to try and validate the whole thing.
Note that we must represent NULL as "" when comparing between the PAC
and SamLogon, due to different marshalling of the structures.

Andrew Bartlett
2010-05-20 17:39:09 +10:00
Andrew Bartlett
5f9024c8a4 s4:auth Move BUILTIN group addition into session.c
The group list in the PAC does not include 'enterprise DCs' and
BUILTIN groups, so we should generate it on each server, not in the
list we pass around in the PAC or SamLogon reply.

Andrew Bartlett
2010-05-20 17:39:09 +10:00
Andrew Bartlett
564b4c7443 s4:dsdb disable tokenGroups until end of rewrite
I need to change the functions this calls

Andrew Bartlett
2010-05-20 17:39:09 +10:00
Jelmer Vernooij
ac9341245a pynet: Raise proper exceptions rather than invoking sys.exit. 2010-05-19 19:35:22 +02:00
Kamen Mazdrashki
799eb535a9 s4/metadata: fix whitespaces 2010-05-19 02:49:05 +03:00
Kamen Mazdrashki
242b41a3d8 s4/selftest: fix passwords in selftest-vars script 2010-05-19 02:49:05 +03:00
Matthias Dieter Wallnöfer
1ffc65d462 s4:smb_server/smb/trans2.c - remove unused define "DEFAULT_SITE_NAME"
Obviously this isn't needed and in general site names shouldn't be hardcoded
anymore (except there is a good reason).
2010-05-18 17:22:35 +02:00
Matthieu Patou
a79b446e11 s4:smb_server: add dfs smbtorture to selftests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:14 +02:00
Matthieu Patou
fc94c50a9f s4:smb_server: Implement GET_DFS_REFERRAL for domain referral requests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:14 +02:00
Matthieu Patou
90d768989c s4:smb_server: fix trailling whitespace in trans2.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:13 +02:00
Matthieu Patou
9f01e7af6b s4 torture: Add tests for dfs referrals handling in SMB/trans2 requests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:13 +02:00
Matthieu Patou
0e4e39c7f5 s4 torture test: Adapt ndr-dfsblobs torture test to new idl
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-18 15:31:12 +02:00
Stefan Metzmacher
6f264106a4 s4:librpc: fix the autoconf build
metze
2010-05-18 15:31:11 +02:00
Stefan Metzmacher
9b9def0d72 s4:dynconfig: let the autoconf build compile again
metze
2010-05-18 15:31:11 +02:00
Jelmer Vernooij
c0fb7b8180 s3: Fix some more iconv convenience usages. 2010-05-18 11:45:31 +02:00
Jelmer Vernooij
390ada6ec7 Remove more usages of iconv_convenience in files which were apparently not recompiled by waf. 2010-05-18 11:45:31 +02:00
Jelmer Vernooij
b8268cf7b0 s3: Remove use of iconv_convenience. 2010-05-18 11:45:31 +02:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Andrew Bartlett
415bd62764 s4:ntvfs Prepare for a possible future sharing of notify.idl
I would love for notify.idl to be shared between Samba4 and Samba3
some day, and this seems to be the point at which the structure is
initialised.

Andrew Bartlett
2010-05-18 13:21:09 +10:00
Andrew Bartlett
e11a67de7d s4:winbindd Record the privilaged pipe dir
This may help us return an accurate priv pipe dir later on.

Andrew Bartlett
2010-05-18 13:20:30 +10:00
Andrew Bartlett
b183a30b2b s4:credentials Add in tracking of the password last set time
We perhaps need a more general API here, but for now extend the
credentials API to return the password last changed time that the
s3compat layer will need.

Andrew Bartlett
2010-05-18 13:20:22 +10:00
Andrew Bartlett
6324a0f59f s4:provision Remove unused 'account_name' parameter
The python glue code didn't even de-reference this element in the
structure.

Andrew Bartlett
2010-05-18 13:20:18 +10:00
Andrew Bartlett
00b985def8 s4:auth Make it clear to the callers the talloc lifetime.
In other times, we might have used talloc_reference here, but this
isn't used as much these days.

Andrew Bartlett
2010-05-18 13:20:07 +10:00
Jelmer Vernooij
f7f1a3a451 pynet: Remove unused credentials argument. 2010-05-18 01:40:19 +02:00
Anatoliy Atanasov
d040658e1a s4-rodc: Set am_rodc flag during provision 2010-05-17 13:30:27 +03:00
Anatoliy Atanasov
26d41c23f6 s4-rodc: Cache am_rodc flag 2010-05-17 13:30:27 +03:00
Matthias Dieter Wallnöfer
d712356569 s4:repl_meta_data LDB module - fix counter types 2010-05-14 19:04:48 +02:00
Matthias Dieter Wallnöfer
8608eaef76 s4:net domainlevel tool - fix up the error handling as Jelmer suggested
Sorry, I've copied this from the "ldap.py" test and thought it would work.
2010-05-14 19:03:18 +02:00
Matthias Dieter Wallnöfer
6d95a204d7 s4:dsdb_cache LDB module - fix a typo 2010-05-14 19:02:30 +02:00
Matthias Dieter Wallnöfer
da5cd4ba34 s4:samldb LDB module - remove unused variables 2010-05-14 19:02:10 +02:00
Andrew Bartlett
b5dc394962 s4:gensec expose gensec_set_target_principal for use outside GENSEC
This allows for the rare case where the caller knows the target
principal.  The check for lp_client_use_spnego_principal() is moved to
the spengo code to make this work.

Andrew Bartlett
2010-05-14 23:25:45 +10:00
Andrew Bartlett
8da50c8da1 s4:winbindd Rework some winbind structures to make s3compat easier
By making the winbindd_request and winbindd_response structures
pointers, we can more easily integrate with the winbindd from
source3/winbindd

Andrew Bartlett
2010-05-14 23:25:45 +10:00
Andrew Bartlett
ad197f6f15 s4:process_model Fix process_standard and process_onefork not to use
multiple event contexts

It is NEVER valid to free an event context that anybody else may have
a reference to, and never normally valid to have two 'live' at once.
We must instead call tevent_re_initialise() to wipe clean an existing
pointer.

Andrew Bartlett
2010-05-14 23:25:45 +10:00
Andrew Bartlett
6f859f58af s4:process_modals Add another process modal - 'onefork'
This will fork off exactly one child to handle some task, ensuring
that if it dies or changes global state, that this does not change
everything.

Andrew Bartlett
2010-05-14 23:25:45 +10:00
Andrew Bartlett
bb2f7e3aee s4:credentials Allow setting of an empty Kerberos CCACHE
This allows us to tell the credentials code where we want the
credentials put.

Andrew Bartlett
2010-05-14 23:25:45 +10:00
Andrew Bartlett
81407b1bff s4:ntvfs Prepare for a possible future sharing of notify.idl
I would love for notify.idl to be shared between Samba4 and Samba3
some day, and this seems to be the point at which the structure is
initialised.

Andrew Bartlett
2010-05-14 23:25:45 +10:00
Andrew Tridgell
9de745fd53 s3compat: use right variable for STATEDIR
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-05-14 23:25:45 +10:00
Andrew Tridgell
3043c1924d s4-dynconfig: make dynconfig more compatible with s3 2010-05-14 23:25:45 +10:00
Andrew Bartlett
ba4842a880 Revert "s4: remove unused references to swat"
This reverts most of commit 1765732f82719a4bc925f21ef4999bd19a8d1f6c.

The s3compat build needs the SWAT location to be compatible with
Samba3.
2010-05-14 23:25:44 +10:00
Günther Deschner
3edb95a487 s4-libndr: fix ndr_pull_string_array() for non utf16 arrays in s4 as well.
Guenther
2010-05-14 14:51:44 +02:00
Stefan Metzmacher
edecdab58f s4:heimdal_build: move #undef __APPLE__ to the end of roken.h
Some system includes need __APPLE__ defined.

metze
2010-05-14 10:37:22 +02:00