summaryrefslogtreecommitdiff
path: root/source4
AgeCommit message (Collapse)AuthorFilesLines
2011-08-26s4-dsdb Return ACL errors as ldb_errstring()Andrew Bartlett3-17/+33
This string is reported to the caller, which makes debugging much easier. Andrew Bartlett
2011-08-26s4-provision Use samba.dns_name_to_dnAndrew Bartlett2-2/+6
2011-08-26py-samba3-test: Copy sample database in tempdir before running testAmitay Isaacs1-7/+11
Samba3 python module using passdb api modifies the database files, to upgrade them to latest version. So copy the sample database before running tests on it. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Aug 26 07:04:15 CEST 2011 on sn-devel-104
2011-08-26samba3dump: Update the code using modified samba3 module with passdb apiAmitay Isaacs1-40/+53
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26s3_upgrade: Set lock directory to correct directoryAmitay Isaacs2-1/+3
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26py-samba3-test: Set lock directory to the datadirAmitay Isaacs1-0/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26s3_upgrade: Update commandline options and use updated samba3 python moduleAmitay Isaacs3-166/+140
upgrade_from_s3 script now requires samba3 configuration file and target directory for samba4 database. In addition, it either uses --libdir option or --testparm option to correctly guess the paths for samba3 databases (private dir and state directory). Usage: upgrade_from_s3 [options] <configuration_file> <targetdir> Input arguments are: <configuration_file> - path to existing smb.conf <targetdir> - directory in which samba4 database will be created In addition, specify either samba3 database directory (with --libdir) or samba3 testparm utility (with --testparm). Before using passdb interface, initialize s3 loadparm context using correct path settings for private dir and state directory. Export account policy from s3 to s4. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26py-samba3: Use passdb/param wrapper for samba3 moduleAmitay Isaacs2-567/+117
Instead of parsing samba3 database files (password, group mapping, account policy, secrets), use passdb python wrapper. Similarly for parsing configuration, use samba3 param python wrapper. Other databases (idmap, registry, wins) are still parsed in python. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26s4-param: Use s3 dump method if s3 context is definedAmitay Isaacs1-0/+4
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26s3-param: Add a dump() method to output parametersAmitay Isaacs1-0/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26s3_upgrade: Let python generate backtrace for unknown exceptionsAmitay Isaacs1-15/+4
Catch known exceptions only. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26s3_upgrade: Add document strings for python methodsAmitay Isaacs1-9/+23
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dsdb: fixed use of RMD flags in ldb search in dirsync moduleAndrew Tridgell1-2/+2
I'm pretty sure a SHOW_DELETED was wanted here Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Aug 25 01:10:13 CEST 2011 on sn-devel-104
2011-08-25s4-dns: fixed dns_update_list for multi-domain forestsAndrew Tridgell1-13/+28
this should now match the DNS entries of w2k8r2c Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-08-25s4-dns: cope with duplicate entries in dns_update_listAndrew Tridgell1-1/+5
this is needed for when DNSFOREST and DNSDOMAIN are the same Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-08-25s4-dsdb: fixed newlines in DEBUG() calls in cracknamesAndrew Tridgell1-14/+14
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-08-25s4-join: fixed DNS hostnameAndrew Tridgell1-1/+1
we need the local hostname, not the remote name
2011-08-25s4-drs: fixed msdcs DNS name in getncchangesAndrew Tridgell1-3/+2
2011-08-25s4-libnet: fixed forest DNS nameAndrew Tridgell2-2/+3
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-acl: use dnsforest not dnsdomain for GC namesAndrew Tridgell1-3/+3
2011-08-25s4-join: setup DNS forest name on join contextAndrew Tridgell1-4/+4
2011-08-25s4-dns/spn: fixed DNS and SPN scripts to setup forest DNS nameAndrew Tridgell2-5/+6
2011-08-25s4-samdb: added host_dns_name(), domain_dns_name() and forest_dns_name()Andrew Tridgell1-0/+15
these will make it easier to get python code right for multi-domain support
2011-08-25s4-repl: fixed _msdcs DNS nameAndrew Tridgell3-14/+14
another multi-domain fix
2011-08-25s4-kcc: fixed _msdcs DNS nameAndrew Tridgell1-3/+1
we need to base this DNS name on the forest DNS name for multi-domain support Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-08-25s4-dsdb: added samdb_ntds_msdcs_dns_name()Andrew Tridgell1-2/+37
this gets the DNS name for a NTDS GUID, based on the forest DNS name Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-08-25s4-dns: fixed DNS and SPN update lists for multi-domain supportAndrew Tridgell2-3/+3
fixed DNS to point at forest root Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-08-25s4-provision: pass the rootDN into guess_names()Andrew Tridgell1-2/+2
this gets the correct forest DN during provision Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dsdb: fixed calls to ldb_val_string_cmp()Andrew Tridgell1-2/+2
wrong order of arguments
2011-08-25s4-dsdb: added samdb_dn_to_dns_domain()Andrew Tridgell1-0/+36
this converts a DC into the equivalent DNS domain. It is used when forming t_msdcs NTDS DNS names Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-08-25s4-dsdb: assert that base DNs are used correctlyAndrew Tridgell2-0/+8
this will catch future programmer errors with incorrect base DNs Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dsdb: enforce NULL DN validity in partition moduleAndrew Tridgell1-0/+3
windows does not allow a search on the empty DN except for rootDSE searches or for phantom_root searches (ie. with --cross-ncs). By enforcing this in Samba we make it more likely that our tests and utilities will work against windows Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dsdb: fixed basedn in extended_dn_in moduleAndrew Tridgell1-6/+10
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25samba-tool: fixed use of base DNs in ldapcmpAndrew Tridgell1-17/+13
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-spnupdate: fixed searches on domain NCAndrew Tridgell1-2/+2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dns: fixed base search on domain NCAndrew Tridgell1-1/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-samr: fixed subtree searchAndrew Tridgell1-1/+1
this needs to be on the domain NC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-kdc: fixed subtree search in KDCAndrew Tridgell1-1/+3
use ldb_get_default_basedn() with a subtree search Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dsdb: cleanup use of NULL vs base DN in samldbAndrew Tridgell1-7/+18
NULL should be used when doing all partition searches. The default basedn should be used when wanting just the domain NC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dsdb: removed unused function in ACL moduleAndrew Tridgell1-39/+0
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dsdb: fixed all partitions search in cracknamesAndrew Tridgell1-1/+1
when searching all partitions we must use the NULL basedn, or we will miss partitions in multi-domain setups Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-25s4-dns: when searching all partitions the NULL basedn is OKAndrew Tridgell1-8/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-22selftest: skip all plugin_s4_dc tests if we do not have LDAP libsAndrew Bartlett1-5/+6
This is needed as otherwise make test fails on any system without OpenLDAP libs and headers, which causes our users concern. Andrew Bartlett
2011-08-22s4-provision set passdb backend to 'samba4' in template smb.conf filesAndrew Bartlett4-0/+17
This will allow smbpasswd, net sam and pdbedit to 'just work' against the newly created databases. Andrew Bartlett
2011-08-21gensec: Install header file.Jelmer Vernooij1-0/+1
2011-08-21samdb: Install header file.Jelmer Vernooij1-0/+1
2011-08-21s4/libpolicy: Install header file.Jelmer Vernooij4-8/+6
2011-08-21samba-credentials: Add pkg-config file.Jelmer Vernooij2-0/+12
2011-08-19s3_upgrade: Set the administrator password on upgradeAmitay Isaacs1-2/+22
In the upgrade process, set the administrator password from the existing root or administrator account. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-19s3_upgrade: Do not add administrator and root accounts from s3 to s4Amitay Isaacs1-0/+2
Need to copy the password from s3 for administrator/root to s4. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>