summaryrefslogtreecommitdiff
path: root/source4
AgeCommit message (Collapse)AuthorFilesLines
2011-06-07s4-ipv6: fixed DNS handling with new IPv6 codeAndrew Tridgell1-1/+16
2011-06-07s4-dsdb: cope with missing backlinks in rpmd handlingAndrew Tridgell1-1/+10
if backlinks have not propogated correctly in a previous replication this allows us to recover
2011-06-07s4-netlogon: force an IPv4 addressAndrew Tridgell1-1/+1
this interface is currently V4 only, don't try and return a V6 address in a V4 structure
2011-06-07s4-ipv6: fix iface_list_best_ip() for IPv6Andrew Tridgell1-1/+23
return an interface with the same address family as the target
2011-06-07s4-auth Move default auth methods back into auth.cAndrew Bartlett2-7/+6
This changes auth_methods_from_lp to no longer use the parametric options, and to cope with ROLE_DOMAIN_BDC and ROLE_DOMAIN_PDC. This will assist in calling the source4 auth subsystem with a source3 derived lp_ctx. Andrew Bartlett
2011-06-06s4/server: simplify and replace bad portable gettimeofday by timeBjörn Jacke1-15/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Mon Jun 6 12:58:26 CEST 2011 on sn-devel-104
2011-06-06s3-s4-param: Add hooks for parametric options in the s3/s4 glue layerAndrew Bartlett2-0/+6
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 6 10:48:53 CEST 2011 on sn-devel-104
2011-06-06s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett29-36/+36
Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
2011-06-06s4-param Remove 'modules dir'Andrew Bartlett3-6/+10
The Samba waf build ensures that dyn_MODULESDIR is always correct (even for in-tree binaries), so we don't need to allow the user to configure this at run time. Andrew Bartlett
2011-06-06lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett5-22/+5
This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
2011-06-06s4-param Add hook between Samba3 and Samba4 loadparm systems.Andrew Bartlett4-12/+256
In the top level build, this allows calls to code that requires a lpcfg_ style loadparm_context, while using the global parameters loaded from the source3 loadparm code. Andrew Bartlett
2011-06-06s4-param make lpcfg_sam_name() cope with PDC and BDC rolesAndrew Bartlett1-1/+2
These roles (ROLE_DOMAIN_CONTROLLER is ROLE_DOMAIN_BDC) will come in from the s3 loadparm. Andrew Bartlett
2011-06-06s4-param Remove 'sid generator'Andrew Bartlett8-34/+10
This was only used by the Fedora DS backend for Samba4. We agreed to no longer support external LDAP backends. Andrew Bartlett
2011-06-06s4-param Remove 'idmap database'Andrew Bartlett4-8/+3
This is now just idmap.ldb in the private dir, which remains.
2011-06-06s4-param Remove 'secrets database' parameterAndrew Bartlett4-8/+3
This is now just secrets.ldb in the private dir, which remains.
2011-06-06s4-param Remove 'sam database' parameterAndrew Bartlett10-26/+23
This now just relies on the private dir parameter, which remains. Andrew Bartlett
2011-06-06s4-ipv6: fill in family when initialising from sockaddrAndrew Tridgell1-1/+13
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Jun 6 05:35:36 CEST 2011 on sn-devel-104
2011-06-06s4-ipv6: removed the old unused ipv6 code in dcerpc_sock.cAndrew Tridgell1-43/+6
the code is now generic to both V4 and V6
2011-06-06s4-ipv6: fix the address family for IPv6 string addressesAndrew Tridgell1-0/+5
2011-06-06s4-ipv6: allow for IPv6 in dcerpc socket callsAndrew Tridgell1-2/+2
2011-06-06s4-ipv6: allow for IPv6 in resolver top level callsAndrew Tridgell1-4/+2
2011-06-06s4-ipv6: use the server address familyAndrew Tridgell1-1/+1
don't force v4 in connect_multi
2011-06-06s4-ipv6: cope with IPv6 in our async DNS client codeAndrew Tridgell1-28/+28
2011-06-06s4-script: install some of the samba scripts in bin/ during buildAndrew Tridgell2-0/+7
2011-06-06s4-testparm: testparm is now part of samba_toolAndrew Tridgell3-222/+1
2011-06-06s4-ipv6: enable IPv6 by defaultAndrew Tridgell1-2/+2
it now passes all tests
2011-06-06s4-ipv6: fixed binding to ipv4 addressesAndrew Tridgell1-1/+1
2011-06-06s4-ipv6: removed an old commentAndrew Tridgell1-1/+0
the comment is not correct any more
2011-06-06s4-ipv6: don't add link local addresses to DNSAndrew Tridgell1-1/+3
these make no sense as DNS addresses
2011-06-06s4-ipv6: ensure wrepl server does not use ipv6Andrew Tridgell2-1/+4
WINS only does IPv4
2011-06-06s4-ipv6: added IPv6 support to samba_dnsupdateAndrew Tridgell2-7/+33
2011-06-06s4-ipv6: update callers to load_interface_list()Andrew Tridgell26-30/+30
2011-06-06s4-ipv6: allow ipv6 to be enabled/disabled in smb.confAndrew Tridgell1-11/+20
this adds the parametric option ipv6:enable=true/false It defaults to false for now, until the remaining issues with testing of ipv6 are resolved
2011-06-06s4-gpo: fixed display of GPO version numbersAndrew Tridgell1-1/+1
2011-06-06s4-ipv6: the wins replication server can only handle IPv4Andrew Tridgell1-0/+3
2011-06-06s4-webserver: fixed a talloc reference error on startup failureAndrew Tridgell2-3/+4
2011-06-06s4-ipv6: only listen on V4 addresses in the NBT serverAndrew Tridgell1-5/+12
NBT doesn't do IPv6
2011-06-06s4-ipv6: use "ip" instead of "ipv4" for serversAndrew Tridgell4-7/+7
this allows stream_setup_socket() to work with both v4 and v6 addresses
2011-06-06s4-ipv6: use iface_list_wildcard() to listen on IPv6Andrew Tridgell7-36/+89
when we need to listen on a wildcard address, we now listen on a list of sockets, usually 0.0.0.0 and ::
2011-06-06s4-ipv6: fixed stream_setup_socket() to handle IPv6Andrew Tridgell1-18/+27
for IP we now detect the address family from the address, rather than requiring the caller to specify it.
2011-06-06s4-ipv6: fixed ipv6_listen() to use IPV6_V6ONLYAndrew Tridgell1-4/+24
this changes ipv6_listen() to use IPV6_V6ONLY, and to setup the right scope id for link local IPv6 addresses
2011-06-06s4-ipv6: added socket_address_from_sockaddr_storage()Andrew Tridgell2-0/+48
this converts a struct sockaddr_storage to a struct socket_address
2011-06-06s4-ipv6: added ipv4 functions to interface codeAndrew Tridgell1-0/+32
this adds iface_list_first_v4() and iface_list_n_is_v4(). The NBT server will use these to allow it to listen only for IPv4 addresses.
2011-06-06s4-ipv6: fixed a warningAndrew Tridgell1-1/+1
2011-06-06s4-ipv6: allow IPv6 addresses in our interfaces listAndrew Tridgell1-5/+0
2011-06-06s4-ipv6: changed the default "socket address"Andrew Tridgell1-1/+1
this changes the default socket address to the empty string. This allows uses to specify 0.0.0.0 meaning to listen only on the IPv4 wildcard address.
2011-06-06s4-ipv6: added iface_list_wildcard()Andrew Tridgell2-1/+29
this returns a list of wildcard address to listen on, when we don't have 'bind interfaces only' set. It is a list, not a single address, we need to listen separately for the IPv6 "::" address from the IPv4 0.0.0.0 address. This also takes account of the loadparm "socket address" option
2011-06-04Make samba4.drs.fsmo.python knownfailVolker Lendecke1-0/+1
This frequently blocks autobuild for me, this time with Testing for rid role transfer from localdc.samba.example.com to localvampiredc.samba.example.com ERROR: Failed to initiate transfer of 'rid' role: LDAP error 52 LDAP_UNAVAILABLE - <Failed FSMO transfer: NT_STATUS_IO_TIMEOUT> <> UNEXPECTED(failure): samba4.drs.fsmo.python(vampire_dc).fsmo.DrsFsmoTestCase.test_RIDMasterTransfer REASON: _StringException: _StringException: Content-Type: text/x-traceback;charset=utf8,language=python traceback 36E Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 128, in _run_user return fn(*args) File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 368, in _run_test_method testMethod() File "/memdisk/vlendec/a/b5798/samba4/source4/torture/drs/python/fsmo.py", line 125, in test_RIDMasterTransfer self._role_transfer(role="rid", role_dn=self.rid_dn) File "/memdisk/vlendec/a/b5798/samba4/source4/torture/drs/python/fsmo.py", line 97, in _role_transfer self._net_fsmo_role_transfer(DC=self.dnsname_dc2, role=role) File "/memdisk/vlendec/a/b5798/samba4/source4/torture/drs/python/fsmo.py", line 68, in _net_fsmo_role_transfer self.assertEquals(ret, 0, "Transferring role %s to %s has failed!" % (role, DC)) AssertionError: Transferring role rid to localvampiredc.samba.example.com has failed! 0 NT_STATUS_IO_TIMEOUT -- does that mean that sn.samba.org is not powerful enough to run this test successfully? Volker Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jun 4 15:24:20 CEST 2011 on sn-devel-104
2011-06-02samba3sam.py: don't assume order of ldb results.Rusty Russell1-142/+164
Switching to tdb2 breaks this test horribly, because it relied on the order of TDB1 traversal. Fix it to sort te results (by db), then check them. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-01lib/util/time.c: timeval_current_ofs_usecRusty Russell4-4/+4
Several places want "microseconds from current time", and several were simply handing "usecs" values which could be over a million. Using a helper to do this is safer and more readable. I didn't replace any obviously correct callers (ie. constants). I also renamed wait_nsec in source3/lib/util_sock.c; it's actually microseconds not nanoseconds (introduced with this code in Volker's 19b783cc Async wrapper for open_socket_out_send/recv). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>