1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

28102 Commits

Author SHA1 Message Date
Andrew Bartlett
ca52871541 s4-setup Remove servicePrincipalName: DNS/${DNSDOMAIN} from new installations
This servicePrincipalName is incorrect (windows does not use that
servicePrincipalName, as it targets the server it is updating, not the
root of the DNS tree), and now that we have multiple DNS backends that
use the internal database, it is quite incorrect (as it cannot exist
on more than one account).

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Nov 10 01:11:46 CET 2011 on sn-devel-104
2011-11-10 01:11:46 +01:00
Matthias Dieter Wallnöfer
f4a07f0b81 s4:join.py - fix up "DsAddEntry" against Windows Server 2000
It is important to consider the result level regarding error
information. Windows 2000 seems to send us back v2, all other
implementations v3. Consider post "Joining W2k AD domain"

Reviewed-by: abartlet

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Nov  9 23:37:08 CET 2011 on sn-devel-104
2011-11-09 23:37:08 +01:00
Jelmer Vernooij
7feb83a1c4 s4: Install samba-tool and samba_kcc to bin/ rather than sbin/.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Nov  9 19:43:07 CET 2011 on sn-devel-104
2011-11-09 19:43:06 +01:00
Jelmer Vernooij
b8efff57dc samba_kcc: Remove unnecessary return statements. 2011-11-07 02:04:52 +01:00
Amitay Isaacs
0c2f91c6b2 s4-provision: Create ldap records for DNS partitions similar to windows
this allows easy comparison between windows and samba ldap trees

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Nov  9 08:27:46 CET 2011 on sn-devel-104
2011-11-09 08:27:46 +01:00
Amitay Isaacs
a807c83641 s4-provision: Set security descriptor for DNS records 2011-11-09 16:49:08 +11:00
Michael Adam
4c52e8f68b s4:torture:smb2: rewrite durable-open.open test to use smb2_*_create functions
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Nov  9 02:36:36 CET 2011 on sn-devel-104
2011-11-09 02:36:36 +01:00
Michael Adam
9d862c00e5 s4:torture:smb2: rewrite the durable-open.lock test to use smb2_lease_create() 2011-11-09 01:02:09 +01:00
Michael Adam
0652b21c68 s4:torture:smb2: rewrite the durable-open.lease test to use smb2_lease_create() 2011-11-09 01:02:09 +01:00
Michael Adam
cda10063ab s4:torture:smb2: rewrite the durable-open.oplock test to use smb2_oplock_create() 2011-11-09 01:02:08 +01:00
Michael Adam
5d3b6aa674 s4:torture:smb2: rewrite the durable-open.file-position test to use smb2_oplock_create() 2011-11-09 01:02:08 +01:00
Michael Adam
6e721fdd43 s4:torture:smb2: rewrite the durable-open.open2 test to use smb2_lease_create_share() 2011-11-09 01:02:08 +01:00
Michael Adam
afc94fea2a s4:torture:smb2: rewrite the durable-open.open1 test to use smb2_oplock_create_share() 2011-11-09 01:02:08 +01:00
Michael Adam
cb98e31b24 s4:torture:smb2: add smb2_oplock_create_share() that takes sharemode as parameter 2011-11-09 01:02:08 +01:00
Michael Adam
901cab2def s4:torture:smb2: add smb2_lease_create_share() that takes a sharemode as parameter 2011-11-09 01:02:08 +01:00
Michael Adam
ef6c0974a0 s4:torture:smb2: add smb2_generic_create_share() that also takes the sharemode as parameter 2011-11-09 01:02:08 +01:00
Michael Adam
4746edc55d s4:torture:smb2: move the smb2_create_*() utility functions from lease.c to util.c for re-use 2011-11-09 01:02:08 +01:00
Michael Adam
a5d8614e63 s4:torture:smb2: use smb2_util_oplock_level() in the durable-open test for convenience 2011-11-09 01:02:08 +01:00
Michael Adam
3078c27be1 s4:torture:smb2: lease: oplock_level is uint8_t, not uint32_t or int 2011-11-09 01:02:08 +01:00
Michael Adam
7f1920801b s4:torture:smb2: move oplock() from lease.c to smb2_util_oplock_level() in util.c for re-use 2011-11-09 01:02:08 +01:00
Michael Adam
b47edad673 s4:torture:smb2: extract map_sharemode() to smb2_util_share_access() in util.c 2011-11-09 01:02:08 +01:00
Michael Adam
4ea5ac04b2 s4:torture:smb2: use common smb2_util_lease_state() in the lease tests 2011-11-09 01:02:08 +01:00
Michael Adam
33ccdf88f9 s4:torture:smb2: extract map_lease() to util.c as smb2_util_lease_state(). 2011-11-09 01:02:08 +01:00
Michael Adam
9fe4709a4b s4:torture:smb2: fix illegal write/uninitialized data bug in the lease.multibreak test 2011-11-09 01:02:08 +01:00
Michael Adam
b76bd39b6f s4:torture:smb2: lease.update2: some more reasonable struct names and a comment 2011-11-09 01:02:08 +01:00
Michael Adam
8dab942d1c s4:torture:smb2: change the test file name in the durable-open.oplock test
to a more reasonable name. This one must have been copied
from the durable-open.lease test.
2011-11-09 01:02:07 +01:00
Günther Deschner
8a18edf1c2 samr: filterModuleName is a lsa_String in userPwdChangeFailureInformation.
The entire marshalling of samr_ChangePasswordUser3 broke with c2685cdedb430ae75a94e86f34484292b4269363.

Matthias, the bad effect of this change was that actually all failed password
change attempts will always return NT_STATUS_OK because the last 4 bytes (the
resulting status code) were not marshalled anymore.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Nov  9 00:41:13 CET 2011 on sn-devel-104
2011-11-09 00:41:13 +01:00
Günther Deschner
bfe084bd8b s4-smbtorture: demonstrate how broken our samr_ChangePasswordUser3 marshalling is...
Guenther
2011-11-08 23:00:40 +01:00
Matthias Dieter Wallnöfer
099d687d1a s4:samba-tool user command - always initialise the boolean arguments properly
It they haven't been specified.

Reviewed-by: Jelmer

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Nov  8 22:28:38 CET 2011 on sn-devel-104
2011-11-08 22:28:38 +01:00
Matthias Dieter Wallnöfer
a53bc0a91b s4:samba-tool - other fix for Gémes Géza patch regarding parameter handling
The condition has not been specified correctly since we are expecting a boolean.
Pointed out by Jelmer.

Reviewed-by: Jelmer
2011-11-08 20:53:08 +01:00
Amitay Isaacs
7dbd2ec757 s4-provision: site is passed as an argument to setup_ad_dns()
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Nov  8 06:07:46 CET 2011 on sn-devel-104
2011-11-08 06:07:46 +01:00
Andrew Bartlett
696a70c9fa s4-provision Remove options for LDAP backend to reduce user confusion
We do not support the LDAP backend any more, but keep the code in case someone
comes up with an interesting use case that could leverage this in a very
particular situation.  In order to keep the code, we must test it, so
we keep just this much of the support around.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Nov  8 04:33:49 CET 2011 on sn-devel-104
2011-11-08 04:33:49 +01:00
Andrew Bartlett
d61d28bccc s4-s3-upgrade Add my copyright 2011-11-08 02:58:06 +01:00
Andrew Bartlett
56e760f8f1 s4-smb_server No longer follow the security=share smb.conf directive
By ignoring the value of security= from the smb.conf, we can allow this
to instead set the value of 'server role' in a manner compatible
with the Samba 3.x release stream.

Andrew Bartlett
2011-11-08 02:58:06 +01:00
Amitay Isaacs
5104abd573 s4-dnsserver: Test forward zones are not listed in reverse zone search
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Nov  8 01:26:43 CET 2011 on sn-devel-104
2011-11-08 01:26:43 +01:00
Amitay Isaacs
8b33c48ba5 s4-dnsserver: Fix enumeration of zones in ComplexOperation RPC call
zone_request_flags are interpreted in different groups rather than
a single group. This correctly returns 0 zones when there are no
reverse zones and DNS_ZONE_REQUEST_REVERSE is set in zone_request_flags.
2011-11-08 09:50:26 +11:00
Matthias Dieter Wallnöfer
ce8b5d520b s4:samba-tool - fix Gémes Géza patch regarding parameter handling
The new "random-password" parameter has not been evaluated correctly.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov  7 19:35:05 CET 2011 on sn-devel-104
2011-11-07 19:35:05 +01:00
Gémes Géza
1d9ff23f8e Add a --random-password option to user create command.
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2011-11-07 17:27:34 +01:00
Theresa Halloran
384eaba38e s4: samba-tool user --help documenation improvements
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Nov  7 01:39:25 CET 2011 on sn-devel-104
2011-11-07 01:39:24 +01:00
Andrew Tridgell
f0ae7e1916 kcc: fixed program name
kcccompute -> samba_kcc
2011-11-07 10:02:45 +11:00
Andrew Tridgell
eb9c35cbb7 kcc: fixed tabs/spaces in kcc python implementation
as spotted by autobuild
2011-11-07 10:02:45 +11:00
Dave Craft
d85b6edf8c samba_kcc addtion
Scaffolding and initial implementations of
portions of the KCC in python.  This code currently
properly computes the graph nodes for the intrasite
topology as well as enumerating all steps for a full
run of the KCC.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-07 10:02:45 +11:00
Dave Craft
c78dac4fde add python KCC utility classes and methods
New file source4/scripting/python/samba/kcc_utils.py
contains classes and methods for:
   DirectoryServiceAgent
   NTDSConnection
   GraphNode
   NamingContext
   NCReplica
These are consumed by a new samba_kcc python script
for KCC topology computation

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-07 10:02:45 +11:00
Dave Craft
a5d6e427c5 python dsdb flag addtions (NTDSSETTINGS, NTDSCONN)
Add missing flags present in C code base to python
code base dsdb/pydsdb.c
   INSTANCE_TYPE...
   DS_NTDSSETTINGS_OPT...
   NTDSCONN_OPT...
These are consumed by the python KCC scripts

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-11-07 10:02:45 +11:00
Jelmer Vernooij
1ad05d8c09 Some formatting fixes, remove unused imports.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov  6 06:22:33 CET 2011 on sn-devel-104
2011-11-06 06:22:33 +01:00
Matthieu Patou
2a8650ed79 s4-resolver: fix bug with DNS servers returning AAAA records when asked for A records
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Nov  6 03:18:00 CET 2011 on sn-devel-104
2011-11-06 03:18:00 +01:00
Kai Blin
a243473b49 s4 dns: the opcode is called OPCODE_UPDATE in the RFC, not OPCODE_REGISTER 2011-11-04 15:51:59 +01:00
Kai Blin
57bf64b375 s4 dns: Handle QCLASS_NONE queries 2011-11-04 15:51:59 +01:00
Kai Blin
61913f8506 s4 dns: Support DNS_QTYPE_ALL queries 2011-11-04 15:51:58 +01:00
Kai Blin
23000bcf2e dns: Build the python bindings 2011-11-04 15:51:58 +01:00