1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

16921 Commits

Author SHA1 Message Date
Jelmer Vernooij
24b03e1080 Properly cast array length in print functions.
(This used to be commit f321240fa91fa19c1131f119c42f64897d220682)
2008-07-21 12:47:08 +02:00
Andrew Bartlett
ecc13c3b1f Fix winbindd not to sit in a busy loop...
Clearly winbindd in Samba4 has not ever been run against windows, as
when we fixed the Samba4 server not to cause XP to loop like this,
Samba4's own client starts looping...

Andrew Bartlett
(This used to be commit 9741772190a85c7c42c17ff24a4aa3f53fbc9f3a)
2008-07-21 15:00:18 +10:00
Andrew Bartlett
d626a26374 Rename structures to better match the names in the WSPP IDL.
The 'comment' element in a number of domain structures is called
oem_information.  This was picked up actually because with OpenLDAP
doing the schema checking, it noticed that 'comment' was not a valid
attribute.

The rename tries to keep this consistant in both the LDB mappings and
IDL, so we don't make the same mistake in future.

This has no real schema impact, as this value isn't actually used for
anything, as 'comment' was not used in the provision.

Andrew Bartlett
(This used to be commit 65dc0d536590d055a5ee775606ac90ee5fcaee9a)
2008-07-21 13:42:07 +10:00
Andrew Bartlett
e16b2242e5 Remove bogus test in 'enum trusted domains' LSA server.
The change to the RPC-LSA test proves that when the remote server has
0 trusted domains, it will return NT_STATUS_NO_MORE_ENTRIES, not
NT_STATUS_OK.

Andrew Bartlett
(This used to be commit 40a55b34c2ce75267cf004dc4cfb8153c061e66b)
2008-07-21 12:05:53 +10:00
Andrew Bartlett
7d84b72a70 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 55bde3c9daeafdac04574365c23d181345639f34)
2008-07-21 11:27:23 +10:00
Andrew Bartlett
f4cae6a913 Sleep longer in the hope that the OpenLDAP backend might catch up
(This used to be commit 63c80c885dc3fb2228f082be8db752bb29e3962e)
2008-07-21 11:18:54 +10:00
Andrew Bartlett
ca46ad25b8 Fix ldb_map to add/remove the same 'extra' objectclass
The code previously added data->add_objectClass, but only removed the
fixed objectclass of extensibleObject.

Found by the ldap.py test.

Andrew Bartlett
(This used to be commit 4fa15c3173a997fa0b9041161d81e742e1fdb41c)
2008-07-21 11:18:21 +10:00
Andrew Bartlett
706140a1dc Make invalid 'member' detection work again.
This defines a rootdn globally, and due to OpenLDAP bugs, gives it
manage access to the whole database.  This makes the memberOf module
able to validate the links again, now we have database ACLs.

Andrew Bartlett
(This used to be commit 9fe3e9f09f89fd92f8a16768e53391ff5f8489ec)
2008-07-21 09:36:24 +10:00
Volker Lendecke
853ef0d5ef Fix RAW-OPEN against Samba3
This test assumed that fnums are recycled immediately after a close. This is
not true on Samba 3.

Andrew B., I assume this is just a bug in the test. Assuming recycled fnums
might be true on Windows and Samba 4, but I don't think we should assume this
everywhere.

Volker
(This used to be commit a4c3a59d47b2b1c794eda556d252c61907be1b3c)
2008-07-19 12:47:31 +02:00
Andrew Bartlett
3408a2d18f Make a seperate template for the refint configuration too
(This used to be commit d2a527acc5ee6fe9b943657dc9c3ace920b2d619)
2008-07-18 18:58:56 +10:00
Andrew Bartlett
cfc2063f23 Put the memberof template into a seperate setup/ file.
Set a memberof-dn in a fruitless attempt to fix the ACL problem I'm
having with OpenLDAP

Andrew Bartlett
(This used to be commit 6d6e03834a1a77a8ceba41fbe8c9d49680065ba3)
2008-07-18 18:44:07 +10:00
Andrew Bartlett
853194c308 More 'must be ignored' options from the MS-SMB doc.
Also in particular the 'sync' flags (which Samba has traditionally
ignored).

Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out
more flags that needed to be handled.

Andrew Bartlett
(This used to be commit 370bb39cd79fe49efd36a1ceb3e896d386e6d3ce)
2008-07-18 18:40:19 +10:00
Volker Lendecke
8025edf335 Add the interface ID to the rpc_pipe_register_commands call in s3 srv code
(This used to be commit efe249928312f730ee580e72b9c640ef88b0ed5b)
2008-07-16 22:22:38 +02:00
Stefan Metzmacher
29049aa670 drsuapi: print out the number of linked attribute values we got
metze
(This used to be commit 34f8b2abdd546f6b60ddae2ad839119f211c995c)
2008-07-16 14:42:12 +02:00
Stefan Metzmacher
f0e44c35af drsuapi: make use of the 'more_data' field in DsGetNCChangesCtr[1|6]
metze
(This used to be commit 35c7fa470a7433d081403b2b57a331c7dc287aef)
2008-07-16 14:42:11 +02:00
Stefan Metzmacher
f3fae86549 drsuapi: check ctr6->drs_error
metze
(This used to be commit 511847f5f5015bcdef69e80b91cb08ffb1690e59)
2008-07-16 14:42:11 +02:00
Stefan Metzmacher
a24fb2b537 drsuapi: get ctr6 out of xpress compressed level
metze
(This used to be commit 4e0708148a121bd41a12abf6122d5d6f3f09667a)
2008-07-16 14:42:06 +02:00
Stefan Metzmacher
c6ea7f0221 drsuapi: total_object_count was the wrong guess
The total_object_count member of DsGetNCChangesCtr[1|6] was wrong
it's the error code of an extended operation.

DsGetNCChangesCtr6 has a nc_object_count value which contains
the estimated amount of objects in the naming_context.

W2k seems to have a bug and sends this number of objects
in the extended_ret field. Maybe it's just a bug and
not a feature:-)

metze
(This used to be commit 67931092128ce89aadf689a54e20d6e4a9d7fe2c)
2008-07-16 12:16:58 +02:00
Stefan Metzmacher
033683b00e drsuapi.idl: fix unknowns in drsuapi_DsGetNCChangesCtr*
metze
(This used to be commit 9e99e59ca7e56bf74417ec85339e09e86f50d17e)
2008-07-16 12:16:55 +02:00
Stefan Metzmacher
ddce2beba8 libnet/become_dc: an unknown field in drsuapi.idl changed to object_flags
metze
(This used to be commit a6198ab6cb829969b12068324d870966a6cfc029)
2008-07-16 12:15:50 +02:00
Stefan Metzmacher
e81feb77a2 drsuapi.idl: fix unknowns in drsuapi_DsReplicaObject*
metze
(This used to be commit de2aed042d09ae7a31ddc4cd920c8fcf193ba06a)
2008-07-16 12:15:37 +02:00
Stefan Metzmacher
9827cf832f drsuapi.idl: fix unknowns in drsuapi_DsReplicaCursor[2]
metze
(This used to be commit a681e55067a83f06e465b81afb2b0b870b674dca)
2008-07-16 12:12:30 +02:00
Stefan Metzmacher
80fe14a211 drsuapi.idl: correctly handle xpress compressed payload
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit d9d19eef4f67da89e7d818d23a2372bee6f86dba)
2008-07-16 12:12:29 +02:00
Stefan Metzmacher
c8a1254db8 become_dc: we need to replicate using krb5 auth to work against w2k
With NTLMSSP we just get strange responses with a random object count
and a NULL object list. On the domain partition where we try to replicate
the password fields.

metze
(This used to be commit ce12a9105113ad7cff96b7d553a8d69901c56de7)
2008-07-16 12:12:29 +02:00
Stefan Metzmacher
dfb1ba3d9e NET-API-BECOME-DC: fix crash bugs because of unintialized variables
metze
(This used to be commit 6acf42c2e41bb1d44c1fcaaaa58fc3f148491836)
2008-07-16 12:12:29 +02:00
Andrew Bartlett
0c4738a411 Another kludge to let the OpenLDAP backend catch up.
This will go away when this is handled in an internal transation.

Andrew Bartlett
(This used to be commit f567e17758cfe937249beafae0a9087b67b27755)
2008-07-16 17:06:33 +10:00
Andrew Bartlett
0edce42b36 Fix the build - this element was renamed.
(This used to be commit 60161954ad5c99ce9934a968c5d41f41fafd780f)
2008-07-16 15:28:54 +10:00
Andrew Bartlett
fe9fa62a05 Reorder whitespace in generated slapd.conf
This helps us see the real groupings in the generated memberOf
handling.

Andrew Bartlett
(This used to be commit ec70ebb8310e563324233662f8e779c55fb87514)
2008-07-16 14:04:24 +10:00
Andrew Bartlett
e92125e631 Ignore and handle more NT Create & X options.
The MS-SMB document explains that some of these options should be
ignored.  The test proves it.

/* Must be ignored by the server, per MS-SMB 2.2.8 */
/* Must be ignored by the server, per MS-SMB 2.2.8 */

If we implement HSM in samba4 (likely) we should honour this bit.
/* Don't pull this file off tape in a HSM system */

Andrew Bartlett
(This used to be commit 502739ff90d56d2c9aabe8e224317f6ceb175c17)
2008-07-16 14:00:18 +10:00
Andrew Bartlett
376b2a29d6 Don't keep an extra ldb around forever.
We just open it to figure out if we need to be a Global Catalog server.

Andrew Bartlett
(This used to be commit f13572d9e9f1962b637cbd573588184d1459d252)
2008-07-16 11:11:25 +10:00
Andrew Bartlett
1d3bdf3f54 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Conflicts:

	source/dsdb/samdb/ldb_modules/simple_ldap_map.c
(This used to be commit 5d539b7da46e38e7570fa5af4549b142f25e4585)
2008-07-15 22:22:34 +10:00
Andrew Bartlett
c46afc8c44 Simplify the contextCSN determination.
We only ever have one backend partition per Samba partition.

Andrew Bartlett
(This used to be commit 316a9b312a2d4a4ea5a5c70946fb06b61fab1a7d)
2008-07-15 22:10:42 +10:00
Andrew Bartlett
831bd55fb0 Lock down the LDAP backend - only samba may read or write
(This used to be commit a3912801fb25f715725c06402d4bdff9a926f15d)
2008-07-15 22:07:45 +10:00
Andrew Bartlett
d904b71879 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 7fb8179f214bbba95eb35d221cb9892b55afe121)
2008-07-15 20:27:43 +10:00
Andrew Bartlett
cc44b10c24 Revert Fedrora DS backend to use extensibleObject.
Until I create a samba4openldaptop and samba4fedoratop...

Andrew Bartlett
(This used to be commit 6e232c4ae6dc4151599ab4e57add2ec232d4ac13)
2008-07-15 20:26:04 +10:00
Andrew Bartlett
63d91e9ab0 Kill of some bogus debugs for the world who does not use the LDAP backend
(This used to be commit 5bde586bdb4a1523a62a764b9ff292a4a8cee4fe)
2008-07-15 19:31:37 +10:00
Andrew Bartlett
e400b3ec4e Fix asking for credentials for non-LDAP provisions.
(This used to be commit 78416f4840df4f8d1f9cc5e46a48b19c86888050)
2008-07-15 18:44:58 +10:00
Andrew Bartlett
0f1eea2672 Rework provision to handle both simple and SASL binds.
Fedora DS is still setup for simple binds only, at this point.
(it also fails on other issues).

Andrew Bartlett
(This used to be commit b24c572d5a38c1f6906751c2ad2f809e1995b510)
2008-07-15 15:46:32 +10:00
Andrew Bartlett
a6b842f963 Connect to the LDAP backend with SASL credentials.
This reworks our LDAP backend code to move from anonymous access to a
shared-secret SASL-protected connection.  (SASL selects NTLM or
DIGEST-MD5 on my system).

To get this working, we must pre-populate the LDAP backend with a DN
to store ths SASL secret on, and we use back-ldif for this.

This gives us a reasonable basis to deploy a replicated OpenLDAP
backend solution.

Andrew Bartlett
(This used to be commit cd0745253c4a9ec59a035e830e54d74a05b71aaa)
2008-07-15 15:15:12 +10:00
Andrew Bartlett
403f4f94ff Make up a full hostname for ldapi connections.
The DIGEST-MD5 SASL method requires a hostname, so provide one.

Andrew Bartlett
(This used to be commit edfb2ed1f22bc735af5a0c3d3ae6ab6771d28f2c)
2008-07-15 15:10:29 +10:00
Andrew Bartlett
2b1f2712f1 Add a standard filter for finding the LDAP secrets.
(This used to be commit 28c784966809d634e8497e0716b30bad018467b4)
2008-07-15 15:09:32 +10:00
Andrew Bartlett
ab00b65dde Cleanup ldap_bind_sasl.
With these changes, we don't leak the LDAP socket, and don't reset all
credentials feature flags, just the ones we are actually incompatible
with.

Andrew Bartlett
(This used to be commit 72e52a301102941c41ab423e0212fe9a1aed0405)
2008-07-15 15:08:57 +10:00
Andrew Bartlett
532899386b Use secrets.ldb to store credentials to contact LDAP backend.
This makes Samba4 behave much like Samba3 did, and use a single set of
administrative credentials for it's connection to LDAP.

Andrew Bartlett
(This used to be commit e396a59788d77aa2fbf3b523c3773fe0e5c976c0)
2008-07-15 15:07:13 +10:00
Andrew Bartlett
f5d18f4d24 Allow ldap credentials to be (optionally) stored in secrets.ldb
This includes a simple bind DN, or SASL credentials.

The error messages are reworked as on systems without an LDAP backend,
we will fail to find this record very often.

Andrew Bartlett
(This used to be commit 95825ae6d5e9d9846f3a7505a81ebe603826227e)
2008-07-15 15:05:41 +10:00
Andrew Bartlett
9caa8d3da1 Try to make NTLMSSP less fussy for unimportant messages.
We don't really care (because nobody uses them) what we send as the
domain and workstation in the negotiate packet.

Andrew Bartlett
(This used to be commit 9ac07e14873df2c18d0e9501691c2d4c4047e218)
2008-07-15 15:04:06 +10:00
Andrew Bartlett
13a498939a Fix 'make gdbtest-enb' and the GDB_PROVISION option.
(This used to be commit 79c4d8e2fabc9c33d978c064b9c01ca45e463ced)
2008-07-15 15:01:43 +10:00
Andrew Bartlett
b49c30dd39 Remove C++ keywords from events.h header.
Andrew Bartlett
(This used to be commit 7ca421eb32bed3c400f863b654712d922c82bfb9)
2008-07-14 18:47:10 +10:00
Andrew Bartlett
44ea6a26fd rename sambaPassword -> userPassword.
This attribute is used in a very similar way (virtual attribute
updating the password) in AD on Win2003, so eliminate the difference.

This should not cause a problem for on-disk passwords, as by default
we do not store the plaintext at all.

Andrew Bartlett
(This used to be commit 1cf0d751493b709ef6b2234ec8847a7499f48ab3)
2008-07-12 15:26:42 +10:00
Andrew Bartlett
b4691ad560 Use common code to fill in allowedAttributes in kludge_acl.
This code is now in common with ad2oLschema.

Andrew Bartlett
(This used to be commit 0a797388ca442c3ad4809888897b1c63b65a7fdf)
2008-07-11 15:11:32 +10:00
Andrew Bartlett
c98419d367 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit f956908cde7dd40643ff49cf433d0cf7765027de)
2008-07-10 18:07:51 +10:00